SVN: zpkgtools/trunk/zpkgtools/ remove another turd left over from the repository: URL scheme

"Fred L. Drake, Jr." <[email protected]>
Newsgroups gmane.comp.web.zope.public-cvs
Message-ID <[email protected]>
Log message for revision 38151:
  remove another turd left over from the repository: URL scheme

Changed:
  U   zpkgtools/trunk/zpkgtools/app.py
  U   zpkgtools/trunk/zpkgtools/include.py

-=-
Modified: zpkgtools/trunk/zpkgtools/app.py
===================================================================
--- zpkgtools/trunk/zpkgtools/app.py	2005-08-29 21:13:42 UTC (rev 38150)
+++ zpkgtools/trunk/zpkgtools/app.py	2005-08-29 22:15:56 UTC (rev 38151)
@@ -374,7 +374,7 @@
         self.pkginfo = None
         self.pubinfo = None
         self.source = self.ip.loader.load(self.url)
-        specs = include.load(self.source, url=self.url)
+        specs = include.load(self.source)
         if specs.loads:
             source = self.ip.loader.load_mutable_copy(self.url)
             if source != self.source:

Modified: zpkgtools/trunk/zpkgtools/include.py
===================================================================
--- zpkgtools/trunk/zpkgtools/include.py	2005-08-29 21:13:42 UTC (rev 38150)
+++ zpkgtools/trunk/zpkgtools/include.py	2005-08-29 22:15:56 UTC (rev 38151)
@@ -65,19 +65,16 @@
         return s
 
 
-def load(sourcedir, url=None):
+def load(sourcedir):
     """Return the specifications for populating the distribution and
     collection directories.
 
     :param sourcedir: Directory we're loading the specifications for.
 
-    :param url: URL used to retrieve `sourcedir`; this is needed to
-      resolve repository: references.
-
     If there is not specification file, return empty specifications.
     """
     package_conf = os.path.join(sourcedir, PACKAGE_CONF)
-    schema = SpecificationSchema(sourcedir, package_conf, baseurl=url)
+    schema = SpecificationSchema(sourcedir, package_conf)
     if os.path.isfile(package_conf):
         f = open(package_conf, "rU")
         try:
@@ -119,13 +116,11 @@
         return np.replace("/", os.sep)
 
 
-def normalize_path_or_url(path, type, group, baseurl=None):
+def normalize_path_or_url(path, type, group):
     if ":" in path:
         scheme, rest = urllib.splittype(path)
         if len(scheme) != 1:
             # should normalize the URL, but skip that for now
-            if baseurl and scheme == "repository":
-                path = loader.join(baseurl, path)
             return path
     return normalize_path(path, type, group)
 
@@ -134,8 +129,7 @@
     """Specialized schema that handles populating a set of Specifications.
     """
 
-    def __init__(self, source, filename, baseurl=None):
-        self.baseurl = baseurl
+    def __init__(self, source, filename):
         self.filename = filename
         self.source = source
 
@@ -198,8 +192,7 @@
                     " in <load> section")
             # perhaps should make sure workfile and other don't refer
             # to the same file
-            other = normalize_path_or_url(other, "source", section.group,
-                                          self.baseurl)
+            other = normalize_path_or_url(other, "source", section.group)
         elif other:
             # workfile and other have a backward relationship for this:
             # <destination>

_______________________________________________
Zope-CVS maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zope-cvs

Zope CVS instructions: http://dev.zope.org/CVS
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.