Hi,

I'm trying to resolve a URL of the form '/user/username'. This works:

class Root(controllers.RootController):
    @tg.expose()
    def user(self, *args):
        print args # prints username correctly

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?

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

Reply via email to