[Zope] Mailform & Sendmail

Michael Gutmann gutmann@uni-duesseldorf.de
Fri, 29 Jun 2001 13:43:56 +0200


Tapio H=FCffner wrote:

<...>=20
> My idea was something like
>=20
> <dtml-in "REQUEST.form">
> <dtml-var name>: <dtml-var value>
> </dtml-in>
>=20
> but REQUEST.form isn't a sequence!?


No, it's something far better than a sequence, its a dictionary ;-))
Try this:

<dtml-in "REQUEST.form.keys()">
Var:&dtml-sequence-item;, Value:<dtml-var "REQUEST.form[_['sequence-item'=
]]"><br>
</dtml-in>

A dictionary is an associative array, in which values are referenced by
keys, in this case the name of the form variable. You get lists by
predefined methods, every python dictionary has like keys() for a list
of keys und values() for a list of values.

> I guess this is an easy question. Thank you in advance,


Yes, for pythonists.

>=20
> Tapio

Michael
--=20
Michael Gutmann M.A.
gutmann@uni-duesseldorf.de
Multimediazentrum Heinrich-Heine-Universitaet Duesseldorf