[ZPT] page redirect

Georges georges@madisoncomunicacao.com.br
Mon, 26 Nov 2001 07:13:37 -0200


It works! The condition is evaluated before to.

()s,

Georges

----- Original Message -----
From: "Robert Rottermann" <robert@redcor.ch>
To: "Geir Bækholt" <geirh@funcom.com>; "Georges"
<georges@madisoncomunicacao.com.br>
Cc: <zpt@zope.org>
Sent: Monday, November 26, 2001 7:09 AM
Subject: Re: [ZPT] page redirect


> I wonder whether this is the right way to do it. Since tal is evaluated
> before the page is displayed the page using such a redirect is never seen.
>
> Robert
> ----- Original Message -----
> From: "Geir Bækholt" <geirh@funcom.com>
> To: "Georges" <georges@madisoncomunicacao.com.br>
> Cc: <zpt@zope.org>
> Sent: Friday, November 23, 2001 7:28 PM
> Subject: Re: [ZPT] page redirect
>
>
> > Hello Georges,
> > Friday, November 23, 2001, 19:03:24, you wrote:
> > G>  how can I do a page redirect based in a condition using ZPT?
> >
> >
> > you should be able to do something like (untested):
> >
> > <span tal:condition="here/checksomething"
> > tal:replace="request.RESPONSE.redirect(URL)" />
> >
> > --
> > Geir Bækholt                       web-developer
> > geirh@funcom.com             funcom oslo | webdev-team
> >
> >
> > _______________________________________________
> > ZPT mailing list
> > ZPT@zope.org
> > http://lists.zope.org/mailman/listinfo/zpt
> >
>
>
>
>