[ZCM] [ZC] 1083/ 1 Request "InitializeClass doesn't work with new
style classes"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Sat Oct 11 20:34:54 EDT 2003
Issue #1083 Update (Request) "InitializeClass doesn't work with new style classes"
Status Pending, Zope/bug medium
To followup, visit:
http://collector.zope.org/Zope/1083
==============================================================
= Request - Entry #1 by Tiran on Oct 11, 2003 8:34 pm
The Globals.InitializeClass function does not apply with a new style class. If I inherit from object the product code raises a TypeError. Without inheriting (-> old style class) it works.
Traceback:
InitializeClass(PhotoEngineBase)
File "/usr/lib/zope/2.7-branch-23/lib/python/App/class_init.py", line 61, in default__class_init__
security_info.apply(self)
File "/usr/lib/zope/2.7-branch-23/lib/python/AccessControl/SecurityInfo.py", line 165, in apply
dict['%s__roles__' % name] = access
TypeError: object does not support item assignment
==============================================================
More information about the Zope-Collector-Monitor
mailing list