[Zope] Trouble Creating Instance of Custom Product Programmatically

Dieter Maurer dieter@handshake.de
Fri, 19 Apr 2002 20:22:01 +0200


Dan Shafer writes:
 > I thought I had understood the instructions at Zope.org but I'm doing 
 > something wrong.
 > 
 > I have a custom Zope Product called PI_Clearing. It has several ZClasses in 
 > it, including one called Clearing. I want to set up a Web fom with which 
 > the user creates a new instance of a Clearing object. Following what I 
 > understand of the directions, I have this DTML method called startClearing:
 > 
 > dtml-call "REQUEST.set('id', 'New Clearing')
 > dtml-with "manage_addProduct['Clearing']"
                                 ^^^^^^^^
This need to be the product not the ZClass name.
 >   dtml-call "Clearing_add"
 > /dtml-with


Dieter