[csw-devel] SF.net SVN: gar:[21926] csw/mgar/gar/v2/lib/web/pkgdb_web.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Sat Sep 14 17:37:29 CEST 2013
Revision: 21926
http://gar.svn.sourceforge.net/gar/?rev=21926&view=rev
Author: wahwah
Date: 2013-09-14 15:37:29 +0000 (Sat, 14 Sep 2013)
Log Message:
-----------
pkgdb-web: Add an endpoint with the list of maints
All the email addresses that ever produced a package, as seen by the
buildfarm.
Modified Paths:
--------------
csw/mgar/gar/v2/lib/web/pkgdb_web.py
Modified: csw/mgar/gar/v2/lib/web/pkgdb_web.py
===================================================================
--- csw/mgar/gar/v2/lib/web/pkgdb_web.py 2013-09-14 15:37:19 UTC (rev 21925)
+++ csw/mgar/gar/v2/lib/web/pkgdb_web.py 2013-09-14 15:37:29 UTC (rev 21926)
@@ -57,6 +57,7 @@
'Srv4ByCatAndCatalogname',
r'/rest/catalogs/([^/]+)/(sparc|i386)/(SunOS[^/]+)/pkgnames/([^/]+)/',
'Srv4ByCatAndPkgname',
+ r'/rest/maintainers/', 'RestMaintainerList',
r'/rest/maintainers/([0-9]+)/', 'RestMaintainerDetail',
r'/rest/srv4/([0-9a-f]{32})/', 'RestSrv4Detail',
r'/rest/srv4/([0-9a-f]{32})/files/', 'RestSrv4DetailFiles',
@@ -257,6 +258,14 @@
return render.MaintainerDetail(maintainer, pkgs)
+class RestMaintainerList(object):
+
+ def GET(self):
+ maintainers = models.Maintainer.select().orderBy('email')
+ maintainers = [m.GetRestRepr() for m in maintainers]
+ return cjson.encode(maintainers)
+
+
class RestMaintainerDetail(object):
def GET(self, id):
maintainer = models.Maintainer.selectBy(id=id).getOne()
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