I defined the following form:
form=crud.update(table=db.nodeNav,hidden=dict(nodeID=id),record=row,next=URL('functions'),onaccept=onaccept_functions,deletable=False)
I need the hidden field for the validators in db.py to work (nodeID is
readable and writable False). However, the form above gives me an error:
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/web2py/gluon/restricted.py", line
212, in restricted
exec ccode in environment
File
"/Library/Python/2.6/site-packages/web2py/applications/init/controllers/cmssite.py"
<http://127.0.0.1:8000/admin/edit/init/controllers/cmssite.py>, line 411, in
<module>
File "/Library/Python/2.6/site-packages/web2py/gluon/globals.py", line 188,
in <lambda>
self._caller = lambda f: f()
File "/Library/Python/2.6/site-packages/web2py/gluon/tools.py", line 2911, in
f
return action(*a, **b)
File
"/Library/Python/2.6/site-packages/web2py/applications/init/controllers/cmssite.py"
<http://127.0.0.1:8000/admin/edit/init/controllers/cmssite.py>, line 86, in
functions
form=crud.update(table=db.nodeNav,hidden=dict(nodeID=id),record=row,next=URL('functions'),onaccept=onaccept_functions,deletable=False)
File "/Library/Python/2.6/site-packages/web2py/gluon/tools.py", line 3479, in
update
**attributes
TypeError: type object got multiple values for keyword argument 'hidden'
Is there a way to solve this?
Kind regards,
Annet.
--