Skip to content
Snippets Groups Projects
Commit 76333226 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Use the construct Attributes.

parent 539230d8
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,9 @@ import pprint ...@@ -8,6 +8,9 @@ import pprint
class BaseSvc: class BaseSvc:
"""Base class to build service. """Base class to build service.
Attributes:
debug (bool): activate the debug mode
""" """
def __init__(self): def __init__(self):
self.debug = False self.debug = False
......
...@@ -66,6 +66,9 @@ class DirectSvc(BaseSvc): ...@@ -66,6 +66,9 @@ class DirectSvc(BaseSvc):
In this implementation requests and response are JSON encoded. In this implementation requests and response are JSON encoded.
Attributes:
procedures (dict):
""" """
def __init__(self): def __init__(self):
......
...@@ -12,6 +12,10 @@ MODIFIER_FIELDS = 'modifier_fields' ...@@ -12,6 +12,10 @@ MODIFIER_FIELDS = 'modifier_fields'
class FieldsModifier(Modifier): class FieldsModifier(Modifier):
"""Modifier to customise the field widgets associated to a database table. """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): def __init__(self, tablename):
......
...@@ -46,6 +46,11 @@ def configure_forms(db, **extjs): ...@@ -46,6 +46,11 @@ def configure_forms(db, **extjs):
class FormModifier(Modifier): class FormModifier(Modifier):
"""Modifier to customise the form widget associated to a database table. """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): def __init__(self, tablename):
......
...@@ -12,6 +12,9 @@ MSG_INVALID_TYPE = "Invalid plugin type" ...@@ -12,6 +12,9 @@ MSG_INVALID_TYPE = "Invalid plugin type"
class Modifier(object): class Modifier(object):
"""Base class to construct Modifier tools. """Base class to construct Modifier tools.
Attributes:
data (gluon.storage.Storage):
""" """
def __init__(self, dpname, tablename=None): def __init__(self, dpname, tablename=None):
......
...@@ -11,6 +11,11 @@ class Node(object): ...@@ -11,6 +11,11 @@ class Node(object):
It contains children (leaves) which are associated to widgets. It contains children (leaves) which are associated to widgets.
The widget will be display on the panel of the *Viewport*. The widget will be display on the panel of the *Viewport*.
Attributes:
text (str)
children (list)
hidden (list)
""" """
def __init__(self, text): def __init__(self, text):
"""Construct the node. """Construct the node.
......
...@@ -57,6 +57,9 @@ class AddStore(object): ...@@ -57,6 +57,9 @@ class AddStore(object):
class StoreModifier(Modifier): class StoreModifier(Modifier):
"""Modifier to customize the store associated to a table. """Modifier to customize the store associated to a table.
Attributes:
data.orderby (list):
""" """
def __init__(self, tablename): def __init__(self, tablename):
......
...@@ -15,6 +15,10 @@ MODIFIER_VIEWPORTS = 'modifier_viewports' ...@@ -15,6 +15,10 @@ MODIFIER_VIEWPORTS = 'modifier_viewports'
class ViewportModifier(Modifier): class ViewportModifier(Modifier):
"""Modifier to customize the viewport widget of the application. """Modifier to customize the viewport widget of the application.
Attributes:
data.default (str):
data.nodes (list):
""" """
def __init__(self): def __init__(self):
...@@ -38,7 +42,7 @@ class ViewportModifier(Modifier): ...@@ -38,7 +42,7 @@ class ViewportModifier(Modifier):
viewport widget. viewport widget.
* ``nodes`` (list) list of :class:`.Node` * ``nodes`` (list) list of :class:`.Node`
defining the navigation tree defining the navigation tree
""" """
Modifier.__init__(self, MODIFIER_VIEWPORTS) Modifier.__init__(self, MODIFIER_VIEWPORTS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment