[Zope] changing form values

hans hans@beehive.de
Mon, 18 Mar 2002 15:58:24 +0000


Horvath Adam wrote:

> I'd like to put a % sign before and after the values of the form variables with a loop and keep the changed form varibles in the REQUEST object. How can it be?

why? however (untested)
<dtml-in "REQUEST.form.items()">
<dtml-let i="_['sequence-item']"
              k="i[0]"
              v="i[1]"
>
   <dtml-call "REQUEST.form.update( k, { k: '%' + _.str(v) + '%' } )">
-------------------------------------------------------------
Who's got only a hammer sees the world as a nail
hans augustin  (software developer)           hans@beehive.de
beehive elektronische medien GmbH       http://www.beehive.de
phone: +49 30 847-82 0                  fax: +49 30 847-82 299