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 #509 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

r622 breaks def default(self, *args, **kwargs)

Reported by: Stephen Thorne <stephen@…> Owned by: anonymous
Priority: highest Milestone: 0.9
Component: CherryPy Version:
Severity: critical Keywords:


Using a SVN revision >= r622, with the following root controller, accesssing /foo/bar/baz, I get a traceback:

import turbogears
from turbogears import controllers

class Root(controllers.RootController):
    def default(self, *args, **kwargs):
        return dict()
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
  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
TypeError: expose() takes exactly 2 non-keyword arguments (5 given)

I did a test the verify that r622 is the revision that broke this. r621 works okay, and the bug remains in r628.

Change History

comment:1 Changed 13 years ago by Stephen Thorne <stephen@…>

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

Fixed in r631

Note: See TracTickets for help on using tickets.