Merge lp:~edwin-grubbs/launchpad/bug-430610-sprint-settopics.pt-3.0-layout into lp:launchpad

Proposed by Edwin Grubbs
Status: Merged
Approved by: Barry Warsaw
Approved revision: no longer in the source branch.
Merged at revision: not available
Proposed branch: lp:~edwin-grubbs/launchpad/bug-430610-sprint-settopics.pt-3.0-layout
Merge into: lp:launchpad
Diff against target: None lines
To merge this branch: bzr merge lp:~edwin-grubbs/launchpad/bug-430610-sprint-settopics.pt-3.0-layout
Reviewer Review Type Date Requested Status
Barry Warsaw (community) code ui* Approve
Canonical Launchpad Engineering code Pending
Review via email: mp+12086@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Edwin Grubbs (edwin-grubbs) wrote :

Converted sprint-settopics.pt to UI 3.0.

./bin/test -vvt sprint

Revision history for this message
Barry Warsaw (barry) wrote :

On Sep 18, 2009, at 06:10 PM, Edwin Grubbs wrote:

>Edwin Grubbs has proposed merging lp:~edwin-grubbs/launchpad/bug-430610-sprint-settopics.pt-3.0-layout into lp:launchpad/devel.
>
>Requested reviews:
> Canonical Launchpad Engineering (launchpad): code
>
>Converted sprint-settopics.pt to UI 3.0.
>
>./bin/test -vvt sprint

Thanks for another great blueprint template update Edwin. I have some minor
comments that should be easy to resolve. merge-conditional, r=me with their
consideration.

 review approve code ui*
 status approve

=== modified file 'lib/lp/blueprints/browser/sprint.py'
--- lib/lp/blueprints/browser/sprint.py 2009-09-03 15:04:13 +0000
+++ lib/lp/blueprints/browser/sprint.py 2009-09-18 18:06:53 +0000
> @@ -50,6 +50,7 @@
> from canonical.launchpad.webapp.breadcrumb import Breadcrumb
> from canonical.launchpad.helpers import shortlist
> from canonical.widgets.date import DateTimeWidget
> +from canonical.lazr.utils import smartquote

Please sort these imports.

> class SprintFacets(StandardLaunchpadFacets):
> @@ -327,7 +328,15 @@
>
> It is unusual because we want to display multiple objects with
> checkboxes, then process the selected items, which is not the usual
> - add/edit metaphor."""
> + add/edit metaphor.
> + """
> +
> + @property
> + def label(self):
> + return smartquote(
> + 'Review discussion topics for "%s" sprint' % self.context.title)
> +
> + page_title = label

I bet you don't need the page_title. You should remove this so the default
reverse-breadcrumbs are used.

=== modified file 'lib/lp/blueprints/stories/sprints/sprint-settopics.txt'
--- lib/lp/blueprints/stories/sprints/sprint-settopics.txt 2009-08-13 19:03:36 +0000
+++ lib/lp/blueprints/stories/sprints/sprint-settopics.txt 2009-09-16 10:45:22 +0000
> @@ -70,7 +70,8 @@
> >>> cprov_browser.getLink('Set agenda').click()
>
> >>> cprov_browser.title
> - 'Review topics proposed for discussion at Ubuntu DevSummit Guacamole'
> + '+settopics : Blueprints for Ubuntu DevSummit Guacamole : Ubuntu
> + DevSummit Guacamole : Meetings'

You should print the title so the quotes aren't shown.

