[Zope3-checkins] CVS: Zope3/lib/python/Zope/DocumentTemplate - pDocumentTemplate.py:1.4

Jim Fulton jim@zope.com
Wed, 18 Sep 2002 11:02:32 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/DocumentTemplate
In directory cvs.zope.org:/tmp/cvs-serv22919

Modified Files:
	pDocumentTemplate.py 
Log Message:
Changed to use [0] rather than str to get key out of a key error.
There really should be a better protocol for doing this.


=== Zope3/lib/python/Zope/DocumentTemplate/pDocumentTemplate.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/DocumentTemplate/pDocumentTemplate.py:1.3	Wed Jul 17 19:13:30 2002
+++ Zope3/lib/python/Zope/DocumentTemplate/pDocumentTemplate.py	Wed Sep 18 11:02:31 2002
@@ -202,7 +202,7 @@
                                 cond = md[cond]
                                 cache[n] = cond
                             except KeyError, v:
-                                v = str(v)
+                                v = v[0]
                                 if n != v:
                                     raise KeyError, v, sys.exc_traceback
                                 cond=None