Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.
Ticket #1820: crud_controller.py_tmpl.diff
| File crud_controller.py_tmpl.diff,
581 bytes
(added by dakila, 4 years ago) |
|
small patch to use the getTableValue
|
-
|
|
|
|
| 49 | 49 | #return dict(records = records, modelname = self.modelname) |
| 50 | 50 | |
| 51 | 51 | #dbsprockets |
| 52 | | value = provider.select(tableName=self.tablename,values=kw) |
| | 52 | value = getTableValue(${modelname}) |
| 53 | 53 | |
| 54 | 54 | pylons.c.w.table = ${modelnameLower}_list |
| 55 | 55 | return dict(value=value, modelname=self.modelname) |
Download in other formats: