[Zope] Adding ZClass Instances via DTML

Kevin Dangoor kid@kendermedia.com
Thu, 10 Feb 2000 14:58:09 -0500


----- Original Message -----
From: "Nico Grubert" <nico@beehive.de>
To: <zope@zope.org>
Sent: Thursday, February 10, 2000 11:41 AM
Subject: [Zope] Adding ZClass Instances via DTML


> This dtml-method calls another dtml-method "add_dtml" which looks like
> this:
>
>  <dtml-call "REQUEST.set('id','<dtml-var newID>')">
>  <dtml-with "manage_addProduct['BuchProduct']">
>    <dtml-call "BuchClass_add(_.None,_, NoRedir=1)">
>  </dtml-with>

DTML tags don't work inside of other DTML tags. When you do <dtml-call
"REQUEST...etc">, the stuff in quotes is actually a python expression. Which
means, that if you want to use the newID variable, all you do is just put
newID in there, like:

<dtml-call "REQUEST.set('id', newID)">

I think the rest of it looks good.

Kevin