On 2/23/06, Nyenyec N <[EMAIL PROTECTED]> wrote:
>
> I think this should work:
>
> class Root(controllers.RootController):
>     # Mount catwalk for admins only
>     catwalk = CatWalk(model)
>     catwalk = identity.SecureObject(catwalk, identity.in_group("admin"))

Right on! Thanks a lot, nyenyec.

Diwaker

> On 2/23/06, Diwaker Gupta <[EMAIL PROTECTED]> wrote:
> >
> > Lets say I'm mounting catwalk in my project thus:
> >
> > class Root(controllers.RootController):
> >     catwalk = CatWalk(model)
> >
> > Now I want to restrict access to catwalk to some group of users. How
> > do I enable identity protection for it? Giving identity.require before
> > mounting catwalk (expectedly) fails.
> >
> > Suggestions?

--
Web/Blog/Gallery: http://floatingsun.net/blog

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