Ticket #1820: crud_controller.py_tmpl.diff

File crud_controller.py_tmpl.diff, 0.6 kB (added by dakila, 3 months ago)

small patch to use the getTableValue

  • devtools/templates/crud_controller.py_tmpl

    old new  
    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)