If you can reproduce this consistently on the latest Zope release (or even better w/cvs), file a bug report in the collector http://collector.zope.org/Zope Include a simple test case if you can. -Casey On Tuesday 02 July 2002 10:14 am, Paolo Galati wrote:
Hi , i have a problem using ClassSecurityInfo in my python product for CMF.
In my product i use the sintax below:
--------------------------------------------- class my_class(Implicit, Persistent, RoleManager, Item): meta_type = 'my_type' security = ClassSecurityInfo() security.setPermissionDefault('my permission', ('role1, 'role2')) ... ...
Globals.InitializeClass(my_class) ---------------------------------------------
when i first instance the product the permission specified in setPermissionDefault are not set at all.
There is another method to map default permission to roles, using RoleManager i can use manage_permission to do the job but i like to know why the setPermissionDefault method not set default roles
can anyone help me ?
-------------------------------------------------------------- Paolo Galati - Developement Area [ n o z e S.r.l. ] - Soluzioni open-source Via Giuntini, 25 int.29 - 56023 Navacchio - Cascina (PI) Tel +39 (0)50 754380 - Fax +39 (0)50 754381 Email: paolo@noze.it - Web: http://www.noze.it --------------------------------------------------------------
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )