-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Kevin Baker wrote:
> I am writing a custom authentication system. I am adding "action" level
> authentication.
>
> How would I go about getting the current "action" in my login module?
>
> I'm thinking something like this
>
> currentAction = c.currentAction
>
> if (currentAction in self.secureActionList)
>
> redirect_to(controller="pageController", action"login")
>
>
>
>
>
> >
Not sure if this is the "correct" way or not but you can get the
requested action like this:
current_request = request.environ.get("pylons.routes_dict")
then you can reference current_request["action"]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJHyr/p0KneERU9LsRAplwAKCe6mgVlT4969aGp1W3aUfmhhtpqQCgiSP0
FD5Zl7q3tyOtSUBNttvyXgQ=
=iuiN
-----END PGP SIGNATURE-----
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---