[ZPT] ZPT & Request

Evan Simpson evan at 4-am.com
Mon Jul 21 11:23:43 EDT 2003


Philip Kilner wrote:
>     tal:replace="request/form/names()"

The REQUEST form attribute is a Python dictionary, which means that the 
following will work:

tal:replace="request/form/keys"
tal:replace="request/form/values"
tal:replace="request/form/items"

Be aware that this also means that you need to use Python expressions if 
you use form variables named 'keys', 'values', or 'items', like so:

tal:replace="python:request.form['items']"

Cheers,

Evan @ 4-am




More information about the ZPT mailing list