[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - loader.py:1.5
Fred L. Drake, Jr.
fred at zope.com
Mon Apr 26 11:21:27 EDT 2004
Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv9633
Modified Files:
loader.py
Log Message:
for file: URLs, determine whether the URL points to a Subversion
repository or whether it can be treated as a conventional file: URL
=== Packages/zpkgtools/zpkgtools/loader.py 1.4 => 1.5 ===
--- Packages/zpkgtools/zpkgtools/loader.py:1.4 Fri Apr 23 15:56:12 2004
+++ Packages/zpkgtools/zpkgtools/loader.py Mon Apr 26 11:21:27 2004
@@ -11,7 +11,9 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-"""
+"""General loader support.
+
+This handles tag insertion and URL type dispatch.
"""
import os
@@ -23,6 +25,7 @@
import urlparse
from zpkgtools import cvsloader
+from zpkgtools import svnloader
def open(url, mode="r"):
@@ -134,10 +137,8 @@
return filename
def load_file(self, url):
- # XXX This doesn't deal with file: URLs that Subversion uses,
- # where a portion of the path points to a Subversion
- # repository, and the rest points into the logical structure
- # of the repository itself.
+ if svnloader.is_subversion_url(url):
+ raise NotImplementedError("loading from Subversion isn't done yet")
parts = urlparse.urlsplit(url)
path = urllib.url2pathname(parts[2])
if not os.path.exists(path):
More information about the Zope-CVS
mailing list