diff --git a/modules/plugin_dbui/basesvc.py b/modules/plugin_dbui/basesvc.py index 924577092b90d31fe05f6d7b039ece339688d4b3..3a3370dcda6065589e0772346a91b04eb7b223df 100644 --- a/modules/plugin_dbui/basesvc.py +++ b/modules/plugin_dbui/basesvc.py @@ -8,6 +8,9 @@ import pprint class BaseSvc: """Base class to build service. + Attributes: + debug (bool): activate the debug mode + """ def __init__(self): self.debug = False diff --git a/modules/plugin_dbui/directsvc.py b/modules/plugin_dbui/directsvc.py index 2e5746c89d483c6343c12af532deb35d74b156b0..0f1599d5208b920ebb56dcb1e362cfed611750d5 100644 --- a/modules/plugin_dbui/directsvc.py +++ b/modules/plugin_dbui/directsvc.py @@ -66,6 +66,9 @@ class DirectSvc(BaseSvc): In this implementation requests and response are JSON encoded. + Attributes: + procedures (dict): + """ def __init__(self): diff --git a/modules/plugin_dbui/fieldsmodifier.py b/modules/plugin_dbui/fieldsmodifier.py index d90141599cd87c9063825caae205c904944612dd..6409b0cc49a055c4cb0c5571dfd127876e5a8f4c 100644 --- a/modules/plugin_dbui/fieldsmodifier.py +++ b/modules/plugin_dbui/fieldsmodifier.py @@ -12,6 +12,10 @@ MODIFIER_FIELDS = 'modifier_fields' class FieldsModifier(Modifier): """Modifier to customise the field widgets associated to a database table. + Attributes: + data.extjs_fields (dict): + data.composite_fields (gluon.storage.Storage): + """ def __init__(self, tablename): diff --git a/modules/plugin_dbui/formmodifier.py b/modules/plugin_dbui/formmodifier.py index 06d1a750dff45f599e6e6779888e53160338035a..2fcff0c8a781172ac49d0cdc7efaa1bc6f97d533 100644 --- a/modules/plugin_dbui/formmodifier.py +++ b/modules/plugin_dbui/formmodifier.py @@ -46,6 +46,11 @@ def configure_forms(db, **extjs): class FormModifier(Modifier): """Modifier to customise the form widget associated to a database table. + Attributes: + data.field_sets (list) + data.hidden_fields (list) + data.mapper (function) + """ def __init__(self, tablename): diff --git a/modules/plugin_dbui/modifier.py b/modules/plugin_dbui/modifier.py index 1ad69c84e30d42832846feffea278a7804989b29..551b8e49b32b2b17e36505b2f89bcdcbb1d0ab82 100644 --- a/modules/plugin_dbui/modifier.py +++ b/modules/plugin_dbui/modifier.py @@ -12,6 +12,9 @@ MSG_INVALID_TYPE = "Invalid plugin type" class Modifier(object): """Base class to construct Modifier tools. + Attributes: + data (gluon.storage.Storage): + """ def __init__(self, dpname, tablename=None): diff --git a/modules/plugin_dbui/navtree.py b/modules/plugin_dbui/navtree.py index 903207216db257cc56c0da34cbc79db2455daa27..66080d92c0d74b1792142938b1a28ee06e353bdf 100644 --- a/modules/plugin_dbui/navtree.py +++ b/modules/plugin_dbui/navtree.py @@ -11,6 +11,11 @@ class Node(object): It contains children (leaves) which are associated to widgets. The widget will be display on the panel of the *Viewport*. + Attributes: + text (str) + children (list) + hidden (list) + """ def __init__(self, text): """Construct the node. diff --git a/modules/plugin_dbui/storemodifier.py b/modules/plugin_dbui/storemodifier.py index ab229c1d2ccf083a337f6f259688504f223b30a2..d44090564038aefef279b6a32f78ec5281d63889 100644 --- a/modules/plugin_dbui/storemodifier.py +++ b/modules/plugin_dbui/storemodifier.py @@ -57,6 +57,9 @@ class AddStore(object): class StoreModifier(Modifier): """Modifier to customize the store associated to a table. + Attributes: + data.orderby (list): + """ def __init__(self, tablename): diff --git a/modules/plugin_dbui/viewportmodifier.py b/modules/plugin_dbui/viewportmodifier.py index 1f80c2c4437373647e2eb2071bc2477dc73751c7..913c0b0b156e0732ebbdfe055c72d2528a8c11b0 100644 --- a/modules/plugin_dbui/viewportmodifier.py +++ b/modules/plugin_dbui/viewportmodifier.py @@ -15,6 +15,10 @@ MODIFIER_VIEWPORTS = 'modifier_viewports' class ViewportModifier(Modifier): """Modifier to customize the viewport widget of the application. + Attributes: + data.default (str): + data.nodes (list): + """ def __init__(self): @@ -38,7 +42,7 @@ class ViewportModifier(Modifier): viewport widget. * ``nodes`` (list) list of :class:`.Node` - defining the navigation tree + defining the navigation tree """ Modifier.__init__(self, MODIFIER_VIEWPORTS)