Well, trying accessing a method on Admin directly don't require
identification... :-| so don't protect the tree...
The code...
"""
class Admin(controllers.Controller, identity.SecureResource):
required_groups= ["Admin"]
@turbogears.expose(template="wgstock.templates.admin_index")
def index( self ):
return dict()
class Root(controllers.RootController):
@turbogears.expose(template="wgstock.templates.index")
def index(self):
return dict()
Admin = Admin()
"""
url that I have tested:
* http://localhost:8080/Admin or
* http://localhost:8080/Admin/ or
* http://localhost:8080/Admin/index
Helio