[Zodb-checkins] CVS: Packages/ZConfig - loader.py:1.1.2.27

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


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

Modified Files:
      Tag: zconfig-schema-devel-branch
	loader.py 
Log Message:
Simply, and make test_nested_abstract_sectiontype() pass.


=== Packages/ZConfig/loader.py 1.1.2.26 => 1.1.2.27 ===
--- Packages/ZConfig/loader.py:1.1.2.26	Fri Jan  3 13:45:04 2003
+++ Packages/ZConfig/loader.py	Fri Jan  3 13:53:03 2003
@@ -171,9 +171,7 @@
             raise ZConfig.ConfigurationError(
                 "concrete sections cannot match abstract section types;"
                 " found abstract type " + `type`)
-        info = parent.info
-        info = getattr(info, "sectiontype", info)
-        ci = info.getsectioninfo(type, name)
+        ci = parent.type.getsectioninfo(type, name)
         assert not ci.istypegroup()
         if not ci.isAllowedName(name):
             raise ZConfig.ConfigurationError(