[Zope] Problem with dtml-if sequence-start

Tino Wildenhain tino@wildenhain.de
Fri, 01 Aug 2003 21:16:05 +0200


Dylan Reinhardt wrote:
> On Fri, 2003-08-01 at 08:47, Dylan Reinhardt wrote:
> 
>>There is no dtml-return.  You want dtml-call.
> 
> 
> Grr... sorry.  Of course there *is* a dtml-return tag.
> 
> It's still not what you want.
> 
> If you want to redirect the user, use dtml-call.  If you want to return
> the output of another object, use dtml-var.  
> 
> There are precious few cases where dtml-return is correct... so few, in
> fact, you could use Zope for a couple years straight and easily forget
> it exists. :-)

Hehe. You can also use Zope and easyly forget that DTML exists ;)
At least for templates and logic.

For that redirect issue - one should note that the page is indead
calculated and rendered, since the redirect-call only sets
a HTTP-HEader. So if content of page is confidental, just
"jump out" with return after redirect, or use
raise "Redirect","path..."

String Exceptions are ugly, but Zopes roots go back to python1.4
or worser ;)

HTH
Tino