> > I like this, it might be worth just importing identity and being
> > explicit in the assignment, so people know at a glance exactly where
> > these login and logout methods are coming from:
> >
> > import identity
> >
> > class Root(...)
> > login = identity.Controlers.login()
> > logout= identity.Controlers.logout()
>
> Looks much better... And as Alberto wanted, it is also cleaner. It's a +1
> from me. (Just leave the template at the same place, please, so that it is
> easily and intuitively customizable for new projects).
+1.
Only it would be something like:
class Root(...)
login = identity.Controlers.login(template=".templates.login")
logout= identity.Controlers.logout(template=".templates.logout")
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" 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-trunk
-~----------~----~----~----~------~----~------~--~---