~jml/+junk/whip

« back to all changes in this revision

Viewing changes to lpwhip/main.py

  • Committer: Jonathan Lange
  • Date: 2010-12-23 15:52:32 UTC
  • Revision ID: jml@canonical.com-20101223155232-eskfu8503agkma6s
Hacks

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
 
62
62
def get_bug_id(bug_task):
63
63
    """Get the bug ID for a bug task."""
64
 
    return int(bug_task.self_link.split('/')[-1])
 
64
    return int(bug_task._wadl_resource.url.strip('/').split('/')[-1])
65
65
 
66
66
 
67
67
def get_launchpad():
191
191
 
192
192
    @property
193
193
    def name(self):
194
 
        return self._lp_target.name
 
194
        return self._lp_target._wadl_resource.url.strip('/').split('/')[-1]
195
195
 
196
196
    @property
197
197
    def web_url(self):