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
1=== modified file 'lib/canonical/launchpad/pagetitles.py'
2--- lib/canonical/launchpad/pagetitles.py 2009-09-16 01:35:03 +0000
3+++ lib/canonical/launchpad/pagetitles.py 2009-09-18 18:06:53 +0000
4@@ -983,8 +983,6 @@
5
6 sprint_specs = ContextTitle('Blueprints for %s')
7
8-sprint_settopics = ContextTitle('Review topics proposed for discussion at %s')
9-
10 sprint_workload = ContextTitle('Workload at %s')
11
12 sprintspecification_decide = 'Consider spec for sprint agenda'
13
14=== modified file 'lib/lp/blueprints/browser/sprint.py'
15--- lib/lp/blueprints/browser/sprint.py 2009-09-03 15:04:13 +0000
16+++ lib/lp/blueprints/browser/sprint.py 2009-09-18 18:06:53 +0000
17@@ -50,6 +50,7 @@
18 from canonical.launchpad.webapp.breadcrumb import Breadcrumb
19 from canonical.launchpad.helpers import shortlist
20 from canonical.widgets.date import DateTimeWidget
21+from canonical.lazr.utils import smartquote
22
23
24 class SprintFacets(StandardLaunchpadFacets):
25@@ -327,7 +328,15 @@
26
27 It is unusual because we want to display multiple objects with
28 checkboxes, then process the selected items, which is not the usual
29- add/edit metaphor."""
30+ add/edit metaphor.
31+ """
32+
33+ @property
34+ def label(self):
35+ return smartquote(
36+ 'Review discussion topics for "%s" sprint' % self.context.title)
37+
38+ page_title = label
39
40 def initialize(self):
41 self.status_message = None
42
43=== modified file 'lib/lp/blueprints/stories/sprints/sprint-settopics.txt'
44--- lib/lp/blueprints/stories/sprints/sprint-settopics.txt 2009-08-13 19:03:36 +0000
45+++ lib/lp/blueprints/stories/sprints/sprint-settopics.txt 2009-09-16 10:45:22 +0000
46@@ -70,7 +70,8 @@
47 >>> cprov_browser.getLink('Set agenda').click()
48
49 >>> cprov_browser.title
50- 'Review topics proposed for discussion at Ubuntu DevSummit Guacamole'
51+ '+settopics : Blueprints for Ubuntu DevSummit Guacamole : Ubuntu
52+ DevSummit Guacamole : Meetings'
53
54 >>> cprov_browser.getControl('CD Media Integrity Check').selected = True
55 >>> cprov_browser.getControl('Accept').click()
56
57=== modified file 'lib/lp/blueprints/templates/sprint-settopics.pt'
58--- lib/lp/blueprints/templates/sprint-settopics.pt 2009-07-17 17:59:07 +0000
59+++ lib/lp/blueprints/templates/sprint-settopics.pt 2009-09-18 18:06:53 +0000
60@@ -3,26 +3,12 @@
61 xmlns:tal="http://xml.zope.org/namespaces/tal"
62 xmlns:metal="http://xml.zope.org/namespaces/metal"
63 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
64- xml:lang="en"
65- lang="en"
66- dir="ltr"
67- metal:use-macro="context/@@main_template/master"
68+ metal:use-macro="view/macro:page/main_only"
69 i18n:domain="launchpad"
70 >
71
72 <body>
73
74-<metal:leftportlets fill-slot="portlets_one">
75-</metal:leftportlets>
76-
77-<metal:rightportlets fill-slot="portlets_two">
78- <div tal:replace="structure context/@@+portlet-details" />
79-</metal:rightportlets>
80-
81-<metal:heading fill-slot="pageheading">
82- <h1>Set topics for discussion</h1>
83-</metal:heading>
84-
85 <div metal:fill-slot="main"
86 tal:define="speclinks view/spec_links">
87
88@@ -56,7 +42,7 @@
89 value speclink/id;
90 id string:speclink_${speclink/id}" /><br />
91 <span tal:attributes="
92- class string:specpriority${spec/priority/name}"
93+ class string:specpriority${spec/priority/name}"
94 tal:content="spec/priority/title">High</span><br />
95 <span tal:attributes="
96 class string:specstatus${spec/definition_status/name}"