[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - cfgparser.py:1.6

Fred L. Drake, Jr. fred at zope.com
Wed May 5 16:34:23 EDT 2004


Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv6642

Modified Files:
	cfgparser.py 
Log Message:
Automagical case senselessness is evil, and truly vile!
We need to disable it since extension modules have identifiers for
names, and we use the section name as the extension module name in
zpkg metadata.


=== Packages/zpkgtools/zpkgtools/cfgparser.py 1.5 => 1.6 ===
--- Packages/zpkgtools/zpkgtools/cfgparser.py:1.5	Tue Apr 27 16:14:17 2004
+++ Packages/zpkgtools/zpkgtools/cfgparser.py	Wed May  5 16:34:22 2004
@@ -243,10 +243,15 @@
             self.error("malformed section header")
         type, name = m.group('type', 'name')
         type = type.lower()
-        if name:
-            # XXX Argh!  This was a mistake in ZConfig, but can't
-            # change it here.
-            name = name.lower()
+        #
+        # XXX Argh!  Converting section names to lower-case was a
+        # mistake in ZConfig, but we have to honor case here for
+        # <extension> sections.  We need to add some way to control
+        # the "nametype" of sections in ZConfig anyway.
+        #
+        # if name:
+        #    name = name.lower()
+        #
         newsect = self.schema.startSection(section, type, name)
         if isempty:
             self.schema.endSection(section, type, name, newsect)




More information about the Zope-CVS mailing list