parsing of +expirable-bugs buglists

Bug #249381 reported by Markus Korn
2
Affects Status Importance Assigned to Milestone
python-launchpad-bugs
Fix Released
Wishlist
Markus Korn

Bug Description

todays UbuntuBugday brought this url-trick to show all expirable bugs to my attention, it would be nice if py-lp-bugs could parse this pages.

>>> from launchpadbugs.connector import ConnectBugList
>>> BL = ConnectBugList()
>>> l = BL("https://bugs.edge.launchpad.net/bughelper/+expirable-bugs")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "launchpadbugs/connector.py", line 119, in __call__
    progress_hook=self.__progress_hook)
  File "launchpadbugs/html_buglist.py", line 197, in __init__
    BugPage, progress_hook)
  File "launchpadbugs/buglistbase.py", line 100, in __init__
    self._add(self.baseurl)
  File "launchpadbugs/buglistbase.py", line 165, in _add
    self += b
  File "launchpadbugs/buglistbase.py", line 119, in __iadd__
    for bug in other:
  File "launchpadbugs/html_buglist.py", line 74, in _parse
    supported by python-launchpad-bugs" %url
AssertionError: Parsing of this page (https://bugs.edge.launchpad.net/bughelper/+expirable-bugs) is not supported by python-launchpad-bugs
>>>

Markus Korn (thekorn)
Changed in python-launchpad-bugs:
importance: Undecided → Wishlist
description: updated
Markus Korn (thekorn)
Changed in python-launchpad-bugs:
assignee: nobody → thekorn
status: New → In Progress
Revision history for this message
Markus Korn (thekorn) wrote :

I think I fixed this in the linked branch, the attachment contains a test script.

Please test this.

Markus

Revision history for this message
Markus Korn (thekorn) wrote :

After running some tests, and based on the fact that this are just minor changes I committed this to .main
------------------------------------------------------------
revno: 138
committer: Markus Korn <email address hidden>
branch nick: main
timestamp: Fri 2008-07-18 16:12:15 +0200
message:
  launchpadbugs/html_buglist.py:support parsing of '+expirable-bugs'
  lists (LP: #249381), this also adds better debugging functionality to
  all parsing methods.
    ------------------------------------------------------------

Changed in python-launchpad-bugs:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.