Interesting. Would you mind posting (privately or here, whichever you
prefer) the relevant controller code.
Thnaks,
Simon
Jorge Godoy wrote:
Jorge Godoy <[EMAIL PROTECTED]> writes:
Kevin Dangoor <[EMAIL PROTECTED]> writes:
The best documentation for this (and it's not particularly good as far
as docs go) is the ticket:
http://trac.turbogears.org/turbogears/ticket/258
Hmmm... It seems I'll have to change some method signatures here. In the
example it isn't shown, though:
Page handler: <bound method Clientes.save of <site_amostras.clientes.Clientes
instance at 0x40ad86cc>>
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/cherrypy/_cphttptools.py",
line 99, in _run
self.main()
File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/cherrypy/_cphttptools.py",
line 247, in main
body = page_handler(*virtual_path, **self.params)
File "<string>", line 3, in save
File
"/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/controllers.py",
line 215, in expose
func, tg_format, html, fragment, **kw)
File
"/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/database.py",
line 193, in run_with_transaction
retval = func(*args, **kw)
File
"/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/controllers.py",
line 243, in _execute_func
output = dispatch_error(func, self, **kw)
File "<string>", line 5, in dispatch_error
File
"/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/controllers.py",
line 295, in _default_error_handler
return getattr(self, error_source.__name__ )(**kw)
File "<string>", line 3, in save
File
"/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/controllers.py",
line 211, in expose
output = _execute_func(self, func, tg_format, html, fragment, **kw)
File
"/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/controllers.py",
line 240, in _execute_func
raise error
TypeError: save() got an unexpected keyword argument 'tg_errors'
I dunno why "tg_errors" is being passed to it...