|
|
@ -11,7 +11,7 @@ class Root(BaseResource): |
|
|
|
__name__ = None |
|
|
|
__name__ = None |
|
|
|
__parent__ = None |
|
|
|
__parent__ = None |
|
|
|
|
|
|
|
|
|
|
|
_nodes = { |
|
|
|
nodes = { |
|
|
|
'account': Account, |
|
|
|
'account': Account, |
|
|
|
'admin': Admin |
|
|
|
'admin': Admin |
|
|
|
} |
|
|
|
} |
|
|
@ -22,10 +22,6 @@ class Root(BaseResource): |
|
|
|
def __acl__(self): |
|
|
|
def __acl__(self): |
|
|
|
return [ (Allow, Everyone, 'view') ] |
|
|
|
return [ (Allow, Everyone, 'view') ] |
|
|
|
|
|
|
|
|
|
|
|
def __getitem__(self, key): |
|
|
|
|
|
|
|
klass = self._nodes[key] |
|
|
|
|
|
|
|
return klass(key, self) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def includeme(config): |
|
|
|
def includeme(config): |
|
|
|
''' |
|
|
|
''' |
|
|
|