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

Fred L. Drake, Jr. fred@zope.com
Tue, 10 Dec 2002 16:50:53 -0500


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

Modified Files:
      Tag: zconfig-schema-devel-branch
	loader.py 
Log Message:
Rename "SchemaParser" module to "schema".
Add some minor comments.


=== Packages/ZConfig/loader.py 1.1.2.5 => 1.1.2.6 ===
--- Packages/ZConfig/loader.py:1.1.2.5	Tue Dec 10 16:33:39 2002
+++ Packages/ZConfig/loader.py	Tue Dec 10 16:50:52 2002
@@ -63,7 +63,7 @@
 
 class SchemaLoader(BaseLoader):
     def loadResource(self, resource):
-        from SchemaParser import SchemaParser
+        from ZConfig.schema import SchemaParser
         parser = SchemaParser()
         return parser.parseStream(resource.file)
 
@@ -79,6 +79,8 @@
         self._parse_resource(sm, resource)
         return sm.finish()
 
+    # parser support API
+
     def startSection(self, parent, type, name, delegatename):
         if delegatename:
             raise NotImpementedError("section delegation is not yet supported")
@@ -90,6 +92,8 @@
     def includeConfiguration(self, section, url):
         r = self.openResource(url)
         self._parse_resource(section, r)
+
+    # internal helper
 
     def _parse_resource(self, matcher, resource):
         from ZConfig.cfgparser import ZConfigParser