Skip to content

Instantly share code, notes, and snippets.

@mmerickel
Forked from wwitzel3/root.py
Created January 27, 2011 00:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmerickel/797816 to your computer and use it in GitHub Desktop.
Save mmerickel/797816 to your computer and use it in GitHub Desktop.
class DayZeroContainer(ModelContainer):
def __init__(self, request, cls):
self.cls = cls
self.request = request
@property
def __acl__(self):
return [
(Allow, 'owner:{0}'.format(cls.ownerid), ('add', 'edit)),
# ... some other acls for this particular resource?
] + Root.__acl__
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment