[Zodb-checkins] CVS: Packages/ZConfig - schema.py:1.1.2.25

Fred L. Drake, Jr. fred@zope.com
Wed, 18 Dec 2002 16:25:33 -0500


Update of /cvs-repository/Packages/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv8550

Modified Files:
      Tag: zconfig-schema-devel-branch
	schema.py 
Log Message:
Convert section and key names to attribute names early rather than
late.


=== Packages/ZConfig/schema.py 1.1.2.24 => 1.1.2.25 ===
--- Packages/ZConfig/schema.py:1.1.2.24	Wed Dec 18 15:56:52 2002
+++ Packages/ZConfig/schema.py	Wed Dec 18 16:25:32 2002
@@ -303,6 +303,9 @@
                     " when using '*' or '+' for a section name")
             return name, None, aname
         else:
+            if not aname:
+                aname = self._basic_key(name)
+                aname = self._identifier(aname.replace('-', '_'))
             return None, self._basic_key(name), aname
 
     def error(self, message):