Commit 822933c1 authored by Jim Fulton's avatar Jim Fulton

Added return tag support. Return works via an exception, so

we have to pass this special kind of exception through.
parent b9f9566a
......@@ -86,6 +86,7 @@
import string, sys, traceback
from cStringIO import StringIO
from DT_Util import parse_params, render_blocks, namespace, InstanceDict
from DT_Return import DTReturn
class Try:
"""Zope DTML Exception handling
......@@ -143,6 +144,8 @@ class Try:
# first we try to render the first block
try:
return render_blocks(self.section, md)
except DTReturn:
raise
except:
# but an error occurs.. save the info.
t,v = sys.exc_info()[:2]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment