This site is an archive; learn more about 8 years of OpenHatch.

[OH-Dev] [issue962] Custom bug parser ignored in roundup.py

catherinedevlin bugs at openhatch.org
Thu Apr 17 16:29:14 UTC 2014


New submission from catherinedevlin <catherine.devlin at gmail.com>:

BugImportSpider in bugimporters/main.py is written to read a
special_bug_parser_name from the .yaml and store it as bug_importer's
bug_parser.  That part is working fine.

However, in RoundupBugImporter.handle_bug_html_response in
bugimporters/roundup.py, the custom bug parser (stored in .bug_parser) is simply
ignored; instead RoundupBugParser is hard-coded as the bug parser.

Attaching a patch which, if applied and run with 
python bugimporters/main.py -i examples/pyorg-roundup.yaml -o json 
will write into the log a message showing that the default bug parser is being
used despite the setting in pyorg-roundup.yaml.

I'll provide a suggested patch to fix it shortly.

----------
messages: 4245
nosy: catherinedevlin, paulproteus
priority: bug
status: unread
title: Custom bug parser ignored in roundup.py

__________________________________________
Roundup issue tracker <bugs at openhatch.org>
<https://openhatch.org/bugs/issue962>
__________________________________________


More information about the Devel mailing list