[Zope] Adding ZClass Instances via DTML
Nico Grubert
nico@beehive.de
Mon, 14 Feb 2000 11:01:31 +0100
>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
Kevin, this makes no sense for me. Why should I add an instance by
adding every time a new id and calling the method ? This really makes no
sense for me !
I would like to use an input-type text and a submit button for adding an
zclass-instances.
Is this possible ?
Nico