Commit 76333226 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Use the construct Attributes.

parent 539230d8
......@@ -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
......
......@@ -66,6 +66,9 @@ class DirectSvc(BaseSvc):
In this implementation requests and response are JSON encoded.
Attributes:
procedures (dict):
"""
def __init__(self):
......
......@@ -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):
......
......@@ -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):
......
......@@ -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):
......
......@@ -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.
......
......@@ -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):
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment