[Zope-Checkins] CVS: Packages/ZConfig - Context.py:1.4

Fred L. Drake, Jr. fdrake@acm.org
Tue, 15 Oct 2002 14:28:30 -0400


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

Modified Files:
	Context.py 
Log Message:
Since the meaning of fragment identifiers is not specified, do not allow
them.  This does not preclude defining fragment identifiers at a later time,
and is only intended to make it clear that they are not currently supported.


=== Packages/ZConfig/Context.py 1.3 => 1.4 ===
--- Packages/ZConfig/Context.py:1.3	Mon Oct 14 16:23:42 2002
+++ Packages/ZConfig/Context.py	Tue Oct 15 14:28:29 2002
@@ -111,6 +111,9 @@
     # internal helpers
 
     def _parse_url(self, url, section):
+        if urlparse.urlparse(url)[-1]:
+            raise ConfigurationError(
+                "fragment identifiers are not currently supported")
         file = urllib2.urlopen(url)
         self._current_imports.append(section)
         try: