hello, i am searching for hours, and i don't find how to define a new permission, in python code, for my product can you help me ? thanks thomas
Look at the e.g. at the PloneCollectorNG sources..it defines new roles and permissions. -aj --On 7. Juni 2006 09:53:10 +0200 thomas desvenain <thomas.desvenain@gmail.com> wrote:
hello,
i am searching for hours, and i don't find how to define a new permission, in python code, for my product
can you help me ?
thanks
thomas _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: info@zopyx.com - Phone +49 - 7071 - 793376 E-Publishing, Python, Zope & Plone development, Consulting
thomas desvenain wrote:
i am searching for hours, and i don't find how to define a new permission, in python code, for my product
Permissions kind of "spring into existence" when they are used. For example, Poi defines some additional permissions in Products/Poi/permissions.py. It then calls setDefaultRoles() to set the default roles of each permission. When these are used e.g. in security.declareProtected() statements around methods, they become available in the ZMI. Martin -- View this message in context: http://www.nabble.com/creating-a-new-permission-t1746362.html#a4748103 Sent from the Zope - General forum at Nabble.com.
participants (3)
-
Andreas Jung -
Martin Aspeli -
thomas desvenain