[EMAIL PROTECTED] wrote:
> Thanks for the replies guys.
>
> Here is what I was trying to do:
> I'm working on a login/signup thing similiar to
> http://youtube.com/signup. Originally I had the login page at
> localhost:8080/l/login. (since my site is complex, I didn't want too
> many pages/controllers at the root level). An alias I created as
> /login which would redirect to /l/login. As Jorge suggested I have
> somewhat of a multi-page form, and hence in my redirection from /login
> to /l/login I needed to preserve the parameters without having them
> show up in the URI.
What would stop you from putting the login class in a separate file and
mounting it at the root? Then your code in the controller itself is
reduced to:
from <mysite> import login
...
class Root(controllers.RootController):
login = login.login()
...
That way your login functionality doesn't need a redirect AND you keep
a short and sweet Root.
-Adam
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---