Permalink
Browse files

Merge pull request #20 from pihentagy/patch-1

Update docs/main/Extensions/Crud/index.rst
  • Loading branch information...
2 parents 2a8409a + 72b8b50 commit 0436c72d2c21808d7ab0265ce327bcced0f4b07d @amol- amol- committed Mar 25, 2013
Showing with 12 additions and 0 deletions.
  1. +12 −0 docs/main/Extensions/Crud/index.rst
@@ -94,6 +94,12 @@ add utility methods on the fly::
'__field_widget_types__':{'description':TextArea}
}
+ __table_options__ = { # see Sprox TableBase and Sprox TableFiller
+ '__limit_fields__': ['title', 'desc'],
+ '__add_fields__': {'computed': None},
+ 'computed': lambda filler, row: row.some_field * 2
+ }
+
__setters__ = {
'done':('status', 'done'),
'todo':('status', 'new'),
@@ -107,6 +113,12 @@ and to edit the existing ones.
To have a look at the available options refer to
`Sprox FormBase <http://sprox.org/modules/sprox.formbase.html#module-sprox.formbase>`_
+The ``__table_options__`` dictionary will permit to tune the forms configuration.
+To have a look at the available options refer to
+`Sprox TableBase <http://sprox.org/modules/sprox.tablebase.html#sprox.tablebase.TableBase>`_,
+`Sprox TableFiller <http://sprox.org/modules/sprox.fillerbase.html?highlight=tablefiller#sprox.fillerbase.TableFiller>`_,
+and their parents as well.
+
The ``__setters__`` option provides a way to add new simple methods on the fly
to the controller. The key of the provided dictionary is the name of the method, while
the value is a tuple where the first argument is the attribute of the object

0 comments on commit 0436c72

Please sign in to comment.