[Zope3-checkins] CVS: Zope/lib/python/ZConfig - schema.py:1.18

Fred L. Drake, Jr. fred@zope.com
Fri, 14 Feb 2003 15:04:50 -0500


Update of /cvs-repository/Zope/lib/python/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv23368

Modified Files:
	schema.py 
Log Message:
Be more agressive about forcing attribute values to ASCII strings.


=== Zope/lib/python/ZConfig/schema.py 1.17 => 1.18 ===
--- Zope/lib/python/ZConfig/schema.py:1.17	Thu Jan 16 12:34:11 2003
+++ Zope/lib/python/ZConfig/schema.py	Fri Feb 14 15:04:49 2003
@@ -129,6 +129,7 @@
     def push_prefix(self, attrs):
         name = attrs.get("prefix")
         if name:
+            name = str(name)
             if name.startswith(".") and self._prefixes:
                 prefix = self._prefixes[-1] + name
             elif name.startswith("."):
@@ -145,6 +146,7 @@
         del self._prefixes[-1]
 
     def get_classname(self, name):
+        name = str(name)
         if name.startswith("."):
             return self._prefixes[-1] + name
         else: