Commit 84765d27 authored by Jim Fulton's avatar Jim Fulton

Added CreateAFactory setting to add form. Why is this needed?

Don't we always want this to default to true?

Added CreateAFactory argument when calling the real constructor.
This cased adding classes as methods to return no data.
parent f0655a99
......@@ -89,13 +89,15 @@ import ExtensionClass, Globals, ZClass, Products
class ZClassOwner(ExtensionClass.Base):
manage_addZClassForm=Globals.HTMLFile(
'addZClass', globals(), default_class_='OFS.SimpleItem Item')
'addZClass', globals(), default_class_='OFS.SimpleItem Item',
CreateAFactory=1)
def manage_addZClass(self, id, title='', baseclasses=[], meta_type='',
def manage_addZClass(self, id, title='', baseclasses=[],
meta_type='', CreateAFactory=0,
REQUEST=None):
"Add a ZClass"
return ZClass.manage_addZClass(
self, id, title, baseclasses, meta_type, REQUEST)
self, id, title, baseclasses, meta_type, CreateAFactory, REQUEST)
def manage_subclassableClassNames(self):
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