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

Fred L. Drake, Jr. fred@zope.com
Fri, 13 Dec 2002 16:27:27 -0500


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

Modified Files:
      Tag: zconfig-schema-devel-branch
	schema.py 
Log Message:
Stash the datatype registry on the schema instance; we don't want to
ever use a different registry for the given schema.


=== Packages/ZConfig/schema.py 1.1.2.17 => 1.1.2.18 ===
--- Packages/ZConfig/schema.py:1.1.2.17	Fri Dec 13 16:08:12 2002
+++ Packages/ZConfig/schema.py	Fri Dec 13 16:27:27 2002
@@ -137,6 +137,7 @@
         handler = self.get_handler(attrs)
         keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
         self._schema = info.SchemaType(keytype, valuetype, datatype, handler)
+        self._schema.registry = self._registry
         self._stack = [self._schema]
 
     def end_schema(self):