Commit 028d8f2e authored by Jim Fulton's avatar Jim Fulton

The fix for a problem with managing the "manage_options" meta-data broke

ZClasses that don't carry along the standard Zope bases classes.
This made it impossiblt to use ZClasses as SQL brains.
parent 2e47d098
......@@ -272,12 +272,14 @@ class ZClass(OFS.SimpleItem.SimpleItem):
PersistentClassDict(title or id))
c.__ac_permissions__=()
options=[]
for option in c.manage_options:
copy={}
copy.update(option)
options.append(copy)
c.manage_options=tuple(options)
# Copy manage options
if zope_object:
options=[]
for option in c.manage_options:
copy={}
copy.update(option)
options.append(copy)
c.manage_options=tuple(options)
# Create the class(/instance) prop sheet *class*
isheets_class=type(PersistentClass)(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment