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

  • devtools/templates/crud_controller.py_tmpl

     
    4949        #return dict(records = records, modelname = self.modelname) 
    5050 
    5151        #dbsprockets 
    52         value = provider.select(tableName=self.tablename,values=kw) 
     52        value = getTableValue(${modelname}) 
    5353 
    5454        pylons.c.w.table = ${modelnameLower}_list 
    5555        return dict(value=value, modelname=self.modelname)