[Zope] Form processing in Zope

Jan Lentfer Jan.Lentfer@gmx.net
Fri, 30 Mar 2001 13:27:17 +0200


Am Freitag, 30. März 2001 12:17 schrieben Sie:

> So how does a dtml document recieve the fields in a form ?

This is a small code I use.

The html-form field is named "einkauf_field".
I use an Product called "Einkaufsliste", which has a ZClass 
"einkaufsliste_entry", which again has a property "artikel".

The follwoing code is all you need to create an object with the content of 
the form.

----------
<dtml-call "REQUEST.set('artikel',einkauf_field)">

<dtml-with "manage_addProduct['Einkaufsliste']">
    <dtml-call "einkaufsliste_entry_add(_.None, _)">
</dtml-with>
----------


hth,

Jan
-- 
Jan@MountainbikeHQ.de
http://www.MountainbikeHQ.de - Your home for DH, DS and CC Mountainbiking