[Zope-Checkins] CVS: Zope/lib/python/Products/PageTemplates/tests/input - StringExpression.html:1.2.44.1

Fred Drake cvs-admin at zope.org
Fri Oct 24 12:02:12 EDT 2003


Update of /cvs-repository/Zope/lib/python/Products/PageTemplates/tests/input
In directory cvs.zope.org:/tmp/cvs-serv3275/lib/python/Products/PageTemplates/tests/input

Modified Files:
      Tag: Zope-2_7-branch
	StringExpression.html 
Log Message:
Fix spurious error in PageTemplates; no longer rely on the str() of exception
objects since the value of their str() is not part of their API, and can
vary between releases.


=== Zope/lib/python/Products/PageTemplates/tests/input/StringExpression.html 1.2 => 1.2.44.1 ===
--- Zope/lib/python/Products/PageTemplates/tests/input/StringExpression.html:1.2	Tue Oct  1 11:52:55 2002
+++ Zope/lib/python/Products/PageTemplates/tests/input/StringExpression.html	Fri Oct 24 12:01:42 2003
@@ -3,8 +3,12 @@
    <title tal:content="string:Hello World!">This is the title</title>
 </head>
 <body>
-  <tal:block on-error="string:Error:${error/value}" replace="x" />
-  <tal:block on-error="string:Error:${error/value}">
+  <!-- These next two on-error expressions are very fragile; there's
+       not a lot we can do without fairly interesting exception
+       objects and not be subject to variations in the str() of the
+       exception object. -->
+  <tal:block on-error="string:Error:${error/lineno}" replace="x" />
+  <tal:block on-error="string:Error:${error/lineno}">
     <p tal:content="x">p</p>
   </tal:block>
   <div tal:replace="structure string:&lt;hr /&gt;">rule</div>




More information about the Zope-Checkins mailing list