Merge lp:~rockstar/launchpad/recipe-ui-bugs into lp:launchpad

Proposed by Paul Hummer
Status: Merged
Approved by: Robert Collins
Approved revision: no longer in the source branch.
Merged at revision: 11193
Proposed branch: lp:~rockstar/launchpad/recipe-ui-bugs
Merge into: lp:launchpad
Diff against target: 109 lines (+12/-19)
4 files modified
lib/lp/code/browser/tests/test_sourcepackagerecipe.py (+4/-14)
lib/lp/code/templates/branch-recipes.pt (+1/-1)
lib/lp/code/templates/sourcepackagerecipe-index.pt (+7/-2)
lib/lp/code/templates/sourcepackagerecipebuild-index.pt (+0/-2)
To merge this branch: bzr merge lp:~rockstar/launchpad/recipe-ui-bugs
Reviewer Review Type Date Requested Status
Robert Collins (community) Approve
Review via email: mp+30543@code.launchpad.net

Description of the change

This branch fixes a few bugs, all of which we've talked about. You've already seen this diff, I just need you to say "yes"

To post a comment you must log in.
Revision history for this message
Robert Collins (lifeless) wrote :

DoIt

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/code/browser/tests/test_sourcepackagerecipe.py'
2--- lib/lp/code/browser/tests/test_sourcepackagerecipe.py 2010-07-19 10:51:39 +0000
3+++ lib/lp/code/browser/tests/test_sourcepackagerecipe.py 2010-07-21 15:04:53 +0000
4@@ -113,7 +113,7 @@
5 Make some food!
6
7 Recipe information
8- Build daily: True
9+ Build schedule: Built daily
10 Owner: Master Chef
11 Base branch: lp://dev/~chef/ratatouille/veggies
12 Debian version: 0\+\{revno\}
13@@ -309,7 +309,7 @@
14 This is stuff
15
16 Recipe information
17- Build daily: False
18+ Build schedule: Built on request
19 Owner: Master Chef
20 Base branch: lp://dev/~chef/ratatouille/meat
21 Debian version: 0\+\{revno\}
22@@ -419,8 +419,7 @@
23 This is stuff
24
25 Recipe information
26- Build daily:
27- False
28+ Build schedule: Built on request
29 Owner: Master Chef
30 Base branch: lp://dev/~chef/ratatouille/meat
31 Debian version: 0\+\{revno\}
32@@ -455,7 +454,7 @@
33 This recipe .*changes.
34
35 Recipe information
36- Build daily: False
37+ Build schedule: Built on request
38 Owner: Master Chef
39 Base branch: lp://dev/~chef/chocolate/cake
40 Debian version: 0\+\{revno\}
41@@ -753,7 +752,6 @@
42 Archive: PPA named build for Owner
43 Series: Squirrel
44 Pocket: Release
45- Result: .* in ubuntu 3.14
46 Binary builds:
47 itanic build of .* 3.14 in ubuntu squirrel RELEASE""",
48 main_text)
49@@ -766,14 +764,6 @@
50 source_package_recipe_build=build, version='3.14',
51 component=multiverse)
52
53- def test_render_sourcepackage_release(self):
54- """SourcePackageReleases are shown if set."""
55- release = self.makeBuildAndRelease()
56- main_text = self.getMainText(
57- release.source_package_recipe_build, '+index')
58- self.assertTextMatchesExpressionIgnoreWhitespace("""\
59- Result: .* in ubuntu 3.14""", main_text)
60-
61 def makeBinaryBuild(self, release, architecturetag):
62 """Make a binary build with specified release and architecturetag."""
63 distroarchseries = self.factory.makeDistroArchSeries(
64
65=== modified file 'lib/lp/code/templates/branch-recipes.pt'
66--- lib/lp/code/templates/branch-recipes.pt 2010-06-24 05:19:16 +0000
67+++ lib/lp/code/templates/branch-recipes.pt 2010-07-21 15:04:53 +0000
68@@ -13,7 +13,7 @@
69 <a href="+recipes" tal:content="structure view/recipe_count_text">
70 1 branch
71 </a>
72- based off of this branch.
73+ using this branch.
74
75 </div>
76
77
78=== modified file 'lib/lp/code/templates/sourcepackagerecipe-index.pt'
79--- lib/lp/code/templates/sourcepackagerecipe-index.pt 2010-05-26 14:37:41 +0000
80+++ lib/lp/code/templates/sourcepackagerecipe-index.pt 2010-07-21 15:04:53 +0000
81@@ -37,8 +37,13 @@
82 <h2>Recipe information</h2>
83 <div class="two-column-list">
84 <dl id="build_daily">
85- <dt>Build daily:</dt>
86- <dd tal:content="context/build_daily" />
87+ <dt>Build schedule:</dt>
88+ <dd tal:condition="context/build_daily">
89+ Built daily
90+ </dd>
91+ <dd tal:condition="not:context/build_daily">
92+ Built on request
93+ </dd>
94 </dl>
95
96 <dl id="owner">
97
98=== modified file 'lib/lp/code/templates/sourcepackagerecipebuild-index.pt'
99--- lib/lp/code/templates/sourcepackagerecipebuild-index.pt 2010-07-14 10:09:35 +0000
100+++ lib/lp/code/templates/sourcepackagerecipebuild-index.pt 2010-07-21 15:04:53 +0000
101@@ -78,8 +78,6 @@
102 <dd><span tal:replace="context/pocket/title">Release</span></dd>
103 </dl>
104 <dl>
105- <dt tal:condition="context/source_package_release">Result:</dt>
106- <dd tal:condition="context/source_package_release" tal:content="structure context/source_package_release/fmt:link"></dd>
107 <dt>Binary builds:</dt>
108 <dd tal:repeat="binary view/binary_builds"
109 tal:content="structure binary/fmt:link">