[Zope-Checkins] SVN: Zope/trunk/ Don't raise string exceptions from 'name' variants af '<dtml-raise>'.
Tres Seaver
tseaver at palladion.com
Mon Apr 6 10:39:58 EDT 2009
Log message for revision 98923:
Don't raise string exceptions from 'name' variants af '<dtml-raise>'.
Changed:
U Zope/trunk/src/DocumentTemplate/DT_Raise.py
U Zope/trunk/versions-zope3.cfg
-=-
Modified: Zope/trunk/src/DocumentTemplate/DT_Raise.py
===================================================================
--- Zope/trunk/src/DocumentTemplate/DT_Raise.py 2009-04-06 14:38:11 UTC (rev 98922)
+++ Zope/trunk/src/DocumentTemplate/DT_Raise.py 2009-04-06 14:39:58 UTC (rev 98923)
@@ -49,7 +49,7 @@
def render(self,md):
expr = self.expr
if expr is None:
- t = self.__name__
+ t = __builtins__.get(self.__name__, RuntimeError)
else:
try:
t = expr.eval(md)
Modified: Zope/trunk/versions-zope3.cfg
===================================================================
--- Zope/trunk/versions-zope3.cfg 2009-04-06 14:38:11 UTC (rev 98922)
+++ Zope/trunk/versions-zope3.cfg 2009-04-06 14:39:58 UTC (rev 98923)
@@ -148,7 +148,7 @@
zope.file = 0.4.0
zope.filerepresentation = 3.5.0
zope.formlib = 3.5.2
-zope.hookable = 3.4.0
+zope.hookable = 3.4.1
zope.html = 1.1.0
zope.i18n = 3.6.0
zope.i18nmessageid = 3.4.3
More information about the Zope-Checkins
mailing list