[Zope] Redirect with results of script to another ZPT
Geir Bækholt
Geir Bækholt
Wed, 21 Aug 2002 08:03:04 +0200
Hello Chetan,
Tuesday, August 20, 2002, 8:44:51 PM, you wrote:
CK> Hi all
>> The situation
[snip]....
the simple, and IMHO most clean way to do this :
------------------OneZPT------------------
<FORM action SomePythonScript>
selections
</FORM>
-----------------------------------------
---------------SomePythonSript-----
results=SomeSQL(pass selections from OneZPT>
return AnotherZPT(results=results)
-----------------------------------------
-------------AnotherZPT--------------
<table>
<tr tal:repeat="myrows options/results">/tr>
i use this approach a lot (or more complex variations of it)
- you can easily make SomePythonSript return the original OneZPT if
the form-data has errors , and branch to different AnotherZPTs on any
imaginable condition.. - By far the most flexible solution , at
least..
hth :)
--
Geir Bækholt web-developer
geirh@funcom.com funcom oslo | webdev-team