Commit d54e3f23 authored by Jim Fulton's avatar Jim Fulton

Fixed stupid bug in setting initial method. Waaaa.

parent e3c3fc51
......@@ -141,9 +141,6 @@ class ProductContext:
tt=type(())
productObject=self.__prod
if type(initial) is tt: name, initial = initial
else: name=initial.__name__
if icon and instance_class is not None:
setattr(instance_class, 'icon', 'Control_Panel/Products/%s/%s' %
(productObject.id, os.path.split(icon)[1]))
......@@ -181,6 +178,9 @@ class ProductContext:
setattr(OM, name, method)
setattr(OM, name+'__roles__', pr)
if type(initial) is tt: name, initial = initial
else: name=initial.__name__
if productObject.__dict__.has_key(name): return
self.__app._manage_add_product_meta_type(
......
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