Revision: 21952 http://gar.svn.sourceforge.net/gar/?rev=21952&view=rev Author: wahwah Date: 2013-09-16 21:07:48 +0000 (Mon, 16 Sep 2013) Log Message: ----------- Added method for quering timing endpoint.
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-09-16 19:04:46 UTC (rev 21951) +++ csw/mgar/gar/v2/lib/python/rest.py 2013-09-16 21:07:48 UTC (rev 21952) @@ -262,7 +262,15 @@ data = urllib2.urlopen(url).read() return cjson.decode(data) + def GetCatalogTimingInformation(self, catrel, arch, osrel): + url = ( + self.rest_url + + self.PKGDB_APP + + "/catalogs/%s/%s/%s/timing/" % (catrel, arch, osrel)) + data = urllib2.urlopen(url).read() + return cjson.decode(data) + class CachedPkgstats(object): """Class responsible for holding and caching package stats. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ devel mailing list devel@lists.opencsw.org https://lists.opencsw.org/mailman/listinfo/devel