[ZPT] functional methods.

Evan Simpson evan@zope.com
Fri, 31 Aug 2001 09:35:37 -0400


Phil Harris wrote:

> What is the recommended way of calling a method that has no return value,
> and has no impact on the presentation of the page in question?


Offhand, tal:define="ignored python:here.call_me(foo=1)" seems fine.

> Page 2.html then takes those selected and for example deletes them.


I don't use this pattern.  The target of my forms is always a script. 
The script performs validity/sanity checking on the input, then either 
returns a template asking for corrections or performs the request action 
and redirects to the "next" page.

Cheers,

Evan @ Zope