11 Sep
2006
11 Sep
'06
4:44 p.m.
Andreas Jung wrote:
--On 11. September 2006 09:33:39 -0700 Erik Myllymaki <erik.myllymaki@aviawest.com> wrote:
I'm trying this out and it seems to be working:
request.RESPONSE.redirect(context[next_page].absolute_url())
is this the *correct* way to do it?
Basically yes. But it is bad practice to perform redirections with a ZPT (I assume that since you're using lowercase 'request'). Better use a PythonScript instead.
yes it is in a python script; i just keep the boilerplate from the example python scripts around: request = context.REQUEST . . . request.RESPONSE.redirect(context[next_page].absolute_url()) . . . Thanks.