Commit 3455e9d9 authored by Jim Fulton's avatar Jim Fulton

Changed to use ZClass manage_addZClass.

parent 70fa6426
...@@ -91,18 +91,11 @@ class ZClassOwner(ExtensionClass.Base): ...@@ -91,18 +91,11 @@ class ZClassOwner(ExtensionClass.Base):
manage_addZClassForm=Globals.HTMLFile( manage_addZClassForm=Globals.HTMLFile(
'addZClass', globals(), default_class_='OFS.SimpleItem Item') 'addZClass', globals(), default_class_='OFS.SimpleItem Item')
def manage_addZClass(self, id, title='', baseclasses=[], REQUEST=None): def manage_addZClass(self, id, title='', baseclasses=[], meta_type='',
"""Add a Z Class REQUEST=None):
""" "Add a ZClass"
bases=[] return ZClass.manage_addZClass(
for b in baseclasses: self, id, title, baseclasses, meta_type, REQUEST)
if Products.meta_classes.has_key(b):
bases.append(Products.meta_classes[b])
else:
bases.append(getattr(self, b))
self._setObject(id, ZClass.ZClass(id,title,bases))
if REQUEST is not None: return self.manage_main(self,REQUEST)
def manage_subclassableClassNames(self): def manage_subclassableClassNames(self):
r={} r={}
......
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