Redmine implements ICapBugTracker (refs #684)
This commit is contained in:
parent
c911955a92
commit
311205543f
4 changed files with 528 additions and 2 deletions
|
|
@ -32,3 +32,13 @@ class IndexPage(BasePage):
|
|||
|
||||
class MyPage(BasePage):
|
||||
pass
|
||||
|
||||
class ProjectsPage(BasePage):
|
||||
def iter_projects(self):
|
||||
for ul in self.parser.select(self.document.getroot(), 'ul.projects'):
|
||||
for li in ul.findall('li'):
|
||||
prj = {}
|
||||
link = li.find('div').find('a')
|
||||
prj['id'] = link.attrib['href'].split('/')[-1]
|
||||
prj['name'] = link.text
|
||||
yield prj
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue