[Zope] What is "default__class_init__"?
Johan Carlsson [Torped]
johanc@torped.se
Fri, 01 Mar 2002 10:48:16 +0100
At 17:51 2002-02-28 +0100, Peter Bengtsson wrote:
>Can anybody tell me what you use "default__class_init__" from Globals for?
>I've seen it used many times in python products but never really=20
>understood its use.
>
>Is it used in conjunction with setting the "__ac_permissions__" property?
>If so, using the more modern "AccessControl.ClassSecurityInfo()", is there=
=20
>no need for "default__class_init__" anymore?
>
>Curious, Peter
default__class_init__ is InitializeClass, or vice verse for being exact.
From Globals.py:
InitializeClass =3D default__class_init__
Yes, it is use to registers the permissions defined by__ac_permissions__.
No, you still have to use InitializeClass (or default__class_init__) when=20
you use AccessControl.ClassSecurityInfo.
AccessControl.ClassSecurityInfo is just a fancy way of setting up the=20
__ac_permissions__ attribute.
Regards,
Johan Carlsson
torped strategi och kommunikation ab
johan carlsson
johanc@torped.se
birkagatan 9
113 36 stockholm
v=E4stmannagatan 67
http://www.torped.se
http://easypublisher.torped.se