redmine: Fix missing id class on older versions

Some version of redmine do not have td class="id". Luckily, we can
easily get it another way.
This commit is contained in:
Laurent Bachelier 2013-07-27 20:26:56 +02:00
commit c108ca3fc5

View file

@ -99,7 +99,7 @@ class IssuesPage(BaseIssuePage):
for tr in issues.getiterator('tr'):
if not tr.attrib.get('id', '').startswith('issue-'):
continue
issue = {}
issue = {'id': tr.attrib['id'].replace('issue-', '')}
for td in tr.getiterator('td'):
field = td.attrib.get('class', '')
if field in ('checkbox','todo',''):