[Zope] aborting DTML parsing

Jan Stohner stohner@drze.de
Fri, 26 Nov 1999 16:12:30 +0100


Hello,

i know that i can use <dtml-return> to return data from a DTML method. For
example, when standard_html_header is called from a DTML document and i use
<dtml-return> in standard_html_header, i'm back in the document with the
result from the return tag.

I am searching for a method to stop rendering at all, no matter how deep
method calls are nested (a "return" would now stop rendering of the
complete document).

I searched the Mailing List archive but was only able to find a similar
question (from Anthony Baxter, April 21), but not an answer.

Is there a quick solution? I had the idea to implement a <dtml-quit> tag
which is similar to <dtml-return> but raises a different exception, but i
wasn't able to find the right place in the sources to catch this exception.

Thanks for any help.
Jan
-- 
Dipl.-Inform. Jan Stohner ------------------ stohner@drze.de
Deutsches Referenzzentrum für Ethik in den Biowissenschaften
Niebuhrstraße 53 -- D-53113 Bonn -- Telefon: +49 228/73-1932