Commit ed17f397 authored by Michel Pelletier's avatar Michel Pelletier

Ok, dumb mistake. CreateAFactory=1 is passed in with the constructor

of the HTMLFile manage_addZClassForm, and when your in BOBO_DEBUG_MODE
the value is re initialized to 1 each time, so the incorrect behavior
only happens in debug mode.
parent 19407928
......@@ -100,7 +100,7 @@ class PersistentClass(Base):
manage_addZClassForm=Globals.HTMLFile(
'addZClass', globals(), default_class_='OFS.SimpleItem Item',
CreateFactory=1)
CreateAFactory=1)
def find_class(ob, name):
......@@ -140,7 +140,7 @@ def manage_addZClass(self, id, title='', baseclasses=[],
if meta_type: Z._zclass_.meta_type=meta_type
self._setObject(id, Z)
if CreateFactory and meta_type:
if CreateAFactory and meta_type:
self.manage_addDTMLMethod(
id+'_addForm',
id+' constructor input form',
......
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