Michael R. Bernstein wrote:
>> In Zope 2.3) it is aliased to Globals.InitializeClass.
> So, if I'm developing this on 2.2, I need to use
> Globals.default__class_init__(FooClass) instead of
Yes. At least, using default__class_init__ will work on Zope 2.2 and 2.3.
I don't know whether InitializeClass is in Zope 2.2, but it is definitely in Zope 2.3.
>> Use it by having
>> import Globals
>> somewhere in your class definition,
> If 'import Globals' appears at the start of the FooClass.py
> file, does it still need to appear in the class definition
Sorry -- my imprecise language!
"import Globals" needs to be in the .py file that your
class is defined in, at the module level of indentation.
You're importing Globals so that you can use it in the
module rather than in the Class definition.
>> at the end.
> At the end on the file, or the end of the class definition?
After the class definition, so, qiute probably at the end of the file.
Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -