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

Fred L. Drake, Jr. fred@zope.com
Wed, 9 Jul 2003 13:25:13 -0400


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

Modified Files:
	CheckPathAlt.html 
Log Message:
Access the key that was looked up in a way that will result in the
same output for both Python 2.2 and 2.3.

Python 2.3 changes the str() of KeyError exceptions to return a repr()
of the key instead of the str() of the key, which caused quotes to be
generated if we don't pick out just the key.


=== Zope/lib/python/Products/PageTemplates/tests/input/CheckPathAlt.html 1.3 => 1.4 ===
--- Zope/lib/python/Products/PageTemplates/tests/input/CheckPathAlt.html:1.3	Thu Dec 13 13:37:50 2001
+++ Zope/lib/python/Products/PageTemplates/tests/input/CheckPathAlt.html	Wed Jul  9 13:25:07 2003
@@ -15,7 +15,7 @@
    <p tal:attributes="name y/z | python:'||'[:0]">Z</p>
    <p tal:attributes="name y/z | nothing">Z</p>
 
-   <p tal:on-error="python:str(error.value)" tal:content="a/b | c/d">Z</p>
+   <p tal:on-error="python:str(error.value[0])" tal:content="a/b | c/d">Z</p>
    </div>
 </body>
 </html>