[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/SQLScript - DT_SQLTest.py:1.3

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


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/SQLScript
In directory cvs.zope.org:/tmp/cvs-serv23155

Modified Files:
	DT_SQLTest.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/App/OFS/Content/SQLScript/DT_SQLTest.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/App/OFS/Content/SQLScript/DT_SQLTest.py:1.2	Wed Jul 17 18:59:15 2002
+++ Zope3/lib/python/Zope/App/OFS/Content/SQLScript/DT_SQLTest.py	Wed Sep 18 11:04:47 2002
@@ -107,7 +107,7 @@
         try:
             v = md[name]
         except KeyError, key:
-            if str(key) == name and self.optional:
+            if key[0] == name and self.optional:
                 return ''
             raise KeyError, key, sys.exc_info()[2]