[Zope] question on URL styling
Erik Myllymaki
erik.myllymaki at aviawest.com
Mon Sep 11 12:44:54 EDT 2006
Andreas Jung wrote:
>
>
> --On 11. September 2006 09:33:39 -0700 Erik Myllymaki
> <erik.myllymaki at 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.
More information about the Zope
mailing list