On Tue, Nov 20, 2012 at 1:25 PM, Ezio Melotti <ezio.melo...@gmail.com>wrote:

> On Tue, Nov 20, 2012 at 1:39 AM, anatoly techtonik <techto...@gmail.com>wrote:
>
>> On Fri, Nov 9, 2012 at 12:00 PM, Ezio Melotti <ezio.melo...@gmail.com>wrote:
>>
>>> The easiest way is probably by using the XML-RPC interface.
>>> Follow the examples here:
>>> http://roundup.sourceforge.net/docs/xmlrpc.html
>>> You can get the list of all the open (status=1) issues with patches
>>> (keyword=2) using roundup_server.filter('issue', None, dict(status=1,
>>> keyword=2)).
>>>
>>
>> Patch detection is not reliable - http://bugs.python.org/issue15849
>> Is there a way to get list of issues with attachments?
>> Docs are silent -
>> http://roundup.sourceforge.net/docs/user_guide.html#searching-page
>>
>
> Not directly AFAIK.  The "patch" keyword is added automatically when a
> file is attached (even if it's not a patch), and unless someone removes (as
> it happened with all the PEP 3121/384 issues) it should be set on all the
> issues with attachments.
> Otherwise you can loop through all the issues and check for their files as
> I explained in the previous mail.
>
>
>>
>> You can get the list of files attached to each of the issue using
>>> roundup_server.display('issueXXXX', 'files').  I don't know if you can then
>>> download the files from there, but you should be able to urlretrieve them
>>> from http://bugs.python.org/fileXXXX/.  Note that not all the files are
>>> necessary patches, so you might need to do some filtering after the
>>> download.
>>
>>
This works. Terminating slash in http://bugs.python.org/fileXXXX/ appeared
to be essential. In the meanwhile, can you check what's wrong with .po
files in http://bugs.python.org/issue9741 - I get 403 error while trying to
grab them.
-- 
anatoly t.
_______________________________________________
Tracker-discuss mailing list
Tracker-discuss@python.org
http://mail.python.org/mailman/listinfo/tracker-discuss

Reply via email to