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.

Kevin

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to