I put my code here in Root.login
@expose(template="emailgency.templates.login")
def login(self, forward_url=None, previous_url=None, *args, **kw):
if not identity.current.anonymous \
and identity.was_login_attempted() \
and not identity.get_identity_errors():
DO IT HERE
raise redirect(forward_url)
On 26 mar, 16:16, [EMAIL PROTECTED] wrote:
> I have some code I want executed after the user logs in but before the
> page he was trying to get to is displayed. This logic needs to happen
> on any login, no matter what the final destination page. I'm using
> turbogears identity. Where can I put such logic? Do I need to write
> my own require decorator or SecureResource subclass?
>
> --RDM
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---