[Zope3-checkins] CVS: Packages/ZConfig - Context.py:1.13

Fred L. Drake, Jr. fred@zope.com
Wed, 4 Dec 2002 12:29:00 -0500


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

Modified Files:
	Context.py 
Log Message:
Use the resource factory instead of referring to the class directly.


=== Packages/ZConfig/Context.py 1.12 => 1.13 ===
--- Packages/ZConfig/Context.py:1.12	Tue Dec  3 10:36:53 2002
+++ Packages/ZConfig/Context.py	Wed Dec  4 12:28:59 2002
@@ -74,7 +74,7 @@
         self._all_sections.append(top)
         self._imports = [top]
         self._current_imports.append(top)
-        r = Resource(file, url)
+        r = self.createResource(file, url)
         try:
             self.parse(r, top)
         finally:
@@ -98,7 +98,7 @@
     def includeConfiguration(self, section, url):
         # XXX we always re-parse, unlike import
         file = urllib2.urlopen(url)
-        r = Resource(file, url)
+        r = self.createResource(file, url)
         try:
             self.parse(r, section)
         finally:
@@ -151,7 +151,7 @@
                 "fragment identifiers are not currently supported")
         file = urllib2.urlopen(url)
         self._current_imports.append(section)
-        r = Resource(file, url)
+        r = self.createResource(file, url)
         try:
             self.parse(r, section)
         finally: