[Zope] Help using ClassSecurityInfo...

Casey Duncan casey@zope.com
Tue, 2 Jul 2002 17:16:52 -0400


If you can reproduce this consistently on the latest Zope release (or eve=
n=20
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.
>=20
> In my product i use the sintax below:
>=20
> ---------------------------------------------
> class my_class(Implicit, Persistent, RoleManager, Item):
>   meta_type =3D 'my_type'
>   security =3D ClassSecurityInfo()
>   security.setPermissionDefault('my permission', ('role1, 'role2'))
>   ...
>   ...
>=20
> Globals.InitializeClass(my_class)
> ---------------------------------------------
>=20
> when i first instance the product the permission specified in
> setPermissionDefault are not set at all.
>=20
> 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
>=20
> can anyone help me ?
>=20
>  --------------------------------------------------------------
>     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
>  --------------------------------------------------------------
>=20
>=20
> _______________________________________________
> 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 )
>=20