[Zope] Trouble Creating Instance of Custom Product Programmatically

Dan Shafer pydan@danshafer.com
Fri, 19 Apr 2002 13:41:33 -0700


At 08:22 PM 4/19/2002 +0200, Dieter Maurer wrote:
>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.

Thanks for the reply, Dieter.

Forgot to mention that I had tried it both ways: with the ZClass name and 
with the Product name. No joy either way.

>  >   dtml-call "Clearing_add"
>  > /dtml-with
>
>
>Dieter