According to the document, "A common thing to want to do is to attach an
__acl__ to the context object dynamically for declarative security
purposes", I moved __acl__ statement from RootFactory class to the Page
class, as in the following code:

class Page(Base):
   id = Column(Integer, primary_key=True)
   name = Column(Text, unique = True)
   data = Column(Text)

   def __init__(self,name,data): = name = data
*       self.__acl__=[(Allow,Everyone,'view'),(Allow,'editor','edit')]*

but it doesn't serve the purpose. What's wrong with my code?
Repoze-dev mailing list

Reply via email to