[Zope] Redirect with results of script to another ZPT
Dieter Maurer
dieter@handshake.de
Wed, 21 Aug 2002 20:16:57 +0200
Charlie Reiman writes:
> You can't, but you can. It depends on what your other requirements are.
> Here's three suggestions:
>
> ...
> 2) Use a session. Stuff the data into the session object, redirect, and pray
> it's there when the second page gets requested. This makes me nervous for
> some reason, probably because the whole notion of sessions is nebulous for
> the web.
Sessions will not store the results of Z SQL Methods.
They are not persistent. They need to be transformed into much simpler
objects.
> ...
> Even better, why not make the ZPT the target of the form, then call your SQL
> stuff from the form? Your solution seems rather roundabout to me.
You might also find "emulateRedirect" useful:
<http://www.dieter.handshake.de/pyprojects/zope>
Dieter