"Mike Sarahan" <[EMAIL PROTECTED]> writes:

> Benedikt Terhechte wrote:
>> Actually, that doesn't work either in the new versions, it should be:
>>
>> @identity.require(identity.in_group("admin"))
>
> Anyone correct me if I'm wrong, but I think that depends on how you do
> your imports.  if you
>
> from turbogears.identity import *
> or
> from turbogears.identity import validators
>
> you don't have to preface the validators with identity.

Anyway, for Jeff's code to work you'd have to import it both ways:

from turbogears import identity
from turbogears.identity import *

He mixed things up and this became necessary.  If you stick to one of these
then you can either prefix everything with "identity." (first line above) or
leave "identity." out of everything (second line above). 

-- 
Jorge Godoy      <[EMAIL PROTECTED]>

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