[csw-devel] SF.net SVN: gar:[20800] csw/mgar/gar/v2/lib/python/rest.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Thu Apr 18 17:18:15 CEST 2013


Revision: 20800
          http://gar.svn.sourceforge.net/gar/?rev=20800&view=rev
Author:   wahwah
Date:     2013-04-18 15:18:15 +0000 (Thu, 18 Apr 2013)
Log Message:
-----------
pkgdb: Move a constant to the RestClient class

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/rest.py

Modified: csw/mgar/gar/v2/lib/python/rest.py
===================================================================
--- csw/mgar/gar/v2/lib/python/rest.py	2013-04-18 15:18:04 UTC (rev 20799)
+++ csw/mgar/gar/v2/lib/python/rest.py	2013-04-18 15:18:15 UTC (rev 20800)
@@ -9,7 +9,6 @@
 import urllib2
 
 DEFAULT_URL = "http://buildfarm.opencsw.org"
-RELEASES_APP = "/releases"
 
 class Error(Exception):
   """Generic error."""
@@ -26,6 +25,7 @@
 class RestClient(object):
 
   PKGDB_APP = "/pkgdb/rest"
+  RELEASES_APP = "/releases"
 
   def __init__(self, rest_url=DEFAULT_URL, username=None, password=None,
       debug=False):
@@ -130,7 +130,7 @@
     url = (
         "%s%s/catalogs/%s/%s/%s/%s/"
         % (self.rest_url,
-           RELEASES_APP,
+           self.RELEASES_APP,
            catrel, arch, osrel,
            md5_sum))
     logging.debug("DELETE @ URL: %s %s", type(url), url)

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list