[Zope3-checkins] CVS: Packages/ZConfig - schema.py:1.1.2.11

Fred L. Drake, Jr. fred@zope.com
Thu, 12 Dec 2002 15:10:42 -0500


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

Modified Files:
      Tag: zconfig-schema-devel-branch
	schema.py 
Log Message:
Make sure the SectionInfo gets the '*' or '+' bits for repeatable
sections.


=== Packages/ZConfig/schema.py 1.1.2.10 => 1.1.2.11 ===
--- Packages/ZConfig/schema.py:1.1.2.10	Thu Dec 12 13:48:58 2002
+++ Packages/ZConfig/schema.py	Thu Dec 12 15:10:41 2002
@@ -162,8 +162,8 @@
         sectiontype = self._schema.gettype(type)
         maxOccurs, minOccurs, handler = self.get_common_info(attrs)
         any, name, attribute = self.get_name_info(attrs)
-        section = info.SectionInfo(name, sectiontype, minOccurs, maxOccurs,
-                                   handler, attribute)
+        section = info.SectionInfo(any or name, sectiontype,
+                                   minOccurs, maxOccurs, handler, attribute)
         self._stack[-1].addsection(name, section)
         self._stack.append(section)