Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #516 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

TypeError: dispatch_error() got multiple values for keyword argument 'tg_errors'

Reported by: Jorge Godoy <jgodoy@…> Owned by: anonymous
Priority: high Milestone:
Component: TG Widgets Version:
Severity: blocker Keywords:
Cc:

Description

After submitting a form I get the following TraceBack?:

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 default
  File "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/controllers.py", line 218, in expose
    func, tg_format, html, fragment, *args, **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 248, in _execute_func
    output = dispatch_error(func, self, *args, **kw)
TypeError: dispatch_error() got multiple values for keyword argument 'tg_errors'

In this page I have a DataGrid and a FormTable?. I'm running

Path: .
URL: http://www.turbogears.org/svn/turbogears/trunk
Repository UUID: 77541ad4-5f01-0410-9ede-a1b63cd9a898
Revision: 645
Node Kind: directory
Schedule: normal
Last Changed Author: kevin
Last Changed Rev: 645
Last Changed Date: 2006-02-05 02:11:53 -0200 (Sun, 05 Feb 2006)
Properties Last Updated: 2006-01-30 11:59:23 -0200 (Mon, 30 Jan 2006)

As per the mailing list message I've sent, at least one more person also found the same problem.

Change History

comment:1 Changed 13 years ago by simon

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r567.

comment:2 Changed 13 years ago by simon

Seems I am dyslexic, should be r657.

comment:3 Changed 13 years ago by Jorge Godoy <jgodoy@…>

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 default
  File "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/controllers.py", line 184, in expose
    func, tg_format, html, fragment, *args, **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 196, in _execute_func
    output = errorhandling.try_call(func, self, *args, **kw)
  File "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/errorhandling.py", line 64, in try_call
    output = dispatch_error(func, self, error, *args, **kw)
  File "<string>", line 5, in dispatch_error
  File "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/errorhandling.py", line 27, in _default_error_handler
    return getattr(self, error_source.__name__ )(*args, **kw)
  File "<string>", line 3, in default
  File "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/controllers.py", line 179, in expose
    output = _execute_func(self, func, tg_format, html, fragment,
  File "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/controllers.py", line 196, in _execute_func
    output = errorhandling.try_call(func, self, *args, **kw)
  File "/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/errorhandling.py", line 60, in try_call
    raise error
IndexError: tuple index out of range

I've just updated TG, ran 'python setup.py develop' and tested...

Should I reopen the bug?

comment:4 Changed 13 years ago by Jorge Godoy <jgodoy@…>

Just to make it more clear: the change in the database is performed.

comment:5 Changed 13 years ago by Jorge Godoy <jgodoy@…>

This last error is a bug in my code. I've fixed it. ;-)

Note: See TracTickets for help on using tickets.