On 2/22/06, Kevin Dangoor <[EMAIL PROTECTED]> wrote: > > On 2/22/06, Diwaker Gupta <[EMAIL PROTECTED]> wrote: > > I'm trying to resolve a URL of the form '/user/username'. > > But this doesn't: > > class User: > > @tg.expose() > > def index(self, *args): > > print args > > > > class Root(controllers.RootController): > > user = User() > > > > I get a object not found exception when I try to access /user/username > > > > However, using default() instead of index() in User works again. > > > > Is this expected behavior? > > Yes. Positional parameters do not apply to the index method.
Thats weird. I remember reading somewhere that CherryPy 2.2 allows positional parameters on all methods. So I guess index is the one exception to that? Diwaker -- Web/Blog/Gallery: http://floatingsun.net/blog --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

