[Zope3-checkins] CVS: Packages/ZConfig - info.py:1.1.2.13

Fred L. Drake, Jr. fred@zope.com
Fri, 13 Dec 2002 10:42:32 -0500


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

Modified Files:
      Tag: zconfig-schema-devel-branch
	info.py 
Log Message:
Remove attempt to support section groups that didn't work.


=== Packages/ZConfig/info.py 1.1.2.12 => 1.1.2.13 ===
--- Packages/ZConfig/info.py:1.1.2.12	Fri Dec 13 10:16:57 2002
+++ Packages/ZConfig/info.py	Fri Dec 13 10:42:32 2002
@@ -196,24 +196,6 @@
         if not self._types:
             raise ZConfig.ConfigurationError(
                 "sectiongroup must contain at least on sectiontype")
-        # This tries to make sure the datatype gets set to the right
-        # thing.  If each child type has the same datatype object,
-        # that is used, otherwise one gets added that maps to the
-        # datatype specified by the actual type of the value passed to
-        # convert().
-        types = self._types.values()
-        dt = types[0].datatype
-        for t in types[1:]:
-            if t.datatype is not dt:
-                self.datatype = GroupConversion()
-                break
-        else:
-            self.datatype = dt
-
-
-class GroupConversion:
-    def convert(self, value):
-        return value.__type__.datatype.convert(value)
 
 
 class GroupType(TypeContainer):