[Zope] question on URL styling

Andreas Jung lists at zopyx.com
Mon Sep 11 12:39:16 EDT 2006



--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.

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20060911/ce4a9a11/attachment.bin


More information about the Zope mailing list