summaryrefslogtreecommitdiff
path: root/bean
diff options
context:
space:
mode:
authorGökçen Eraslan <gokcen.eraslan@gmail.com>2012-04-15 16:39:12 +0300
committerThorsten Behrens <tbehrens@suse.com>2012-04-17 09:41:11 +0200
commit04101329727b355752f31684d27bd86f71b88640 (patch)
tree9761d3e9bbe4cfbc15622a1885ffb221f8b9260a /bean
parent7c3c0c557e8b293551fb6b1b7a1f39b45a394777 (diff)
fdo#46538 Easyhack: Add support for more bug trackers to get-bugzilla-attachments-by-mimetype
This adds support for Novell, KDE (for KOffice/Calligra), GNOME (for Gnumeric), AbiSource (for AbiWord) bugzillas and Launchpad to bin/get-bugzilla-attachments-by-mimetype script as required by easyhack#46538. However, there two glitches and workarounds: 1- As stated in the code, Novell bugzilla requires users to log in to bugzilla in order to get full information about the bugs such as attachment bodies etc. Since Novell bugzilla uses some proprietary login extensions it's hard to implement log in mechanism and use it via xmlrpc API. python-bugzilla claims that it supports Novell bugzilla login but I could not make it work. As a workaround, comments containing "Created an attachment (id=xxxxxxx)" pattern are parsed and attachments are downloaded using urllib. Attachments are filtered using mimetype info obtained from http headers. 2- For launchpad, launchpadlib python module is used. But currently launchpad api does not support really advanced search like bugzilla. For example, it's not possible to search for bugs having application/pdf attachments. So, again a workaround is used. Code iterates over all the bugs of the *libreoffice* source package and check their attachments.
Diffstat (limited to 'bean')
0 files changed, 0 insertions, 0 deletions