summaryrefslogtreecommitdiff
path: root/grc/base/Param.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/base/Param.py')
-rw-r--r--grc/base/Param.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/grc/base/Param.py b/grc/base/Param.py
index c2fa5461ae..76a74d3ed7 100644
--- a/grc/base/Param.py
+++ b/grc/base/Param.py
@@ -63,8 +63,10 @@ class Param(Element):
def __init__(self, block, n):
"""
Make a new param from nested data.
- @param block the parent element
- @param n the nested odict
+
+ Args:
+ block: the parent element
+ n: the nested odict
"""
#grab the data
self._name = n.find('name')
@@ -148,7 +150,9 @@ class Param(Element):
Get the repr (nice string format) for this param.
Just return the value (special case enum).
Derived classes can handle complex formatting.
- @return the string representation
+
+ Returns:
+ the string representation
"""
if self.is_enum(): return self.get_option(self.get_value()).get_name()
return self.get_value()
@@ -173,7 +177,9 @@ class Param(Element):
def export_data(self):
"""
Export this param's key/value.
- @return a nested data odict
+
+ Returns:
+ a nested data odict
"""
n = odict()
n['key'] = self.get_key()