[Zope] Redirect from zpt
David Chandek-Stark
dc at duke.edu
Thu Aug 5 10:17:05 EDT 2004
Something like this at the top of your ZPT:
<tal:block tal:condition="exists:request/myval">
<tal:block tal:define="redir python:request.RESPONSE.redirect(myurl)" />
</tal:block>
--David
Les Ferguson wrote:
> Where do I go to search the archives of this list?
>
> I need to redirect from a zpt to another page, if request does not have
> a specific key. I have googled and read the zope book and tried every
> variation I can think of... now I just feel stupid.
>
> How do I get a tal:condition to call response.redirect if
> request.has_key(myval) is false ?
>
--
David Chandek-Stark
Web Applications Developer
Duke University - Perkins Library
(919) 660-5859
dc at duke.edu
More information about the Zope
mailing list