Sorry I haven't use identity I just read about it in here that's why I didn't write some code like thing.

Looking at the trac for identity i believe the best place will be to add a

field to identity.SecureResource and went you subclass it(to make your secured pages) you will say something like 

class Toxicologia(controller.Controller
, identity.SecureResource):
required_permissions= ["write"]
required_groups = ["admin"]
allowed_hosts = ["127.0.0.1"]
identity_required = True
>then declare it.

then inside the Identity framework after the validation is done check for onLogin method which of course will be declared as empty.

that makes sence?



as a param to login object (soprovider i think) you will send in a method defined in your controller or none. That method will be executed by the identity framework if you had a success login.


On 3/10/06, Jeff Watkins <[EMAIL PROTECTED]> wrote:

Can you give me a better explanation? Maybe a pseudocode example?

On 9 Mar, 2006, at 11:22 pm, Jorge Vargas wrote:

> how about a method in identity class that executes at the end, the
> equivalent of a html onclick event + _javascript_ call (in concept of



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