manage_addProduct problem
Hi helpers I have a Product/class subclassing Folder. When I try to manage_addProduct['ProductName'].manage_addConstructor() inside my Product I get this. Traceback (innermost last): * Module ZPublisher.Publish, line 98, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Products.CUBank.CUBank, line 19, in manage_addCUAction * Module Products.CUBank.CUBank, line 45, in __init__ * Module Products.CUBank.CUBank, line 53, in setupBank * Module App.FactoryDispatcher, line 26, in __getitem__ * Module App.FactoryDispatcher, line 29, in __bobo_traverse__ AttributeError: _getProducts I can add products inside zope but not when i init the new object instance. Any ideas what is the problem or why and how to fix?
drew nichols wrote:
Hi helpers
I have a Product/class subclassing Folder.
When I try to manage_addProduct['ProductName'].manage_addConstructor() inside my Product I get this.
AttributeError: _getProducts
I can add products inside zope but not when i init the new object instance.
You should not add objects inside you __init__ method, but inside the konstruktor function. regards Max M
participants (2)
-
drew nichols -
Max M