review: Approve (code ui*)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lib/canonical/launchpad/pagetitles.py'
--- lib/canonical/launchpad/pagetitles.py 2009-09-16 01:35:03 +0000
+++ lib/canonical/launchpad/pagetitles.py 2009-09-18 18:06:53 +0000
@@ -983,8 +983,6 @@
983983
984sprint_specs = ContextTitle('Blueprints for %s')984sprint_specs = ContextTitle('Blueprints for %s')
985985
986sprint_settopics = ContextTitle('Review topics proposed for discussion at %s')
987
988sprint_workload = ContextTitle('Workload at %s')986sprint_workload = ContextTitle('Workload at %s')
989987
990sprintspecification_decide = 'Consider spec for sprint agenda'988sprintspecification_decide = 'Consider spec for sprint agenda'
991989
=== modified file 'lib/lp/blueprints/browser/sprint.py'
--- lib/lp/blueprints/browser/sprint.py 2009-09-03 15:04:13 +0000
+++ lib/lp/blueprints/browser/sprint.py 2009-09-18 18:06:53 +0000
@@ -50,6 +50,7 @@
50from canonical.launchpad.webapp.breadcrumb import Breadcrumb50from canonical.launchpad.webapp.breadcrumb import Breadcrumb
51from canonical.launchpad.helpers import shortlist51from canonical.launchpad.helpers import shortlist
52from canonical.widgets.date import DateTimeWidget52from canonical.widgets.date import DateTimeWidget
53from canonical.lazr.utils import smartquote
5354
5455
55class SprintFacets(StandardLaunchpadFacets):56class SprintFacets(StandardLaunchpadFacets):
@@ -327,7 +328,15 @@
327328
328 It is unusual because we want to display multiple objects with329 It is unusual because we want to display multiple objects with
329 checkboxes, then process the selected items, which is not the usual330 checkboxes, then process the selected items, which is not the usual
330 add/edit metaphor."""331 add/edit metaphor.
332 """
333
334 @property
335 def label(self):
336 return smartquote(
337 'Review discussion topics for "%s" sprint' % self.context.title)
338
339 page_title = label
331340
332 def initialize(self):341 def initialize(self):
333 self.status_message = None342 self.status_message = None
334343
=== modified file 'lib/lp/blueprints/stories/sprints/sprint-settopics.txt'
--- lib/lp/blueprints/stories/sprints/sprint-settopics.txt 2009-08-13 19:03:36 +0000
+++ lib/lp/blueprints/stories/sprints/sprint-settopics.txt 2009-09-16 10:45:22 +0000
@@ -70,7 +70,8 @@
70 >>> cprov_browser.getLink('Set agenda').click()70 >>> cprov_browser.getLink('Set agenda').click()
7171
72 >>> cprov_browser.title72 >>> cprov_browser.title
73 'Review topics proposed for discussion at Ubuntu DevSummit Guacamole'73 '+settopics : Blueprints for Ubuntu DevSummit Guacamole : Ubuntu
74 DevSummit Guacamole : Meetings'
7475
75 >>> cprov_browser.getControl('CD Media Integrity Check').selected = True76 >>> cprov_browser.getControl('CD Media Integrity Check').selected = True
76 >>> cprov_browser.getControl('Accept').click()77 >>> cprov_browser.getControl('Accept').click()
7778
=== modified file 'lib/lp/blueprints/templates/sprint-settopics.pt'
--- lib/lp/blueprints/templates/sprint-settopics.pt 2009-07-17 17:59:07 +0000
+++ lib/lp/blueprints/templates/sprint-settopics.pt 2009-09-18 18:06:53 +0000
@@ -3,26 +3,12 @@
3 xmlns:tal="http://xml.zope.org/namespaces/tal"3 xmlns:tal="http://xml.zope.org/namespaces/tal"
4 xmlns:metal="http://xml.zope.org/namespaces/metal"4 xmlns:metal="http://xml.zope.org/namespaces/metal"
5 xmlns:i18n="http://xml.zope.org/namespaces/i18n"5 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
6 xml:lang="en"6 metal:use-macro="view/macro:page/main_only"
7 lang="en"
8 dir="ltr"
9 metal:use-macro="context/@@main_template/master"
10 i18n:domain="launchpad"7 i18n:domain="launchpad"
11>8>
129
13<body>10<body>
1411
15<metal:leftportlets fill-slot="portlets_one">
16</metal:leftportlets>
17
18<metal:rightportlets fill-slot="portlets_two">
19 <div tal:replace="structure context/@@+portlet-details" />
20</metal:rightportlets>
21
22<metal:heading fill-slot="pageheading">
23 <h1>Set topics for discussion</h1>
24</metal:heading>
25
26<div metal:fill-slot="main"12<div metal:fill-slot="main"
27 tal:define="speclinks view/spec_links">13 tal:define="speclinks view/spec_links">
2814
@@ -56,7 +42,7 @@
56 value speclink/id;42 value speclink/id;
57 id string:speclink_${speclink/id}" /><br />43 id string:speclink_${speclink/id}" /><br />
58 <span tal:attributes="44 <span tal:attributes="
59 class string:specpriority${spec/priority/name}" 45 class string:specpriority${spec/priority/name}"
60 tal:content="spec/priority/title">High</span><br />46 tal:content="spec/priority/title">High</span><br />
61 <span tal:attributes="47 <span tal:attributes="
62 class string:specstatus${spec/definition_status/name}"48 class string:specstatus${spec/definition_status/name}"