[Zope] Adding instances of objects using manage_addProduct()

Dieter Maurer dieter at handshake.de
Mon Mar 1 14:05:39 EST 2004


post at volker-hemmelrath.de wrote at 2004-2-29 22:15 +0100:
> ...
>But now I want to add dynamically a Product called 'ExtFile/ExtImage'
>(perhaps you know it).
>I downloaded and installed it. It works find within ZMI.
>I tried the following in the external method:
>	self.manage_addProduct['ExtFile'].manage_addExtImage('xxx', 'XXXX', 'test
>xxx', '/home/volkerh/zope/IMGP0377.JPG', '', 'image/jpeg',0,'','', 0,0,None)
>
>That does not work. Obviously it does not find the product and the
>manage_addExtImage-method.

When you get errors, you must look at "Error Type", "Error Value"
and the traceback:

     http://<yourZope>/error_log/manage_workspace

In the beginning, you might have problems understanding this information.
Then, you must post it (again: "Error type", "Error value" *and* traceback)
together with a description as you did it in your message.

-- 
Dieter



More information about the Zope mailing list