[Zope3-checkins] CVS: Packages/ZConfig - loader.py:1.1.2.26

Fred L. Drake, Jr. fred@zope.com
Fri, 3 Jan 2003 13:45:07 -0500


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

Modified Files:
      Tag: zconfig-schema-devel-branch
	loader.py 
Log Message:
There's no possibility of matching a configuration against a
sectiongroup, so raise an exception.


=== Packages/ZConfig/loader.py 1.1.2.25 => 1.1.2.26 ===
--- Packages/ZConfig/loader.py:1.1.2.25	Thu Jan  2 12:26:29 2003
+++ Packages/ZConfig/loader.py	Fri Jan  3 13:45:04 2003
@@ -149,6 +149,9 @@
 
 class ConfigLoader(BaseLoader):
     def __init__(self, schema):
+        if schema.istypegroup():
+            raise ZConfig.SchemaError(
+                "cannot check a configuration an abstract type")
         BaseLoader.__init__(self)
         self.schema = schema