Elver:

Ideal will be

from turbogears import identity
from turbogears.identity.conditions import *
from turbogears.toolbox import catwalk

Class Root....
    admin = catwalk(identity.require(
group="admin",permission="foo,bar" ))

then you can access catwalk in "/admin" page with authorization, but
it's not possible now...

the possible way is:

Class Root....
@identity.require( group="admin",permission="foo,bar" )
@expose()
def authzone(self):
     admin = catwalk()

then you can access catwalk in "/authzone/admin" page with
authorization.

haven't confirmed yet....

--
Fred


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