[Zope] Redirecting from inside a TAL macro ...

Andreas Jung lists at zopyx.com
Tue May 19 09:57:40 EDT 2009


On 19.05.09 15:27, Analog Kid wrote:
> Hi All:
>
> I have a macro that is used in several other page templates. In some
> circumstances, I need to redirect to another URL. Can I do this using
> python:here.REQUEST.RESPONSE.redirect(<NEWURL>) so that the master
> page that uses this macro is redirected to the NEWURL?

This is bad-style. Redirections belong into a browser view or a
PythonScript but
not into a page template and definitely not into a macro.

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20090519/59966bac/attachment.vcf 


More information about the Zope mailing list