Redmine implements ICapBugTracker (refs #684)

This commit is contained in:
Romain Bignon 2011-07-11 22:29:34 +02:00
commit 311205543f
4 changed files with 528 additions and 2 deletions

View file

@ -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