Hi all,
Following the typical example of the SimpleWidgetForm tutorial
(calling an add() method to display a form and saving the results
through a save() method after validation), it appears that typing
directly xxxx/save in the URL bar gives the following error:
Page handler: <function _wrapper at 0x01AF15F0>
Traceback (most recent call last):
File "c:\python24\lib\site-packages\CherryPy-2.2.1-py2.4.egg\cherrypy
\_cphttptools.py", line 105, in _run
self.main()
File "c:\python24\lib\site-packages\CherryPy-2.2.1-py2.4.egg\cherrypy
\_cphttptools.py", line 254, in main
body = page_handler(*virtual_path, **self.params)
File "c:\python24\lib\site-packages\TurboGears-1.0.1-py2.4.egg
\turbogears\identity\conditions.py", line 275, in _wrapper
return fn( *args, **kw )
TypeError: save() takes at least 4 arguments (1 given)
Do you know of an in-built way of the validating framework to avoid
this? Or do we need to put something like an
@exception_handler( typeError) (and write the corresponding handler
function in each controller ) on every such method to be "protected"
from direct access?
Thanks for your lights!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---