Merge lp:~thumper/launchpad/fix-mantis-warnings-bug-218384 into lp:launchpad
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Robert Collins | ||||||||
Approved revision: | no longer in the source branch. | ||||||||
Merged at revision: | 12508 | ||||||||
Proposed branch: | lp:~thumper/launchpad/fix-mantis-warnings-bug-218384 | ||||||||
Merge into: | lp:launchpad | ||||||||
Diff against target: |
464 lines (+221/-81) 7 files modified
lib/lp/bugs/doc/externalbugtracker-trac-lp-plugin.txt (+2/-2) lib/lp/bugs/doc/externalbugtracker-trac.txt (+4/-4) lib/lp/bugs/externalbugtracker/base.py (+3/-3) lib/lp/bugs/externalbugtracker/mantis.py (+72/-68) lib/lp/bugs/externalbugtracker/tests/test_externalbugtracker.py (+28/-2) lib/lp/bugs/externalbugtracker/tests/test_mantis.py (+110/-0) lib/lp/bugs/tests/externalbugtracker.py (+2/-2) |
||||||||
To merge this branch: | bzr merge lp:~thumper/launchpad/fix-mantis-warnings-bug-218384 | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Collins (community) | Approve | ||
William Grant | code* | Approve | |
Review via email: mp+51839@code.launchpad.net |
This proposal supersedes a proposal from 2011-03-01.
Commit message
[r=lifeless,
Description of the change
This branch fixes two old Mantis issues.
HTTPError when trying to determine if the remote site can
handle batches, and the oops handled when trying to use
a non-existant warning method.
The HTTPError is handled by wrapping the urlopen method with
the _fetchPage method, which translates the urllib2 errors to
a BugTrackerConne
Fixing the warning usage was trivial, but I refactored the
code somewhat to make testing easier. A class was created
that is responsible for parsing the CVS data.
Also an unused method (_getStatusFromCSV) was deleted.
As long as you land it through ec2 this time :)