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

Fred L. Drake, Jr. fred@zope.com
Sat, 21 Dec 2002 03:00:19 -0500


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

Modified Files:
      Tag: zconfig-schema-devel-branch
	loader.py 
Log Message:
Remove the poorly thought out approach to loading a single type from a
schema.  This approach isn't used or tested, and isn't the right
approach for importing schema types.


=== Packages/ZConfig/loader.py 1.1.2.20 => 1.1.2.21 ===
--- Packages/ZConfig/loader.py:1.1.2.20	Sat Dec 21 02:57:15 2002
+++ Packages/ZConfig/loader.py	Sat Dec 21 03:00:18 2002
@@ -104,18 +104,10 @@
         self.registry = registry
         BaseLoader.__init__(self)
 
-    def normalizeURL(self, url):
-        if url:
-            url, self._fragment = urlparse.urldefrag(url)
-        return BaseLoader.normalizeURL(self, url)
-
     def loadResource(self, resource):
         from ZConfig.schema import SchemaParser
         parser = SchemaParser(self.registry)
-        schema = parser.parseStream(resource.file)
-        if self._fragment:
-            schema = schema.gettype(self._fragment)
-        return schema
+        return parser.parseStream(resource.file)
 
 
 class ConfigLoader(BaseLoader):