Commit fc3c96a8 authored by Tres Seaver's avatar Tres Seaver

Don't raise string exceptions from 'name' variants af '<dtml-raise>'.

parent cee1da3f
...@@ -49,7 +49,7 @@ class Raise: ...@@ -49,7 +49,7 @@ class Raise:
def render(self,md): def render(self,md):
expr = self.expr expr = self.expr
if expr is None: if expr is None:
t = self.__name__ t = __builtins__.get(self.__name__, RuntimeError)
else: else:
try: try:
t = expr.eval(md) t = expr.eval(md)
......
...@@ -148,7 +148,7 @@ zope.exceptions = 3.5.2 ...@@ -148,7 +148,7 @@ zope.exceptions = 3.5.2
zope.file = 0.4.0 zope.file = 0.4.0
zope.filerepresentation = 3.5.0 zope.filerepresentation = 3.5.0
zope.formlib = 3.5.2 zope.formlib = 3.5.2
zope.hookable = 3.4.0 zope.hookable = 3.4.1
zope.html = 1.1.0 zope.html = 1.1.0
zope.i18n = 3.6.0 zope.i18n = 3.6.0
zope.i18nmessageid = 3.4.3 zope.i18nmessageid = 3.4.3
......
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