Merge lp:~sinzui/launchpad/distroseries-breadcrumb-bug-400643 into lp:launchpad
- distroseries-breadcrumb-bug-400643
- Merge into devel
Proposed by
Curtis Hovey
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~sinzui/launchpad/distroseries-breadcrumb-bug-400643 |
Merge into: | lp:launchpad |
Diff against target: |
841 lines (+162/-127) 35 files modified
lib/lp/answers/stories/question-answers-vhost.txt (+4/-3) lib/lp/answers/stories/question-overview.txt (+2/-2) lib/lp/registry/browser/configure.zcml (+0/-3) lib/lp/registry/browser/distroseries.py (+1/-1) lib/lp/registry/browser/tests/test_breadcrumbs.py (+34/-0) lib/lp/registry/doc/distroseries.txt (+43/-0) lib/lp/registry/interfaces/distroseries.py (+1/-0) lib/lp/registry/model/distroseries.py (+4/-0) lib/lp/registry/stories/distribution/xx-distribution-packages.txt (+1/-1) lib/lp/registry/stories/distroseries/xx-distroseries-index.txt (+5/-5) lib/lp/registry/stories/packaging/xx-sourcepackage-packaging.txt (+2/-1) lib/lp/registry/stories/product/xx-product-package-pages.txt (+4/-4) lib/lp/registry/templates/distribution-portlet-series.pt (+0/-22) lib/lp/registry/templates/distribution-series.pt (+3/-4) lib/lp/registry/templates/distroseries-details.pt (+3/-3) lib/lp/registry/templates/product-distros.pt (+2/-3) lib/lp/registry/templates/product-packages.pt (+2/-3) lib/lp/soyuz/stories/distroseries/add-architecture.txt (+1/-1) lib/lp/soyuz/stories/packaging/package-pages-navigation.txt (+6/-6) lib/lp/soyuz/stories/ppa/xx-ubuntu-ppas.txt (+4/-13) lib/lp/soyuz/stories/soyuz/xx-distroarchseries-binpackages.txt (+5/-5) lib/lp/soyuz/stories/soyuz/xx-distroarchseries.txt (+2/-2) lib/lp/soyuz/stories/soyuz/xx-distroseries-binary-packages.txt (+5/-5) lib/lp/soyuz/stories/soyuz/xx-person-packages.txt (+1/-1) lib/lp/soyuz/stories/soyuz/xx-sourcepackage-changelog.txt (+1/-1) lib/lp/soyuz/templates/distribution-portlet-ppa-architectures.pt (+2/-5) lib/lp/translations/browser/tests/test_breadcrumbs.py (+2/-2) lib/lp/translations/stories/distribution/xx-distribution-translations.txt (+10/-10) lib/lp/translations/stories/standalone/xx-pofile-translate-message-filtering.txt (+2/-2) lib/lp/translations/stories/standalone/xx-rosetta-homepage.txt (+1/-1) lib/lp/translations/stories/standalone/xx-rosetta-pofile-export.txt (+3/-3) lib/lp/translations/stories/standalone/xx-rosetta-potemplate-index.txt (+3/-2) lib/lp/translations/stories/standalone/xx-rosetta-sourcepackage-list.txt (+1/-1) lib/lp/translations/templates/distribution-translations.pt (+1/-3) lib/lp/translations/templates/rosetta-index.pt (+1/-9) |
To merge this branch: | bzr merge lp:~sinzui/launchpad/distroseries-breadcrumb-bug-400643 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brad Crittenden (community) | code | Approve | |
Review via email: mp+14657@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
Curtis Hovey (sinzui) wrote : | # |
Revision history for this message
Graham Binns (gmb) wrote : | # |
Curtis, I'm going to leave this branch for now, as I'd rather have you available to answer questions when I look at it (someone else who has more brain power than I is welcome to take a look at it before then).
Revision history for this message
Brad Crittenden (bac) wrote : | # |
Curtis these changes look very good and thorough. Thanks for taking the time to clean this up. The presentation is much better now.
review:
Approve
(code)
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'lib/lp/answers/stories/question-answers-vhost.txt' |
2 | --- lib/lp/answers/stories/question-answers-vhost.txt 2009-09-23 14:40:53 +0000 |
3 | +++ lib/lp/answers/stories/question-answers-vhost.txt 2009-11-09 18:05:29 +0000 |
4 | @@ -21,12 +21,13 @@ |
5 | >>> anon_browser.open( |
6 | ... 'http://answers.launchpad.dev/ubuntu/+source/mozilla-firefox') |
7 | >>> print anon_browser.title |
8 | - Questions : “mozilla-firefox” package : Ubuntu |
9 | + Questions : ...mozilla-firefox... package : Ubuntu |
10 | |
11 | >>> anon_browser.open( |
12 | - ... 'http://answers.launchpad.dev/ubuntu/hoary/+source/mozilla-firefox') |
13 | + ... 'http://answers.launchpad.dev' |
14 | + ... '/ubuntu/hoary/+source/mozilla-firefox') |
15 | >>> print anon_browser.title |
16 | - Questions : “mozilla-firefox” source package : 5.04 : Ubuntu |
17 | + Questions : ...mozilla-firefox... source package : Hoary (5.04) : Ubuntu |
18 | |
19 | == Project == |
20 | |
21 | |
22 | === modified file 'lib/lp/answers/stories/question-overview.txt' |
23 | --- lib/lp/answers/stories/question-overview.txt 2009-10-31 15:42:37 +0000 |
24 | +++ lib/lp/answers/stories/question-overview.txt 2009-11-09 18:05:29 +0000 |
25 | @@ -103,8 +103,8 @@ |
26 | >>> browser.getLink('Answers').url |
27 | 'http://answers.launchpad.dev/ubuntu/hoary/+source/evolution' |
28 | >>> browser.getLink('Answers').click() |
29 | - >>> browser.title |
30 | - 'Questions : \xe2\x80\x9cevolution\xe2\x80\x9d source package : 5.04 : Ubuntu' |
31 | + >>> print browser.title |
32 | + Questions : ...evolution... source package : Hoary (5.04) : Ubuntu |
33 | >>> browser.getLink('Ask a question').url |
34 | '.../ubuntu/hoary/+source/evolution/+addquestion' |
35 | |
36 | |
37 | === modified file 'lib/lp/registry/browser/configure.zcml' |
38 | --- lib/lp/registry/browser/configure.zcml 2009-10-26 19:47:59 +0000 |
39 | +++ lib/lp/registry/browser/configure.zcml 2009-11-09 18:05:29 +0000 |
40 | @@ -1876,9 +1876,6 @@ |
41 | name="+portlet-lifecycle" |
42 | template="../templates/distribution-portlet-lifecycle.pt"/> |
43 | <browser:page |
44 | - name="+portlet-series" |
45 | - template="../templates/distribution-portlet-series.pt"/> |
46 | - <browser:page |
47 | name="+portlet-milestones" |
48 | template="../templates/object-portlet-milestones.pt"/> |
49 | </browser:pages> |
50 | |
51 | === modified file 'lib/lp/registry/browser/distroseries.py' |
52 | --- lib/lp/registry/browser/distroseries.py 2009-10-08 12:50:25 +0000 |
53 | +++ lib/lp/registry/browser/distroseries.py 2009-11-09 18:05:29 +0000 |
54 | @@ -133,7 +133,7 @@ |
55 | """Builds a breadcrumb for an `IDistroSeries`.""" |
56 | @property |
57 | def text(self): |
58 | - return self.context.version |
59 | + return self.context.named_version |
60 | |
61 | |
62 | class DistroSeriesFacets(StandardLaunchpadFacets): |
63 | |
64 | === added file 'lib/lp/registry/browser/tests/test_breadcrumbs.py' |
65 | --- lib/lp/registry/browser/tests/test_breadcrumbs.py 1970-01-01 00:00:00 +0000 |
66 | +++ lib/lp/registry/browser/tests/test_breadcrumbs.py 2009-11-09 18:05:29 +0000 |
67 | @@ -0,0 +1,34 @@ |
68 | +# Copyright 2009 Canonical Ltd. This software is licensed under the |
69 | +# GNU Affero General Public License version 3 (see the file LICENSE). |
70 | + |
71 | +__metaclass__ = type |
72 | + |
73 | +import unittest |
74 | + |
75 | +from canonical.launchpad.webapp.publisher import canonical_url |
76 | +from canonical.launchpad.webapp.tests.breadcrumbs import ( |
77 | + BaseBreadcrumbTestCase) |
78 | + |
79 | + |
80 | +class TestDistroseriesBreadcrumb(BaseBreadcrumbTestCase): |
81 | + """Test breadcrumbs for an `IDistroseries`.""" |
82 | + |
83 | + def setUp(self): |
84 | + super(TestDistroseriesBreadcrumb, self).setUp() |
85 | + self.distribution = self.factory.makeDistribution( |
86 | + name='youbuntu', displayname='Youbuntu') |
87 | + self.distroseries = self.factory.makeDistroRelease( |
88 | + name='groovy', version="1.06", distribution=self.distribution) |
89 | + self.distroseries_url = canonical_url(self.distroseries) |
90 | + |
91 | + def test_distroseries(self): |
92 | + crumbs = self._getBreadcrumbs( |
93 | + self.distroseries_url, |
94 | + [self.root, self.distribution, self.distroseries]) |
95 | + last_crumb = crumbs[-1] |
96 | + self.assertEquals( |
97 | + last_crumb.text, self.distroseries.named_version) |
98 | + |
99 | + |
100 | +def test_suite(): |
101 | + return unittest.TestLoader().loadTestsFromName(__name__) |
102 | |
103 | === modified file 'lib/lp/registry/doc/distroseries.txt' |
104 | --- lib/lp/registry/doc/distroseries.txt 2009-09-19 08:14:43 +0000 |
105 | +++ lib/lp/registry/doc/distroseries.txt 2009-11-09 18:05:29 +0000 |
106 | @@ -85,6 +85,49 @@ |
107 | >>> all_ubuntu_releases.count() |
108 | 4 |
109 | |
110 | + |
111 | +Distroseries identifying attributes |
112 | +----------------------------------- |
113 | + |
114 | +A distroseries has a set of attributes that identify it. The launchpad id is |
115 | +the name attribute. |
116 | + |
117 | + >>> print warty.name |
118 | + warty |
119 | + |
120 | +It has a title for heading and titles... |
121 | + |
122 | + >>> print warty.title |
123 | + The Warty Warthog Release |
124 | + |
125 | +And a displayname for referring to it in a sentence. |
126 | + |
127 | + >>> print warty.displayname |
128 | + Warty |
129 | + |
130 | +The fullseriesname attribute is used when the context of the series name |
131 | +can be confused. Note that the value is created from the launchpad id names |
132 | +of the distribution and the series, though it may look like the displayname |
133 | +attributes were used. |
134 | + |
135 | + >>> print warty.fullseriesname |
136 | + Ubuntu Warty |
137 | + |
138 | +The version attribute holds the debversion of the series. |
139 | + |
140 | + >>> print warty.version |
141 | + 4.10 |
142 | + |
143 | +The named_version attribute is used is used to present the series displayname |
144 | +and version values consistently. |
145 | + |
146 | + >>> print warty.named_version |
147 | + Warty (4.10) |
148 | + |
149 | + |
150 | +Published releases |
151 | +------------------ |
152 | + |
153 | DistroSeries.getPublishedReleases: |
154 | |
155 | >>> from lp.registry.model.distroseries import DistroSeries |
156 | |
157 | === modified file 'lib/lp/registry/interfaces/distroseries.py' |
158 | --- lib/lp/registry/interfaces/distroseries.py 2009-10-26 18:40:04 +0000 |
159 | +++ lib/lp/registry/interfaces/distroseries.py 2009-11-09 18:05:29 +0000 |
160 | @@ -264,6 +264,7 @@ |
161 | Interface, # Really IDistribution, see circular import fix below. |
162 | title=_("Distribution"), required=True, |
163 | description=_("The distribution for which this is a series."))) |
164 | + named_version = Attribute('The combined display name and version.') |
165 | parent = Attribute('The structural parent of this series - the distro') |
166 | components = Attribute("The series components.") |
167 | upload_components = Attribute("The series components that can be " |
168 | |
169 | === modified file 'lib/lp/registry/model/distroseries.py' |
170 | --- lib/lp/registry/model/distroseries.py 2009-10-26 18:40:04 +0000 |
171 | +++ lib/lp/registry/model/distroseries.py 2009-11-09 18:05:29 +0000 |
172 | @@ -194,6 +194,10 @@ |
173 | intermediateTable='SectionSelection') |
174 | |
175 | @property |
176 | + def named_version(self): |
177 | + return '%s (%s)' % (self.displayname, self.version) |
178 | + |
179 | + @property |
180 | def upload_components(self): |
181 | """See `IDistroSeries`.""" |
182 | return Component.select(""" |
183 | |
184 | === modified file 'lib/lp/registry/stories/distribution/xx-distribution-packages.txt' |
185 | --- lib/lp/registry/stories/distribution/xx-distribution-packages.txt 2009-11-09 13:01:13 +0000 |
186 | +++ lib/lp/registry/stories/distribution/xx-distribution-packages.txt 2009-11-09 18:05:29 +0000 |
187 | @@ -47,7 +47,7 @@ |
188 | ... 'http://localhost' |
189 | ... '/ubuntu/breezy-autotest/+package/mozilla-firefox') |
190 | >>> print browser.title |
191 | - mozilla-firefox : 6.6.6 : Ubuntu |
192 | + mozilla-firefox : Breezy Badger Autotest (6.6.6) : Ubuntu |
193 | |
194 | Now run a search for mozilla-firefox and check that it is found: |
195 | |
196 | |
197 | === modified file 'lib/lp/registry/stories/distroseries/xx-distroseries-index.txt' |
198 | --- lib/lp/registry/stories/distroseries/xx-distroseries-index.txt 2009-09-23 10:17:34 +0000 |
199 | +++ lib/lp/registry/stories/distroseries/xx-distroseries-index.txt 2009-11-09 18:05:29 +0000 |
200 | @@ -7,7 +7,7 @@ |
201 | >>> user_browser.open('http://launchpad.dev/ubuntu/hoary') |
202 | >>> user_browser.getLink('Help translate').click() |
203 | >>> print user_browser.title |
204 | - Translations : 5.04 : Ubuntu |
205 | + Translations : Hoary (5.04) : Ubuntu |
206 | |
207 | |
208 | Registering information |
209 | @@ -40,11 +40,11 @@ |
210 | ... find_portlet(anon_browser.contents, 'Series information')) |
211 | Series information |
212 | Distribution: Ubuntu |
213 | - Series: Warty |
214 | + Series: Warty (4.10) |
215 | Project drivers: Ubuntu Team |
216 | Release manager: None |
217 | Status: Current Stable Release |
218 | - Derives from: Warty is not derived from another series. |
219 | + Derives from: Warty (4.10) is not derived from another series. |
220 | Source packages: 3 |
221 | Binary packages: 4 |
222 | |
223 | @@ -56,11 +56,11 @@ |
224 | ... find_portlet(anon_browser.contents, 'Series information')) |
225 | Series information |
226 | Distribution: Debian |
227 | - Series: Sarge |
228 | + Series: Sarge (3.1) |
229 | Project drivers: Jeff Waugh, Mark Shuttleworth |
230 | Release manager: Jeff Waugh |
231 | Status: Pre-release Freeze |
232 | - Derives from: Woody |
233 | + Derives from: Woody (3.0) |
234 | Source packages: No sources imported or published. |
235 | Binary packages: No binaries imported or published. |
236 | |
237 | |
238 | === modified file 'lib/lp/registry/stories/packaging/xx-sourcepackage-packaging.txt' |
239 | --- lib/lp/registry/stories/packaging/xx-sourcepackage-packaging.txt 2009-10-16 15:00:55 +0000 |
240 | +++ lib/lp/registry/stories/packaging/xx-sourcepackage-packaging.txt 2009-11-09 18:05:29 +0000 |
241 | @@ -7,7 +7,8 @@ |
242 | ... "http://launchpad.dev/ubuntu/warty/+source/mozilla/+packaging") |
243 | |
244 | >>> print_location(user_browser.contents) |
245 | - Hierarchy: Ubuntu > 4.10 > ...mozilla... source package > Upstream links |
246 | + Hierarchy: Ubuntu > Warty (4.10) > |
247 | + ...mozilla... source package > Upstream links |
248 | Tabs: |
249 | * Overview (selected) - http://launchpad.dev/ubuntu/warty/+source/mozilla |
250 | * Branches - http://code.launchpad.dev/ubuntu/warty/+source/mozilla |
251 | |
252 | === modified file 'lib/lp/registry/stories/product/xx-product-package-pages.txt' |
253 | --- lib/lp/registry/stories/product/xx-product-package-pages.txt 2009-10-26 19:09:39 +0000 |
254 | +++ lib/lp/registry/stories/product/xx-product-package-pages.txt 2009-11-09 18:05:29 +0000 |
255 | @@ -13,7 +13,7 @@ |
256 | >>> print extract_text( |
257 | ... find_tag_by_id(anon_browser.contents, 'distribution-series')) |
258 | Distribution Series Source Package Upstream Series Pack... |
259 | - 4.10 (Warty) evolution Evolution trunk series ... |
260 | + Warty (4.10) evolution Evolution trunk series ... |
261 | |
262 | >>> anon_browser.getLink(url='/ubuntu/warty/+source/evolution').click() |
263 | >>> print extract_text( |
264 | @@ -32,8 +32,8 @@ |
265 | >>> print extract_text(find_tag_by_id( |
266 | ... evo_owner.contents, 'packages-trunk')) |
267 | Distribution Series Source Package Version |
268 | - Ubuntu 4.10 (Warty) evolution |
269 | - Ubuntu 5.04 (Hoary) evolution 1.0 |
270 | + Ubuntu Warty (4.10) evolution |
271 | + Ubuntu Hoary (5.04) evolution 1.0 |
272 | |
273 | >>> evo_owner.getLink(url='/ubuntu/hoary/+source/evolution') is not None |
274 | True |
275 | @@ -67,4 +67,4 @@ |
276 | >>> print extract_text(find_tag_by_id( |
277 | ... evo_owner.contents, 'packages-trunk')) |
278 | Distribution Series Source Package Version |
279 | - Ubuntu 5.04 (Hoary) evolution 1.0 |
280 | + Ubuntu Hoary (5.04) evolution 1.0 |
281 | |
282 | === removed file 'lib/lp/registry/templates/distribution-portlet-series.pt' |
283 | --- lib/lp/registry/templates/distribution-portlet-series.pt 2009-10-26 18:40:04 +0000 |
284 | +++ lib/lp/registry/templates/distribution-portlet-series.pt 1970-01-01 00:00:00 +0000 |
285 | @@ -1,22 +0,0 @@ |
286 | -<div |
287 | - xmlns:tal="http://xml.zope.org/namespaces/tal" |
288 | - xmlns:metal="http://xml.zope.org/namespaces/metal" |
289 | - xmlns:i18n="http://xml.zope.org/namespaces/i18n" |
290 | - class="portlet" id="portlet-series" |
291 | - tal:condition="context/series"> |
292 | - <h2>Major current versions</h2> |
293 | - <div class="portletBody portletContent"> |
294 | - <ul class="distroseries"> |
295 | - <tal:per_series repeat="series context/series"> |
296 | - <li tal:condition="series/active"> |
297 | - <a tal:attributes="href series/fmt:url"> |
298 | - <tal:version replace="series/version" /> |
299 | - "<tal:codename replace="series/displayname" />" |
300 | - </a> |
301 | - - <tal:status replace="series/status/name/fmt:lower" /> |
302 | - </li> |
303 | - </tal:per_series> |
304 | - </ul> |
305 | - <a href="+series">» See all versions...</a> |
306 | - </div> |
307 | -</div> |
308 | |
309 | === modified file 'lib/lp/registry/templates/distribution-series.pt' |
310 | --- lib/lp/registry/templates/distribution-series.pt 2009-10-26 18:40:04 +0000 |
311 | +++ lib/lp/registry/templates/distribution-series.pt 2009-11-09 18:05:29 +0000 |
312 | @@ -25,16 +25,15 @@ |
313 | tal:define="series a_styled_series/series" |
314 | tal:attributes="class string:${a_styled_series/css_class} series; |
315 | id series/name/fmt:css-id/series-;"> |
316 | - <strong><a tal:attributes="href series/fmt:url"> |
317 | - <tal:version replace="series/version" /> |
318 | - "<tal:codename replace="series/displayname" />"</a></strong> |
319 | + <strong><a tal:attributes="href series/fmt:url" |
320 | + tal:content="series/named_version" /></strong> |
321 | <em><span tal:replace="series/status/title" /></em> |
322 | <tal:derives condition="series/parent_series"> |
323 | <br />Derives from |
324 | <a tal:attributes="href series/parent_series/fmt:url"> |
325 | <tal:distro |
326 | replace="series/parent_series/distribution/displayname" /> |
327 | - <tal:distroseries replace="series/parent_series/version" /></a> |
328 | + <tal:distroseries replace="series/parent_series/named_version" /></a> |
329 | </tal:derives> |
330 | <tal:milestones |
331 | define="milestones series/all_milestones" |
332 | |
333 | === modified file 'lib/lp/registry/templates/distroseries-details.pt' |
334 | --- lib/lp/registry/templates/distroseries-details.pt 2009-09-15 22:12:44 +0000 |
335 | +++ lib/lp/registry/templates/distroseries-details.pt 2009-11-09 18:05:29 +0000 |
336 | @@ -14,7 +14,7 @@ |
337 | |
338 | <dl id="series-name"> |
339 | <dt>Series:</dt> |
340 | - <dd><tal:name replace="context/displayname" /></dd> |
341 | + <dd><tal:name replace="context/named_version" /></dd> |
342 | </dl> |
343 | |
344 | <dl id="series-drivers"> |
345 | @@ -52,9 +52,9 @@ |
346 | <a |
347 | tal:condition="context/parent_series" |
348 | tal:attributes="href context/parent_series/fmt:url" |
349 | - tal:content="context/parent_series/displayname" /> |
350 | + tal:content="context/parent_series/named_version" /> |
351 | <tal:none condition="not: context/parent_series"> |
352 | - <tal:name replace="context/displayname"/> is not derived from |
353 | + <tal:name replace="context/named_version"/> is not derived from |
354 | another series. |
355 | </tal:none> |
356 | </dd> |
357 | |
358 | === modified file 'lib/lp/registry/templates/product-distros.pt' |
359 | --- lib/lp/registry/templates/product-distros.pt 2009-10-26 18:40:04 +0000 |
360 | +++ lib/lp/registry/templates/product-distros.pt 2009-11-09 18:05:29 +0000 |
361 | @@ -39,9 +39,8 @@ |
362 | <tbody> |
363 | <tr tal:repeat="pkging distro/packagings"> |
364 | <td> |
365 | - <a tal:attributes="href pkging/distroseries/fmt:url"><tal:version |
366 | - replace="pkging/distroseries/version" /> |
367 | - (<tal:name replace="pkging/distroseries/displayname" />)</a> |
368 | + <a tal:attributes="href pkging/distroseries/fmt:url" |
369 | + tal:replace="pkging/distroseries/named_version" /> |
370 | </td> |
371 | |
372 | <td> |
373 | |
374 | === modified file 'lib/lp/registry/templates/product-packages.pt' |
375 | --- lib/lp/registry/templates/product-packages.pt 2009-11-06 21:06:38 +0000 |
376 | +++ lib/lp/registry/templates/product-packages.pt 2009-11-09 18:05:29 +0000 |
377 | @@ -60,9 +60,8 @@ |
378 | </td> |
379 | |
380 | <td> |
381 | - <a tal:attributes="href packaging/distroseries/fmt:url"><tal:version |
382 | - replace="packaging/distroseries/version" /> |
383 | - (<tal:name replace="packaging/distroseries/displayname" />)</a> |
384 | + <a tal:attributes="href packaging/distroseries/fmt:url" |
385 | + tal:replace="packaging/distroseries/named_version" /> |
386 | </td> |
387 | |
388 | <td> |
389 | |
390 | === modified file 'lib/lp/soyuz/stories/distroseries/add-architecture.txt' |
391 | --- lib/lp/soyuz/stories/distroseries/add-architecture.txt 2009-09-18 15:42:19 +0000 |
392 | +++ lib/lp/soyuz/stories/distroseries/add-architecture.txt 2009-11-09 18:05:29 +0000 |
393 | @@ -25,7 +25,7 @@ |
394 | >>> admin_browser.getControl('PPA support available').selected = True |
395 | >>> admin_browser.getControl('Continue').click() |
396 | >>> print admin_browser.title |
397 | - ia64 : 5.04 : Ubuntu |
398 | + ia64 : Hoary (5.04) : Ubuntu |
399 | |
400 | Other users won't see the link nor the page where a new port can be |
401 | registered. |
402 | |
403 | === modified file 'lib/lp/soyuz/stories/packaging/package-pages-navigation.txt' |
404 | --- lib/lp/soyuz/stories/packaging/package-pages-navigation.txt 2009-09-28 12:59:33 +0000 |
405 | +++ lib/lp/soyuz/stories/packaging/package-pages-navigation.txt 2009-11-09 18:05:29 +0000 |
406 | @@ -93,7 +93,7 @@ |
407 | >>> anon_browser.open( |
408 | ... 'http://launchpad.dev/ubuntu/hoary/+source/alsa-utils') |
409 | >>> print_location(anon_browser.contents) |
410 | - Hierarchy: Ubuntu > 5.04 > ?alsa-utils? source package |
411 | + Hierarchy: Ubuntu > Hoary (5.04) > ?alsa-utils? source package |
412 | Tabs: |
413 | * Overview (selected) - not linked |
414 | * Branches - http://code.launchpad.dev/ubuntu/hoary/+source/alsa-utils |
415 | @@ -109,7 +109,7 @@ |
416 | >>> anon_browser.open( |
417 | ... 'http://answers.launchpad.dev/ubuntu/hoary/+source/alsa-utils') |
418 | >>> print_location(anon_browser.contents) |
419 | - Hierarchy: Ubuntu > 5.04 > ?alsa-utils? source package > Questions |
420 | + Hierarchy: Ubuntu > Hoary (5.04) > ?alsa-utils? source package > Questions |
421 | Tabs: |
422 | * Overview - http://launchpad.dev/ubuntu/hoary/+source/alsa-utils |
423 | * Branches - http://code.launchpad.dev/ubuntu/hoary/+source/alsa-utils |
424 | @@ -131,7 +131,7 @@ |
425 | ... 'http://launchpad.dev/ubuntu/hoary/' |
426 | ... '+source/alsa-utils/1.0.9a-4ubuntu1') |
427 | >>> print_location(anon_browser.contents) |
428 | - Hierarchy: Ubuntu > 5.04 > ?alsa-utils? source package |
429 | + Hierarchy: Ubuntu > Hoary (5.04) > ?alsa-utils? source package |
430 | Tabs: |
431 | * Overview (selected) - http://launchpad.dev/ubuntu/hoary/+source/alsa-utils |
432 | * Branches - http://code.launchpad.dev/ubuntu/hoary/+source/alsa-utils |
433 | @@ -150,7 +150,7 @@ |
434 | |
435 | >>> anon_browser.open('http://launchpad.dev/ubuntu/hoary/i386') |
436 | >>> print_location(anon_browser.contents) |
437 | - Hierarchy: Ubuntu > 5.04 > i386 |
438 | + Hierarchy: Ubuntu > Hoary (5.04) > i386 |
439 | Tabs: |
440 | * Overview (selected) - http://launchpad.dev/ubuntu/hoary |
441 | * Branches - http://code.launchpad.dev/ubuntu/hoary |
442 | @@ -168,7 +168,7 @@ |
443 | |
444 | >>> anon_browser.open('http://launchpad.dev/ubuntu/hoary/i386/pmount') |
445 | >>> print_location(anon_browser.contents) |
446 | - Hierarchy: Ubuntu > 5.04 > i386 > pmount |
447 | + Hierarchy: Ubuntu > Hoary (5.04) > i386 > pmount |
448 | Tabs: |
449 | * Overview (selected) - http://launchpad.dev/ubuntu/hoary |
450 | * Branches - http://code.launchpad.dev/ubuntu/hoary |
451 | @@ -187,7 +187,7 @@ |
452 | >>> anon_browser.open( |
453 | ... 'http://launchpad.dev/ubuntu/hoary/i386/pmount/0.1-1') |
454 | >>> print_location(anon_browser.contents) |
455 | - Hierarchy: Ubuntu > 5.04 > i386 > pmount > 0.1-1 |
456 | + Hierarchy: Ubuntu > Hoary (5.04) > i386 > pmount > 0.1-1 |
457 | Tabs: |
458 | * Overview (selected) - http://launchpad.dev/ubuntu/hoary |
459 | * Branches - http://code.launchpad.dev/ubuntu/hoary |
460 | |
461 | === modified file 'lib/lp/soyuz/stories/ppa/xx-ubuntu-ppas.txt' |
462 | --- lib/lp/soyuz/stories/ppa/xx-ubuntu-ppas.txt 2009-10-16 11:28:58 +0000 |
463 | +++ lib/lp/soyuz/stories/ppa/xx-ubuntu-ppas.txt 2009-11-09 18:05:29 +0000 |
464 | @@ -27,16 +27,8 @@ |
465 | ... find_tag_by_id(anon_browser.contents, |
466 | ... 'supports_virtualized_architectures')) |
467 | PPA supported series |
468 | - 5.04 |
469 | - "Hoary" |
470 | - - development |
471 | - i386 |
472 | - (official) |
473 | - 4.10 |
474 | - "Warty" |
475 | - - current |
476 | - i386 |
477 | - (official) |
478 | + Hoary (5.04) - development i386 (official) |
479 | + Warty (4.10) - current i386 (official) |
480 | |
481 | The sample data contains three PPAs. Only Celso's and Mark's have |
482 | packages (the active ones). Altogether there 4 sources and 4 binaries |
483 | @@ -95,9 +87,8 @@ |
484 | ... find_tag_by_id(anon_browser.contents, |
485 | ... 'supports_virtualized_architectures')) |
486 | PPA supported series |
487 | - 3.1 "Sarge" - frozen |
488 | - 3.0 "Woody" - current |
489 | - i386 (official) |
490 | + Sarge (3.1) - frozen |
491 | + Woody (3.0) - current i386 (official) |
492 | |
493 | Archive and package counter are empty. |
494 | |
495 | |
496 | === modified file 'lib/lp/soyuz/stories/soyuz/xx-distroarchseries-binpackages.txt' |
497 | --- lib/lp/soyuz/stories/soyuz/xx-distroarchseries-binpackages.txt 2009-09-18 21:00:18 +0000 |
498 | +++ lib/lp/soyuz/stories/soyuz/xx-distroarchseries-binpackages.txt 2009-11-09 18:05:29 +0000 |
499 | @@ -34,7 +34,7 @@ |
500 | |
501 | >>> browser.getLink("0.9").click() |
502 | >>> print browser.title |
503 | - 0.9 : mozilla-firefox : i386 : 4.10 : Ubuntu |
504 | + 0.9 : mozilla-firefox : i386 : Warty (4.10) : Ubuntu |
505 | |
506 | As well as a link to the related distribution source package: |
507 | |
508 | @@ -43,7 +43,7 @@ |
509 | >>> browser.getLink(id="source_package").click() |
510 | >>> print browser.title.decode('ascii', 'ignore') |
511 | iceweasel package : Ubuntu |
512 | - |
513 | + |
514 | If the binary distribution does not have a current release, then the |
515 | link to the source package will not be present: |
516 | |
517 | @@ -82,7 +82,7 @@ |
518 | |
519 | >>> browser.getLink(url="mozilla-firefox/0.9").click() |
520 | >>> print browser.title |
521 | - 0.9 : mozilla-firefox : i386 : 4.10 : Ubuntu |
522 | + 0.9 : mozilla-firefox : i386 : Warty (4.10) : Ubuntu |
523 | |
524 | This page represents an IDistroArchSeriesBinaryPackageRelease and is |
525 | able to point the user to the IDistroSeriesSourcePackageRelease which |
526 | @@ -146,7 +146,7 @@ |
527 | |
528 | >>> browser.getLink("1.0-1").click() |
529 | >>> print browser.title |
530 | - 1.0-1 : commercialpackage : i386 : 6.6.6 : Ubuntu |
531 | + 1.0-1 : commercialpackage : i386 : Breezy Badger Autotest (6.6.6) : Ubuntu |
532 | |
533 | A BinaryPackageRelease once published in a DistroArchSeries is |
534 | represented by a DistroArchSeriesBinaryPackageRelease and easily |
535 | @@ -177,7 +177,7 @@ |
536 | |
537 | >>> browser.getLink("commercialpackage").click() |
538 | >>> print browser.title |
539 | - 1.0-1 : commercialpackage : i386 : 6.6.6 : Ubuntu |
540 | + 1.0-1 : commercialpackage : i386 : Breezy Badger Autotest (6.6.6) : Ubuntu |
541 | |
542 | This page represents an IDistroArchSeriesBinaryPackageRelease and is |
543 | able to point the user to the IDistroSeriesSourcePackageRelease which |
544 | |
545 | === modified file 'lib/lp/soyuz/stories/soyuz/xx-distroarchseries.txt' |
546 | --- lib/lp/soyuz/stories/soyuz/xx-distroarchseries.txt 2009-09-18 15:42:19 +0000 |
547 | +++ lib/lp/soyuz/stories/soyuz/xx-distroarchseries.txt 2009-11-09 18:05:29 +0000 |
548 | @@ -16,7 +16,7 @@ |
549 | >>> anon_browser.getLink('i386').click() |
550 | |
551 | >>> print anon_browser.title |
552 | - i386 : 4.10 : Ubuntu |
553 | + i386 : Warty (4.10) : Ubuntu |
554 | |
555 | We present only minimal information in this page, its main feature is |
556 | to allow binary package searching. |
557 | @@ -247,7 +247,7 @@ |
558 | administrator. |
559 | |
560 | >>> print admin_browser.title |
561 | - amd64 : 5.04 : Ubuntu |
562 | + amd64 : Hoary (5.04) : Ubuntu |
563 | |
564 | And other users can see the just-created architecture listed in the |
565 | distroseries page. |
566 | |
567 | === modified file 'lib/lp/soyuz/stories/soyuz/xx-distroseries-binary-packages.txt' |
568 | --- lib/lp/soyuz/stories/soyuz/xx-distroseries-binary-packages.txt 2009-09-18 21:00:18 +0000 |
569 | +++ lib/lp/soyuz/stories/soyuz/xx-distroseries-binary-packages.txt 2009-11-09 18:05:29 +0000 |
570 | @@ -6,12 +6,12 @@ |
571 | >>> browser.open( |
572 | ... 'http://launchpad.dev/ubuntu/warty/+package/mozilla-firefox') |
573 | >>> print browser.title |
574 | - mozilla-firefox : 4.10 : Ubuntu |
575 | + mozilla-firefox : Warty (4.10) : Ubuntu |
576 | |
577 | >>> main_content = find_main_content(browser.contents) |
578 | >>> print extract_text(main_content) |
579 | Binary package “mozilla-firefox” in ubuntu warty |
580 | - Ubuntu 4.10 mozilla-firefox |
581 | + Ubuntu Warty (4.10) mozilla-firefox |
582 | Mozilla Firefox Web Browser |
583 | Mozilla Firefox Web Browser is ..... |
584 | Source package |
585 | @@ -36,7 +36,7 @@ |
586 | |
587 | >>> browser.getLink(id="source_package").click() |
588 | >>> browser.title |
589 | - '\xe2\x80\x9ciceweasel\xe2\x80\x9d source package : 4.10 : Ubuntu' |
590 | + '...iceweasel... source package : Warty (4.10) : Ubuntu' |
591 | |
592 | Some DistroSeriesBinaryPackages are unpublished, in this case there is |
593 | no link to any source package: |
594 | @@ -44,12 +44,12 @@ |
595 | >>> browser.open( |
596 | ... 'http://launchpad.dev/ubuntu/hoary/+package/mozilla-firefox') |
597 | >>> print browser.title |
598 | - mozilla-firefox : 5.04 : Ubuntu |
599 | + mozilla-firefox : Hoary (5.04) : Ubuntu |
600 | |
601 | >>> main_content = find_main_content(browser.contents) |
602 | >>> print extract_text(main_content) |
603 | Binary package “mozilla-firefox” in ubuntu hoary |
604 | - Ubuntu 5.04 mozilla-firefox |
605 | + Ubuntu Hoary (5.04) mozilla-firefox |
606 | No summary available for mozilla-firefox in ubuntu hoary. |
607 | No description available for mozilla-firefox in ubuntu hoary. |
608 | Published versions |
609 | |
610 | === modified file 'lib/lp/soyuz/stories/soyuz/xx-person-packages.txt' |
611 | --- lib/lp/soyuz/stories/soyuz/xx-person-packages.txt 2009-10-20 02:24:44 +0000 |
612 | +++ lib/lp/soyuz/stories/soyuz/xx-person-packages.txt 2009-11-09 18:05:29 +0000 |
613 | @@ -70,7 +70,7 @@ |
614 | <Link text='Ubuntu Hoary' url='http://launchpad.dev/ubuntu/hoary/+source/cnews'> |
615 | >>> link.click() |
616 | >>> browser.title |
617 | - '...cnews... package : 5.04 : Ubuntu' |
618 | + '...cnews... package : Hoary (5.04) : Ubuntu' |
619 | |
620 | Same again for the third column should take us to a distribution source |
621 | package release page: |
622 | |
623 | === modified file 'lib/lp/soyuz/stories/soyuz/xx-sourcepackage-changelog.txt' |
624 | --- lib/lp/soyuz/stories/soyuz/xx-sourcepackage-changelog.txt 2009-09-28 12:59:33 +0000 |
625 | +++ lib/lp/soyuz/stories/soyuz/xx-sourcepackage-changelog.txt 2009-11-09 18:05:29 +0000 |
626 | @@ -5,7 +5,7 @@ |
627 | >>> user_browser.open( |
628 | ... "http://launchpad.dev/ubuntu/hoary/+source/pmount/+changelog") |
629 | >>> print_location(user_browser.contents) |
630 | - Hierarchy: Ubuntu > 5.04 > ...pmount... source package > Change log |
631 | + Hierarchy: Ubuntu > Hoary (5.04) > ...pmount... source package > Change log |
632 | Tabs: |
633 | * Overview (selected) - http://launchpad.dev/ubuntu/hoary/+source/pmount |
634 | * Branches - http://code.launchpad.dev/ubuntu/hoary/+source/pmount |
635 | |
636 | === modified file 'lib/lp/soyuz/templates/distribution-portlet-ppa-architectures.pt' |
637 | --- lib/lp/soyuz/templates/distribution-portlet-ppa-architectures.pt 2009-10-26 18:40:04 +0000 |
638 | +++ lib/lp/soyuz/templates/distribution-portlet-ppa-architectures.pt 2009-11-09 18:05:29 +0000 |
639 | @@ -12,12 +12,9 @@ |
640 | <tal:per_series repeat="series series"> |
641 | <li tal:condition="series/active"> |
642 | <a class="sprite distribution" |
643 | - tal:attributes="href series/fmt:url"> |
644 | - <tal:version replace="series/version" /> |
645 | - "<tal:codename replace="series/displayname" />" |
646 | - </a> |
647 | + tal:attributes="href series/fmt:url" |
648 | + tal:content="series/named_version" /> |
649 | - <tal:status replace="series/status/name/fmt:lower" /> |
650 | - |
651 | <ul tal:define="archs series/virtualized_architectures" |
652 | tal:condition="archs"> |
653 | <li class="sprite" tal:repeat="arch archs"> |
654 | |
655 | === modified file 'lib/lp/translations/browser/tests/test_breadcrumbs.py' |
656 | --- lib/lp/translations/browser/tests/test_breadcrumbs.py 2009-09-17 19:05:29 +0000 |
657 | +++ lib/lp/translations/browser/tests/test_breadcrumbs.py 2009-11-09 18:05:29 +0000 |
658 | @@ -81,7 +81,7 @@ |
659 | ['http://launchpad.dev/crumb-tester', |
660 | 'http://launchpad.dev/crumb-tester/test', |
661 | 'http://translations.launchpad.dev/crumb-tester/test'], |
662 | - ["Crumb Tester", "1.0", "Translations"]) |
663 | + ["Crumb Tester", "Test (1.0)", "Translations"]) |
664 | |
665 | def test_project(self): |
666 | project = self.factory.makeProject( |
667 | @@ -142,7 +142,7 @@ |
668 | "http://launchpad.dev/crumb-tester/test", |
669 | "http://translations.launchpad.dev/crumb-tester/test", |
670 | "http://translations.launchpad.dev/crumb-tester/test/+lang/sr"], |
671 | - ["Crumb Tester", "1.0", "Translations", "Serbian (sr)"]) |
672 | + ["Crumb Tester", "Test (1.0)", "Translations", "Serbian (sr)"]) |
673 | |
674 | def test_productserieslanguage(self): |
675 | product = self.factory.makeProduct( |
676 | |
677 | === modified file 'lib/lp/translations/stories/distribution/xx-distribution-translations.txt' |
678 | --- lib/lp/translations/stories/distribution/xx-distribution-translations.txt 2009-09-15 05:45:10 +0000 |
679 | +++ lib/lp/translations/stories/distribution/xx-distribution-translations.txt 2009-11-09 18:05:29 +0000 |
680 | @@ -56,18 +56,18 @@ |
681 | Other versions of Ubuntu |
682 | |
683 | >>> print extract_text(content.find(id='distroseries-list')) |
684 | - 6.6.6 Breezy Badger Autotest |
685 | - 5.10 The Grumpy Groundhog Release |
686 | - 4.10 The Warty Warthog Release |
687 | + Breezy Badger Autotest (6.6.6) |
688 | + Grumpy (5.10) |
689 | + Warty (4.10) |
690 | |
691 | We are not showing its translation status here, so we should have |
692 | links to their particular translation status. |
693 | |
694 | - >>> print browser.getLink('6.6.6 Breezy Badger Autotest').url |
695 | + >>> print browser.getLink('Breezy Badger Autotest (6.6.6)').url |
696 | http://translations.launchpad.dev/ubuntu/breezy-autotest |
697 | - >>> print browser.getLink('5.10 The Grumpy Groundhog Release').url |
698 | + >>> print browser.getLink('Grumpy (5.10)').url |
699 | http://translations.launchpad.dev/ubuntu/grumpy |
700 | - >>> print browser.getLink('4.10 The Warty Warthog Release').url |
701 | + >>> print browser.getLink('Warty (4.10)').url |
702 | http://translations.launchpad.dev/ubuntu/warty |
703 | |
704 | But we are already showing the status for the translation focus one, |
705 | @@ -98,15 +98,15 @@ |
706 | Other versions of Debian |
707 | |
708 | >>> print extract_text(content.find(id='distroseries-list')) |
709 | - 3.2 Sid |
710 | - 3.0 WOODY |
711 | + Sid (3.2) |
712 | + Woody (3.0) |
713 | |
714 | We are not showing its translation status here, so we should have |
715 | links to their particular translation status. |
716 | |
717 | - >>> print browser.getLink('3.2 Sid').url |
718 | + >>> print browser.getLink('Sid (3.2)').url |
719 | http://translations.launchpad.dev/debian/sid |
720 | - >>> print browser.getLink('3.0 WOODY').url |
721 | + >>> print browser.getLink('Woody (3.0)').url |
722 | http://translations.launchpad.dev/debian/woody |
723 | |
724 | But we are already showing the status for the translation focus one, |
725 | |
726 | === modified file 'lib/lp/translations/stories/standalone/xx-pofile-translate-message-filtering.txt' |
727 | --- lib/lp/translations/stories/standalone/xx-pofile-translate-message-filtering.txt 2009-09-17 10:25:48 +0000 |
728 | +++ lib/lp/translations/stories/standalone/xx-pofile-translate-message-filtering.txt 2009-11-09 18:05:29 +0000 |
729 | @@ -45,7 +45,7 @@ |
730 | ... '+source/evolution/+pots/evolution-2.2/es/+translate') |
731 | >>> print user_browser.title |
732 | Spanish (es) : Template ...evolution-2.2... : ...evolution... package : |
733 | - Translations : 5.04 : Ubuntu |
734 | + Translations : Hoary (5.04) : Ubuntu |
735 | |
736 | He can see that there are 22 messages. |
737 | |
738 | @@ -121,7 +121,7 @@ |
739 | >>> user_browser.getControl('Change').click() |
740 | >>> print user_browser.title |
741 | English (Australia) (en_AU) : Template ...evolution-2.2... : |
742 | - ...evolution... package : Translations : 5.04 : Ubuntu |
743 | + ...evolution... package : Translations : Hoary (5.04) : Ubuntu |
744 | |
745 | >>> contents = find_main_content(user_browser.contents) |
746 | >>> print_batch_header(contents) |
747 | |
748 | === modified file 'lib/lp/translations/stories/standalone/xx-rosetta-homepage.txt' |
749 | --- lib/lp/translations/stories/standalone/xx-rosetta-homepage.txt 2009-09-11 16:40:52 +0000 |
750 | +++ lib/lp/translations/stories/standalone/xx-rosetta-homepage.txt 2009-11-09 18:05:29 +0000 |
751 | @@ -11,7 +11,7 @@ |
752 | ... browser.contents, 'three column left')[0] |
753 | >>> print extract_text(left_column) |
754 | Translatable operating systems |
755 | - Ubuntu 5.04 |
756 | + Ubuntu Hoary (5.04) |
757 | |
758 | The middle lists translatable products, Evolution is one of most |
759 | translated projects. |
760 | |
761 | === modified file 'lib/lp/translations/stories/standalone/xx-rosetta-pofile-export.txt' |
762 | --- lib/lp/translations/stories/standalone/xx-rosetta-pofile-export.txt 2009-09-18 15:42:19 +0000 |
763 | +++ lib/lp/translations/stories/standalone/xx-rosetta-pofile-export.txt 2009-11-09 18:05:29 +0000 |
764 | @@ -17,9 +17,9 @@ |
765 | ... '/+source/evolution/+pots/evolution-2.2/es') |
766 | >>> user_browser.getLink('Download').click() |
767 | |
768 | - >>> user_browser.title |
769 | - 'Download translation : Spanish (es)... |
770 | - ...evolution... package : Translations : 5.04 : Ubuntu' |
771 | + >>> print user_browser.title |
772 | + Download translation : Spanish (es)... |
773 | + ...evolution... package : Translations : Hoary (5.04) : Ubuntu |
774 | |
775 | >>> print find_main_content(user_browser.contents) |
776 | <... |
777 | |
778 | === modified file 'lib/lp/translations/stories/standalone/xx-rosetta-potemplate-index.txt' |
779 | --- lib/lp/translations/stories/standalone/xx-rosetta-potemplate-index.txt 2009-09-17 10:22:14 +0000 |
780 | +++ lib/lp/translations/stories/standalone/xx-rosetta-potemplate-index.txt 2009-11-09 18:05:29 +0000 |
781 | @@ -6,8 +6,9 @@ |
782 | |
783 | >>> anon_browser.open("http://translations.launchpad.dev/" |
784 | ... "ubuntu/hoary/+source/evolution/+pots/evolution-2.2/") |
785 | - >>> anon_browser.title |
786 | - 'Template ...evolution-2.2... : ...evolution... package : Translations : 5.04 : Ubuntu' |
787 | + >>> print anon_browser.title |
788 | + Template ...evolution-2.2... : |
789 | + ...evolution... package : Translations : Hoary (5.04) : Ubuntu |
790 | |
791 | The owner of the template is diplayed. |
792 | |
793 | |
794 | === modified file 'lib/lp/translations/stories/standalone/xx-rosetta-sourcepackage-list.txt' |
795 | --- lib/lp/translations/stories/standalone/xx-rosetta-sourcepackage-list.txt 2009-09-17 21:36:38 +0000 |
796 | +++ lib/lp/translations/stories/standalone/xx-rosetta-sourcepackage-list.txt 2009-11-09 18:05:29 +0000 |
797 | @@ -8,7 +8,7 @@ |
798 | ... 'http://translations.launchpad.dev/ubuntu/hoary/' |
799 | ... '+source/evolution') |
800 | >>> anon_browser.title |
801 | - '...evolution...package : Translations : 5.04 : Ubuntu' |
802 | + '...evolution...package : Translations : Hoary (5.04) : Ubuntu' |
803 | |
804 | >>> content = find_main_content(anon_browser.contents) |
805 | >>> print extract_text(content.findAll('h1')[0]).encode( |
806 | |
807 | === modified file 'lib/lp/translations/templates/distribution-translations.pt' |
808 | --- lib/lp/translations/templates/distribution-translations.pt 2009-10-26 18:40:04 +0000 |
809 | +++ lib/lp/translations/templates/distribution-translations.pt 2009-11-09 18:05:29 +0000 |
810 | @@ -73,9 +73,7 @@ |
811 | <ul id="distroseries-list"> |
812 | <li tal:repeat="distroseries view/secondary_translatable_series"> |
813 | <a tal:attributes="href distroseries/fmt:url" |
814 | - tal:content= |
815 | - "string: ${distroseries/version} ${distroseries/title}" |
816 | - >5.04 The Hoary Hedgehog Release</a> |
817 | + tal:content="distroseries/named_version">Hoary (5.04)</a> |
818 | </li> |
819 | </ul> |
820 | </tal:secondary> |
821 | |
822 | === modified file 'lib/lp/translations/templates/rosetta-index.pt' |
823 | --- lib/lp/translations/templates/rosetta-index.pt 2009-09-11 16:40:52 +0000 |
824 | +++ lib/lp/translations/templates/rosetta-index.pt 2009-11-09 18:05:29 +0000 |
825 | @@ -43,15 +43,7 @@ |
826 | <li tal:repeat="distroseries context/translatable_distroseriess"> |
827 | <a tal:attributes="href string:/${distroseries/distribution/name}/${distroseries/name}/+translations"> |
828 | <tal:distroname replace="distroseries/distribution/displayname" /> |
829 | - <tal:version |
830 | - condition="distroseries/version" |
831 | - replace="distroseries/version" |
832 | - /> |
833 | - <tal:codename |
834 | - condition="not:distroseries/version" |
835 | - replace="distroseries/title" |
836 | - /> |
837 | - </a> |
838 | + <tal:version replace="distroseries/named_version" /></a> |
839 | </li> |
840 | </ul> |
841 | </div> |
This is my branch to switch the distroseries breadcrumb and all displays
of version to display as Lucid (10.04).
lp:~sinzui/launchpad/distroseries-breadcrumb-bug-400643 /bugs.launchpad .net/bugs/ 400643 doc/distroserie s|test_ breadcrumbs) " package- pages" homepage| xx-distribution -translations" implementation: beuno, barry
Diff size: 842 (500 lines are mechanical changes)
Launchpad bug: https:/
Test command: ./bin/test -vv
-t "reg.*(
-t "xx-product-
-t "xx-rosetta-
Pre-
Target release: 3.1.11
= Switch the distroseries breadcrumb from a version or a code name =
When browsing Debian packaging branches Launchpad shows a numeric identifier
in the quick menu at the top of the page.
E.g. <https:/ /launchpad. net/debian/ sid/+source/ bzr> shows
Launchpad > Debian > 98 > “bzr” package
After discussing the issue with Martin and Barry, it was decided that we
want to show the association between the version and the commonly used code
name, and we want to fix all the callsites.
== Rules ==
* The code name should be shown with the version. Since both they are gable, they should be show together and shown consistently
interchan
in this format: Codename (n.nn)
* Add named_version to the Distroseries object to ensure consistent
presentation.
* Update all places that show just the version to also show the codename
* Update places that use quotes or place the codename in parentheses to
use named_version
== QA ==
Breadcrumbs and title: /edge.launchpad .net/ubuntu/ lucid/+ source/ bzr
* Visit https:/
* Verify the breadcrumbs are:
Ubuntu >> Lucid (10.04) >> "bzr" source package
Product packaging version: /edge.launchpad .net/bzr/ +packages
* Visit https:/
* Verify the distroseries is listed as Lucid (10.04)
Translations version: edge.translatio ns.launchpad. net/ edge.translatio ns.launchpad. net/ubuntu/ lucid/+ lang/pt_ BR
* Visit http://
* Verify the distroseries is listed as Lucid (10.04)
* Visit http://
* Verify the distroseries is listed as Lucid (10.04)
Soyuz PPA version: /edge.launchpad .net/ubuntu/ +ppas
* Visit https:/
* Verify the distroseries is listed as Lucid (10.04)
== Lint ==
Linting changed files: answers/ stories/ question- answers- vhost.txt answers/ stories/ question- overview. txt registry/ browser/ configure. zcml registry/ browser/ distroseries. py registry/ browser/ tests/test_ breadcrumbs. py registry/ doc/distroserie s.txt registry/ interfaces/ distroseries. py registry/ model/distroser ies.py registry/ stories/ distribution/ xx-distribution -packages. txt registry/ stories/ distroseries/ xx-distroseries -index. txt registry/ stories/ packaging/ xx-sourcepackag e-packaging. txt registry/ stories/ product/ xx-product- package- pages.txt registry/ templates/ distribution- series. pt registry/ templates/ distroseries- details. pt registry/ templates/ product- distros. pt registry/ templates/ product- packages. pt soyuz/stories/ distroseries/ add-architectur e.txt soyuz/stories/ packaging/ package- pages-navigatio n.txt
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/so...