good catch. fixed in trunk.
On Thursday, 19 April 2012 07:52:13 UTC-5, Jim S wrote: > > Massimo > > I think we need like 1617 changed from > > create_form = update_form = view_form = None > > to > create_form = update_form = view_form = search_form = None > > -Jim > > On 4/18/2012 9:20 PM, Massimo Di Pierro wrote: > > Thanks for checking this. I made one more change to trunk that should fix > it. Please try it again. > > BTW. make sure you use grid and not smartgrid. > > On Wednesday, 18 April 2012 11:25:07 UTC-5, Jim S wrote: >> >> Massimo >> >> I updated from trunk today and now I'm getting the following traceback: >> >> Traceback (most recent call last): >> File "C:\dev\web2py\gluon\restricted.py", line 205, in restricted >> exec ccode in environment >> File "C:/dev/web2py/applications/InfoCenter/controllers/applications.py" >> <http://127.0.0.1:8000/admin/default/edit/InfoCenter/controllers/applications.py>, >> line 1711, in <module> >> File "C:\dev\web2py\gluon\globals.py", line 175, in <lambda> >> self._caller = lambda f: f() >> File "C:\dev\web2py\gluon\tools.py", line 2670, in f >> return action(*a, **b) >> File "C:/dev/web2py/applications/InfoCenter/controllers/applications.py" >> <http://127.0.0.1:8000/admin/default/edit/InfoCenter/controllers/applications.py>, >> line 1704, in railUnloading >> form = grid.create_form >> AttributeError: 'DIV' object has no attribute 'create_form' >> >> >> on creates and >> >> Traceback (most recent call last): >> File "C:\dev\web2py\gluon\restricted.py", line 205, in restricted >> exec ccode in environment >> File "C:/dev/web2py/applications/InfoCenter/controllers/applications.py" >> <http://127.0.0.1:8000/admin/default/edit/InfoCenter/controllers/applications.py>, >> line 1711, in <module> >> File "C:\dev\web2py\gluon\globals.py", line 175, in <lambda> >> self._caller = lambda f: f() >> File "C:\dev\web2py\gluon\tools.py", line 2670, in f >> return action(*a, **b) >> File "C:/dev/web2py/applications/InfoCenter/controllers/applications.py" >> <http://127.0.0.1:8000/admin/default/edit/InfoCenter/controllers/applications.py>, >> line 1707, in railUnloading >> form = grid.update_form >> AttributeError: 'DIV' object has no attribute 'update_form' >> >> >> on updates. This worked with trunk from the 9th. (although update_form >> was then edit_form). Seems like there is something else I need to change >> to get this functionality back. Any ideas? >> >> -Jim >> >> On 4/10/2012 11:39 PM, Massimo Di Pierro wrote: >> >> It actually was renamed update_form in trunk >> >> On Tuesday, 10 April 2012 13:53:47 UTC-5, Jim S wrote: >>> >>> In the example below you specify grid.update_form for the edit action. >>> But, my testing shows that this is actually grid.edit_form. Should it be >>> renamed to 'update_form' for consistency with CRUD? >>> >>> -Jim >>> >>> On 4/9/2012 3:58 PM, Massimo Di Pierro wrote: >>> >>> You should be able to customize the create and edit forms in the same >>> way: >>> >>> {{if grid.create_form:}} >>> {{=grid.create_form}} >>> {{elif grid.update_form:}} >>> {{=grid.update_form}} >>> {{elif grid.view_form:}} >>> {{=grid.view_form}} >>> {{else:}} >>> {{=grid}} >>> {{pass}} >>> >>> You need the current trunk because I just found an issue about this. >>> >>> On Monday, 9 April 2012 11:55:24 UTC-5, Jim S wrote: >>>> >>>> Hi >>>> >>>> I want to customize the edit form of a .smartgrid the way that you can >>>> customize SQLFORM forms as specified in the manual under section 7.5. >>>> >>>> Is this possible? If so, what do I use in place of >>>> {{=form.custom.begin}}? How do I reference the form portion of the >>>> returned grid? >>>> >>>> -Jim >>>> >>>

