[Zope-dev] Initial ZODB permissions

Andy McKay andy at agmweb.ca
Wed Oct 8 12:50:34 EDT 2003


Sure enough as soon as I email the list I remembered permissions can be 
declared anywhere, one grep more and there it is in CopySupport.py, 385:

class CopySource(ExtensionClass.Base):
     """Interface for objects which allow themselves to be copied."""

     # declare a dummy permission for Copy or Move here that we check
     # in cb_isCopyable.
     __ac_permissions__=(
         ('Copy or Move', (), ('Anonymous', 'Manager',)),
         )

Of course you need to be able to paste... so may not be a huge problem, 
just looks wrong :)
-- 
   Andy McKay
   http://www.agmweb.ca




More information about the Zope-Dev mailing list