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

Bug #244452 reported by Stephan Rügamer
2
Affects Status Importance Assigned to Milestone
python-launchpad-bugs
Fix Released
Undecided
Unassigned
python-launchpad-bugs (Ubuntu)
Fix Released
Undecided
Unassigned
Hardy
Won't Fix
Undecided
Unassigned

Bug Description

Hi,

again some problems since last rollout of launchpad and edge.

The reporter value is not parsed correctly.
Regarding the output of:

html_bug.py:
        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="https://bugs.launchpad.net/ubuntu/+source/xemacs21/+bug/3982/+activity" 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 :)

\sh

Revision history for this message
Stephan Rügamer (sruegamer) 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.

Regards,

\sh

Revision history for this message
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
message:
  * launchpadbugs/html_bug.py: fixed parsing of html pages of latest launchpad
    rollout, thanks to Stephan Hermann (LP: #244452)
------------------------------------------------------------

Changed in python-launchpad-bugs:
status: New → Fix Committed
Revision history for this message
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/html_bug.py: InfoTable: fixed parsing of milestone if user
    is not allowed to change values (LP: #243057)
  * launchpadbugs/http_connection.py: 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/http_connection.py: check if login was successful
    (LP: #210731)
  * launchpadbugs/http_connection.py: added HTTPConnection.save_cookie()
    to dump LP-authentication-cookie to a file (LP: #240685)
  * launchpadbugs/http_connection.py: 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/html_bug.py: fixed parsing of html pages of latest
    launchpad rollout, thanks to Stephan Hermann (LP: #244452)

  [ Brian Murray ]
  * launchpadbugs/basebuglistfilter.py: updated broken filter option for bug
    supervisor

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

Changed in python-launchpad-bugs:
status: New → Fix Released
Revision history for this message
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
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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