[csw-devel] SF.net SVN: gar:[17283] csw/mgar/gar/v2/lib/python/rest.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Sun Mar 4 00:24:08 CET 2012
Revision: 17283
http://gar.svn.sourceforge.net/gar/?rev=17283&view=rev
Author: wahwah
Date: 2012-03-03 23:24:08 +0000 (Sat, 03 Mar 2012)
Log Message:
-----------
rest-client: Use ?quick=true by default
Cuts down the catalog fetch time from 3 minutes down to 20 seconds.
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 2012-03-03 23:23:38 UTC (rev 17282)
+++ csw/mgar/gar/v2/lib/python/rest.py 2012-03-03 23:24:08 UTC (rev 17283)
@@ -49,7 +49,7 @@
def GetCatalog(self, catrel, arch, osrel):
if not catrel:
raise ArgumentError("Missing catalog release.")
- url = self.rest_url + self.PKGDB_APP + "/catalogs/%s/%s/%s/" % (catrel, arch, osrel)
+ url = self.rest_url + self.PKGDB_APP + "/catalogs/%s/%s/%s/?quick=true" % (catrel, arch, osrel)
logging.debug("GetCatalog(): GET %s", url)
try:
data = urllib2.urlopen(url).read()
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