X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dakweb%2Fqueries%2Fmadison.py;h=023f67d03bcadd64475a0b9c738aa309cc408797;hb=e41ae8d5a5fd9c204711a36b47e0593312da8c75;hp=eb8c45cd6ffaac27891d840bd624486125369fed;hpb=02c7ef89254ade53e60797bb0be8c1de68b501d5;p=dak.git diff --git a/dakweb/queries/madison.py b/dakweb/queries/madison.py index eb8c45cd..023f67d0 100644 --- a/dakweb/queries/madison.py +++ b/dakweb/queries/madison.py @@ -1,3 +1,11 @@ +""" "Madison" interface + +@contact: Debian FTPMaster +@copyright: 2014 Ansgar Burchardt +@copyright: 2014 Joerg Jaspert +@license: GNU General Public License version 2 or later +""" + import bottle import json @@ -6,6 +14,23 @@ from dakweb.webregister import QueryRegister @bottle.route('/madison') def madison(): + """ + Display information about B{package(s)}. + + @since: December 2014 + + @keyword package: Space seperated list of packages. + @keyword b: only show info for a binary type. I{deb/udeb/dsc} + @keyword c: only show info for specified component(s). I{main/contrib/non-free} + @keyword s: only show info for this suite. + @keyword S: show info for the binary children of source pkgs. I{true/false} + @keyword f: output json format. I{json} + @see: L{I{suites}} on how to receive a list of valid suites. + + @rtype: text/plain or application/json + @return: Text or Json format of the data + """ + r = bottle.request packages = r.query.get('package', '').split()