were changing layouts for reporter/activity log, py-lp-bugs doesn't work

Bug #244452 reported by Stephan Ruegamer on 2008-07-01
Affects Status Importance Assigned to Milestone
python-launchpad-bugs (Ubuntu)

Bug Description


again some problems since last rollout of launchpad and edge.

The reporter value is not parsed correctly.
Regarding the output of:
        d = m[0].xpathEval('a')
        d_edge = self.__xml.xpathEval('//div[@style="float: right; width: 65%; text-align: right"]/a[2]')
        d = d or d_edge
        parse_error(d, "BugReport.reporter", xml=m[0], url=self.__url)
        print d[0]
        self.reporter = user.parse_html_user(d[0])

d[0] == <a style="line-height: 20px;" href="" class="menu-link-activitylog">Activity log</a>

which is totally wrong ;)

I need to work more with libxml2 and xpatch evaluation, therefore I'm not in the brain mode to fix it myself, right now :)


Stephan Ruegamer (sadig) wrote :

I just found the bugger...and fixed in our leonov provided py-lp-bugs branch.

I pushed a new branch to this report, which fixes the error in intrepid.merge branch of Markus (thekorn).

I'll attach the correspondent diff for the fix.



Markus Korn (thekorn) wrote :

revno: 145
committer: Markus Korn <email address hidden>
branch nick: intrepid.merge
timestamp: Tue 2008-07-01 17:52:12 +0200
  * launchpadbugs/ fixed parsing of html pages of latest launchpad
    rollout, thanks to Stephan Hermann (LP: #244452)

Changed in python-launchpad-bugs:
status: New → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-launchpad-bugs - 0.2.34

python-launchpad-bugs (0.2.34) intrepid; urgency=low

  [ Markus Korn ]
  * launchpadbugs/ InfoTable: fixed parsing of milestone if user
    is not allowed to change values (LP: #243057)
  * launchpadbugs/ added progress_hook to
    HTTPConnnection (LP: #239684)
  * More robust parser for the +text-mode:
      - using ConfigParser and email modul instead of custom-made parser
      - workaround parsing errors in text-mode (LP: #210576)
      - added 'date_incomplete' and 'date_left_new'
  * launchpadbugs/ check if login was successful
    (LP: #210731)
  * launchpadbugs/ added HTTPConnection.save_cookie()
    to dump LP-authentication-cookie to a file (LP: #240685)
  * launchpadbugs/ added (optional) username to
    http-request header and fixed function to get version of py-lp-bugs
    (LP: #233948)
  * launchpadbugs/{taskbase,text_bug}.py: added 'component' attribute to
    LPTask, thanks to Steve Beattie for working on it, updated AUTHORS.
  * launchpadbugs/ fixed parsing of html pages of latest
    launchpad rollout, thanks to Stephan Hermann (LP: #244452)

  [ Brian Murray ]
  * launchpadbugs/ updated broken filter option for bug

 -- Brian Murray <email address hidden> Tue, 01 Jul 2008 16:31:50 -0700

Changed in python-launchpad-bugs:
status: New → Fix Released
Brian Murray (brian-murray) wrote :

If it's fixed in the package it's surely fixed in the bzr tree!

Changed in python-launchpad-bugs:
status: Fix Committed → Fix Released
Rolf Leggewie (r0lf) wrote :

Hardy has seen the end of its life and is no longer receiving any updates. Marking the Hardy task for this ticket as "Won't Fix".

Changed in python-launchpad-bugs (Ubuntu Hardy):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers