Merge lp://staging/~mabac/launchpad-work-items-tracker/change-roadmap-urls into lp://staging/~linaro-automation/launchpad-work-items-tracker/linaro
Proposed by
Mattias Backman
Status: | Merged |
---|---|
Merged at revision: | 313 |
Proposed branch: | lp://staging/~mabac/launchpad-work-items-tracker/change-roadmap-urls |
Merge into: | lp://staging/~linaro-automation/launchpad-work-items-tracker/linaro |
Diff against target: |
113 lines (+35/-12) 3 files modified
generate-all (+32/-8) templates/roadmap_card.html (+1/-1) templates/roadmap_lane.html (+2/-3) |
To merge this branch: | bzr merge lp://staging/~mabac/launchpad-work-items-tracker/change-roadmap-urls |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guilherme Salgado (community) | Approve | ||
Christian Reis | user experience | Pending | |
Review via email: mp+85303@code.staging.launchpad.net |
Description of the change
Hi,
This branch changes the url:s of Roadmap cards and lanes. The reports are now generated in ./card and ./lane respectively.
Thanks,
Mattias
To post a comment you must log in.
Hi Mattias,
This looks good to me; just one suggestion below.
review approve
On Mon, 2011-12-12 at 09:32 +0000, Mattias Backman wrote: join(opts. output_ dir, '..', 'lane') lanessubdir)
[...]
> === modified file 'generate-all'
> --- generate-all 2011-12-07 09:03:27 +0000
> +++ generate-all 2011-12-12 09:28:04 +0000
> @@ -83,6 +83,18 @@
> except OSError:
> None
>
> +lanessubdir = os.path.
> +try:
> + os.mkdir(
> +except OSError:
> + None
I think here we only want to ignore the error if the directory already
exists, right? In that case we should either check for its existence
before trying os.mkdir() or catch OSError but only ignore it if errno is
17 (file already exists). I think the former is clearer, but either is
fine, really.
> + join(opts. output_ dir, '..', 'card') cardssubdir)
> +cardssubdir = os.path.
> +try:
> + os.mkdir(
> +except OSError:
> + None
Same here.
> + tools.lanes( store): join(opts. output_ dir, 'roadmap-' + lane.name) join(lanessubdi r, lane.name) tools.roadmap_ pages(my_ path, opts.database, basename, opts.config, join(opts. output_ dir, 'roadmap-card-%s' % page_name) join(cardssubdi r, page_name) tools.roadmap_ cards(my_ path, opts.database, basename, opts.config,
> for u in users:
> for m in milestones:
> target = u + '-' + m
> @@ -156,7 +168,7 @@
>
> # roadmap lanes
> for lane in report_
> - basename = os.path.
> + basename = os.path.
> report_
> lane, root=opts.root)
>
> @@ -165,8 +177,8 @@
> if card.roadmap_id != '':
> page_name = card.roadmap_id
> else:
> - page_name = card.card_id
> - basename = os.path.
> + page_name = str(card.card_id)
> + basename = os.path.
> report_
> card, root=opts.root)