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

Fred L. Drake, Jr. fred@zope.com
Fri, 13 Dec 2002 23:21:36 -0500


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

Modified Files:
      Tag: zconfig-schema-devel-branch
	schema.py 
Log Message:
Support the prefix attribute for sectiontype elements.

=== Packages/ZConfig/schema.py 1.1.2.18 => 1.1.2.19 ===
--- Packages/ZConfig/schema.py:1.1.2.18	Fri Dec 13 16:27:27 2002
+++ Packages/ZConfig/schema.py	Fri Dec 13 23:21:34 2002
@@ -150,6 +150,7 @@
             self.doSchemaError(
                 "sectiontype name must not be omitted or empty")
         name = self._identifier(name)
+        self.push_prefix(attrs)
         keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
         sectinfo = info.SectionType(name, keytype, valuetype, datatype)
         self._schema.addtype(sectinfo)
@@ -158,6 +159,7 @@
         self._stack.append(sectinfo)
 
     def end_sectiontype(self):
+        del self._prefixes[-1]
         self._stack.pop()
 
     def start_section(self, attrs):