Size: 479
Comment:
|
Size: 1402
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 7: | Line 7: |
http://bugs.debian.org/cgi-bin/soap.cgi is the official SOAP interface for Debian's BTS. | {{{http://bugs.debian.org/cgi-bin/soap.cgi}}} is the official SOAP interface for Debian's BTS. |
Line 9: | Line 9: |
http://bugs.donarmstrong.com/cgi-bin/soap.cgi is the development version. | {{{http://bugs.donarmstrong.com/cgi-bin/soap.cgi}}} is the development version. |
Line 11: | Line 11: |
The namespace is Debbugs/SOAP | The namespace is {{{Debbugs/SOAP}}} |
Line 14: | Line 14: |
get_status:: returns foo | http://bugs.debian.org/debbugs-source/mainline/Debbugs/SOAP.pm get_status(bugnumber [, bugnumber]*):: returns the status if the given bugs |
Line 18: | Line 21: |
== Examples == === Python === {{{ #!python #!/usr/bin/env python import SOAPpy url = 'http://bugs.debian.org/cgi-bin/soap.cgi' namespace = 'Debbugs/SOAP' server = SOAPpy.SOAPProxy(url, namespace) # some debug output #server.config.dumpSOAPOut = 1 #server.config.dumpSOAPIn = 1 def getStatus(*args): result = server.get_status(*args) return result def getBugs(*args): result = server.get_bugs(*args) return result # All bugs from one package (returns a list of bugnumbers) print getBugs("package", "gtk-qt-engine") # returns the status of those bugs print getStatus(409909, 419920, 421581, 417044, 397993) # getStatus and getBugs combined: getStatus(getBugs("package", "gtk-qt-engine")) }}} == FAQ == |
Debbugs' SOAP Interface Documentation
Please help to keep this documentation up to date!
URL and Namespace
http://bugs.debian.org/cgi-bin/soap.cgi is the official SOAP interface for Debian's BTS.
http://bugs.donarmstrong.com/cgi-bin/soap.cgi is the development version.
The namespace is Debbugs/SOAP
Available methods for bugs.debian.org
http://bugs.debian.org/debbugs-source/mainline/Debbugs/SOAP.pm
- get_status(bugnumber [, bugnumber]*)
- returns the status if the given bugs
- get_bugs
- returns bar
Available methods for bugs.donarmstrong.com
Examples
Python
1 #!/usr/bin/env python
2
3
4 import SOAPpy
5
6 url = 'http://bugs.debian.org/cgi-bin/soap.cgi'
7 namespace = 'Debbugs/SOAP'
8 server = SOAPpy.SOAPProxy(url, namespace)
9
10 # some debug output
11 #server.config.dumpSOAPOut = 1
12 #server.config.dumpSOAPIn = 1
13
14
15 def getStatus(*args):
16 result = server.get_status(*args)
17 return result
18
19 def getBugs(*args):
20 result = server.get_bugs(*args)
21 return result
22
23 # All bugs from one package (returns a list of bugnumbers)
24 print getBugs("package", "gtk-qt-engine")
25
26 # returns the status of those bugs
27 print getStatus(409909, 419920, 421581, 417044, 397993)
28
29 # getStatus and getBugs combined:
30 getStatus(getBugs("package", "gtk-qt-engine"))