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