[Zodb-checkins] CVS: Packages/ZConfig - url.py:1.1.2.2

Fred L. Drake, Jr. fred@zope.com
Thu, 2 Jan 2003 09:49:26 -0500


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

Modified Files:
      Tag: zconfig-schema-devel-branch
	url.py 
Log Message:
Fix urldefrag() behavior for zconfig: URLs.


=== Packages/ZConfig/url.py 1.1.2.1 => 1.1.2.2 ===
--- Packages/ZConfig/url.py:1.1.2.1	Tue Dec 24 15:48:18 2002
+++ Packages/ZConfig/url.py	Thu Jan  2 09:49:23 2003
@@ -9,10 +9,8 @@
 
 def urldefrag(url):
     parts = urlsplit(url)
-    if parts[0] == "zconfig" and '#' in url:
-        path, fragment = parts[2].split('#', 1)
-        parts = "zconfig", '', path, '', ''
-        return parts, fragment
+    if parts[0] == "zconfig":
+        return "zconfig:" + parts[2], parts[4]
     else:
         return _urlparse.urldefrag(url)