Merge lp:~sinzui/launchpad/distroseries-breadcrumb-bug-400643 into lp:launchpad

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
Reviewer Review Type Date Requested Status
Brad Crittenden (community) code Approve
Review via email: mp+14657@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Curtis Hovey (sinzui) wrote :
Download full text (7.2 KiB)

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
    Diff size: 842 (500 lines are mechanical changes)
    Launchpad bug: https://bugs.launchpad.net/bugs/400643
    Test command: ./bin/test -vv
        -t "reg.*(doc/distroseries|test_breadcrumbs)"
        -t "xx-product-package-pages"
        -t "xx-rosetta-homepage|xx-distribution-translations"
    Pre-implementation: beuno, barry
    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
      interchangable, they should be show together and shown consistently
      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:
    * Visit https://edge.launchpad.net/ubuntu/lucid/+source/bzr
    * Verify the breadcrumbs are:
      Ubuntu >> Lucid (10.04) >> "bzr" source package

Product packaging version:
    * Visit https://edge.launchpad.net/bzr/+packages
    * Verify the distroseries is listed as Lucid (10.04)

Translations version:
    * Visit http://edge.translations.launchpad.net/
    * Verify the distroseries is listed as Lucid (10.04)
    * Visit http://edge.translations.launchpad.net/ubuntu/lucid/+lang/pt_BR
    * Verify the distroseries is listed as Lucid (10.04)

Soyuz PPA version:
    * Visit https://edge.launchpad.net/ubuntu/+ppas
    * Verify the distroseries is listed as Lucid (10.04)

== Lint ==

Linting changed files:
  lib/lp/answers/stories/question-answers-vhost.txt
  lib/lp/answers/stories/question-overview.txt
  lib/lp/registry/browser/configure.zcml
  lib/lp/registry/browser/distroseries.py
  lib/lp/registry/browser/tests/test_breadcrumbs.py
  lib/lp/registry/doc/distroseries.txt
  lib/lp/registry/interfaces/distroseries.py
  lib/lp/registry/model/distroseries.py
  lib/lp/registry/stories/distribution/xx-distribution-packages.txt
  lib/lp/registry/stories/distroseries/xx-distroseries-index.txt
  lib/lp/registry/stories/packaging/xx-sourcepackage-packaging.txt
  lib/lp/registry/stories/product/xx-product-package-pages.txt
  lib/lp/registry/templates/distribution-series.pt
  lib/lp/registry/templates/distroseries-details.pt
  lib/lp/registry/templates/product-distros.pt
  lib/lp/registry/templates/product-packages.pt
  lib/lp/soyuz/stories/distroseries/add-architecture.txt
  lib/lp/soyuz/stories/packaging/package-pages-navigation.txt
  lib/lp/so...

Read more...

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
=== modified file 'lib/lp/answers/stories/question-answers-vhost.txt'
--- lib/lp/answers/stories/question-answers-vhost.txt 2009-09-23 14:40:53 +0000
+++ lib/lp/answers/stories/question-answers-vhost.txt 2009-11-09 18:05:29 +0000
@@ -21,12 +21,13 @@
21 >>> anon_browser.open(21 >>> anon_browser.open(
22 ... 'http://answers.launchpad.dev/ubuntu/+source/mozilla-firefox')22 ... 'http://answers.launchpad.dev/ubuntu/+source/mozilla-firefox')
23 >>> print anon_browser.title23 >>> print anon_browser.title
24 Questions : “mozilla-firefox” package : Ubuntu24 Questions : ...mozilla-firefox... package : Ubuntu
2525
26 >>> anon_browser.open(26 >>> anon_browser.open(
27 ... 'http://answers.launchpad.dev/ubuntu/hoary/+source/mozilla-firefox')27 ... 'http://answers.launchpad.dev'
28 ... '/ubuntu/hoary/+source/mozilla-firefox')
28 >>> print anon_browser.title29 >>> print anon_browser.title
29 Questions : “mozilla-firefox” source package : 5.04 : Ubuntu30 Questions : ...mozilla-firefox... source package : Hoary (5.04) : Ubuntu
3031
31== Project ==32== Project ==
3233
3334
=== modified file 'lib/lp/answers/stories/question-overview.txt'
--- lib/lp/answers/stories/question-overview.txt 2009-10-31 15:42:37 +0000
+++ lib/lp/answers/stories/question-overview.txt 2009-11-09 18:05:29 +0000
@@ -103,8 +103,8 @@
103 >>> browser.getLink('Answers').url103 >>> browser.getLink('Answers').url
104 'http://answers.launchpad.dev/ubuntu/hoary/+source/evolution'104 'http://answers.launchpad.dev/ubuntu/hoary/+source/evolution'
105 >>> browser.getLink('Answers').click()105 >>> browser.getLink('Answers').click()
106 >>> browser.title106 >>> print browser.title
107 'Questions : \xe2\x80\x9cevolution\xe2\x80\x9d source package : 5.04 : Ubuntu'107 Questions : ...evolution... source package : Hoary (5.04) : Ubuntu
108 >>> browser.getLink('Ask a question').url108 >>> browser.getLink('Ask a question').url
109 '.../ubuntu/hoary/+source/evolution/+addquestion'109 '.../ubuntu/hoary/+source/evolution/+addquestion'
110110
111111
=== modified file 'lib/lp/registry/browser/configure.zcml'
--- lib/lp/registry/browser/configure.zcml 2009-10-26 19:47:59 +0000
+++ lib/lp/registry/browser/configure.zcml 2009-11-09 18:05:29 +0000
@@ -1876,9 +1876,6 @@
1876 name="+portlet-lifecycle"1876 name="+portlet-lifecycle"
1877 template="../templates/distribution-portlet-lifecycle.pt"/>1877 template="../templates/distribution-portlet-lifecycle.pt"/>
1878 <browser:page1878 <browser:page
1879 name="+portlet-series"
1880 template="../templates/distribution-portlet-series.pt"/>
1881 <browser:page
1882 name="+portlet-milestones"1879 name="+portlet-milestones"
1883 template="../templates/object-portlet-milestones.pt"/>1880 template="../templates/object-portlet-milestones.pt"/>
1884 </browser:pages>1881 </browser:pages>
18851882
=== modified file 'lib/lp/registry/browser/distroseries.py'
--- lib/lp/registry/browser/distroseries.py 2009-10-08 12:50:25 +0000
+++ lib/lp/registry/browser/distroseries.py 2009-11-09 18:05:29 +0000
@@ -133,7 +133,7 @@
133 """Builds a breadcrumb for an `IDistroSeries`."""133 """Builds a breadcrumb for an `IDistroSeries`."""
134 @property134 @property
135 def text(self):135 def text(self):
136 return self.context.version136 return self.context.named_version
137137
138138
139class DistroSeriesFacets(StandardLaunchpadFacets):139class DistroSeriesFacets(StandardLaunchpadFacets):
140140
=== added file 'lib/lp/registry/browser/tests/test_breadcrumbs.py'
--- lib/lp/registry/browser/tests/test_breadcrumbs.py 1970-01-01 00:00:00 +0000
+++ lib/lp/registry/browser/tests/test_breadcrumbs.py 2009-11-09 18:05:29 +0000
@@ -0,0 +1,34 @@
1# Copyright 2009 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).
3
4__metaclass__ = type
5
6import unittest
7
8from canonical.launchpad.webapp.publisher import canonical_url
9from canonical.launchpad.webapp.tests.breadcrumbs import (
10 BaseBreadcrumbTestCase)
11
12
13class TestDistroseriesBreadcrumb(BaseBreadcrumbTestCase):
14 """Test breadcrumbs for an `IDistroseries`."""
15
16 def setUp(self):
17 super(TestDistroseriesBreadcrumb, self).setUp()
18 self.distribution = self.factory.makeDistribution(
19 name='youbuntu', displayname='Youbuntu')
20 self.distroseries = self.factory.makeDistroRelease(
21 name='groovy', version="1.06", distribution=self.distribution)
22 self.distroseries_url = canonical_url(self.distroseries)
23
24 def test_distroseries(self):
25 crumbs = self._getBreadcrumbs(
26 self.distroseries_url,
27 [self.root, self.distribution, self.distroseries])
28 last_crumb = crumbs[-1]
29 self.assertEquals(
30 last_crumb.text, self.distroseries.named_version)
31
32
33def test_suite():
34 return unittest.TestLoader().loadTestsFromName(__name__)
035
=== modified file 'lib/lp/registry/doc/distroseries.txt'
--- lib/lp/registry/doc/distroseries.txt 2009-09-19 08:14:43 +0000
+++ lib/lp/registry/doc/distroseries.txt 2009-11-09 18:05:29 +0000
@@ -85,6 +85,49 @@
85 >>> all_ubuntu_releases.count()85 >>> all_ubuntu_releases.count()
86 486 4
8787
88
89Distroseries identifying attributes
90-----------------------------------
91
92A distroseries has a set of attributes that identify it. The launchpad id is
93the name attribute.
94
95 >>> print warty.name
96 warty
97
98It has a title for heading and titles...
99
100 >>> print warty.title
101 The Warty Warthog Release
102
103And a displayname for referring to it in a sentence.
104
105 >>> print warty.displayname
106 Warty
107
108The fullseriesname attribute is used when the context of the series name
109can be confused. Note that the value is created from the launchpad id names
110of the distribution and the series, though it may look like the displayname
111attributes were used.
112
113 >>> print warty.fullseriesname
114 Ubuntu Warty
115
116The version attribute holds the debversion of the series.
117
118 >>> print warty.version
119 4.10
120
121The named_version attribute is used is used to present the series displayname
122and version values consistently.
123
124 >>> print warty.named_version
125 Warty (4.10)
126
127
128Published releases
129------------------
130
88DistroSeries.getPublishedReleases:131DistroSeries.getPublishedReleases:
89132
90 >>> from lp.registry.model.distroseries import DistroSeries133 >>> from lp.registry.model.distroseries import DistroSeries
91134
=== modified file 'lib/lp/registry/interfaces/distroseries.py'
--- lib/lp/registry/interfaces/distroseries.py 2009-10-26 18:40:04 +0000
+++ lib/lp/registry/interfaces/distroseries.py 2009-11-09 18:05:29 +0000
@@ -264,6 +264,7 @@
264 Interface, # Really IDistribution, see circular import fix below.264 Interface, # Really IDistribution, see circular import fix below.
265 title=_("Distribution"), required=True,265 title=_("Distribution"), required=True,
266 description=_("The distribution for which this is a series.")))266 description=_("The distribution for which this is a series.")))
267 named_version = Attribute('The combined display name and version.')
267 parent = Attribute('The structural parent of this series - the distro')268 parent = Attribute('The structural parent of this series - the distro')
268 components = Attribute("The series components.")269 components = Attribute("The series components.")
269 upload_components = Attribute("The series components that can be "270 upload_components = Attribute("The series components that can be "
270271
=== modified file 'lib/lp/registry/model/distroseries.py'
--- lib/lp/registry/model/distroseries.py 2009-10-26 18:40:04 +0000
+++ lib/lp/registry/model/distroseries.py 2009-11-09 18:05:29 +0000
@@ -194,6 +194,10 @@
194 intermediateTable='SectionSelection')194 intermediateTable='SectionSelection')
195195
196 @property196 @property
197 def named_version(self):
198 return '%s (%s)' % (self.displayname, self.version)
199
200 @property
197 def upload_components(self):201 def upload_components(self):
198 """See `IDistroSeries`."""202 """See `IDistroSeries`."""
199 return Component.select("""203 return Component.select("""
200204
=== modified file 'lib/lp/registry/stories/distribution/xx-distribution-packages.txt'
--- lib/lp/registry/stories/distribution/xx-distribution-packages.txt 2009-11-09 13:01:13 +0000
+++ lib/lp/registry/stories/distribution/xx-distribution-packages.txt 2009-11-09 18:05:29 +0000
@@ -47,7 +47,7 @@
47 ... 'http://localhost'47 ... 'http://localhost'
48 ... '/ubuntu/breezy-autotest/+package/mozilla-firefox')48 ... '/ubuntu/breezy-autotest/+package/mozilla-firefox')
49 >>> print browser.title49 >>> print browser.title
50 mozilla-firefox : 6.6.6 : Ubuntu50 mozilla-firefox : Breezy Badger Autotest (6.6.6) : Ubuntu
5151
52Now run a search for mozilla-firefox and check that it is found:52Now run a search for mozilla-firefox and check that it is found:
5353
5454
=== modified file 'lib/lp/registry/stories/distroseries/xx-distroseries-index.txt'
--- lib/lp/registry/stories/distroseries/xx-distroseries-index.txt 2009-09-23 10:17:34 +0000
+++ lib/lp/registry/stories/distroseries/xx-distroseries-index.txt 2009-11-09 18:05:29 +0000
@@ -7,7 +7,7 @@
7 >>> user_browser.open('http://launchpad.dev/ubuntu/hoary')7 >>> user_browser.open('http://launchpad.dev/ubuntu/hoary')
8 >>> user_browser.getLink('Help translate').click()8 >>> user_browser.getLink('Help translate').click()
9 >>> print user_browser.title9 >>> print user_browser.title
10 Translations : 5.04 : Ubuntu10 Translations : Hoary (5.04) : Ubuntu
1111
1212
13Registering information13Registering information
@@ -40,11 +40,11 @@
40 ... find_portlet(anon_browser.contents, 'Series information'))40 ... find_portlet(anon_browser.contents, 'Series information'))
41 Series information41 Series information
42 Distribution: Ubuntu42 Distribution: Ubuntu
43 Series: Warty43 Series: Warty (4.10)
44 Project drivers: Ubuntu Team44 Project drivers: Ubuntu Team
45 Release manager: None45 Release manager: None
46 Status: Current Stable Release46 Status: Current Stable Release
47 Derives from: Warty is not derived from another series.47 Derives from: Warty (4.10) is not derived from another series.
48 Source packages: 348 Source packages: 3
49 Binary packages: 449 Binary packages: 4
5050
@@ -56,11 +56,11 @@
56 ... find_portlet(anon_browser.contents, 'Series information'))56 ... find_portlet(anon_browser.contents, 'Series information'))
57 Series information57 Series information
58 Distribution: Debian58 Distribution: Debian
59 Series: Sarge59 Series: Sarge (3.1)
60 Project drivers: Jeff Waugh, Mark Shuttleworth60 Project drivers: Jeff Waugh, Mark Shuttleworth
61 Release manager: Jeff Waugh61 Release manager: Jeff Waugh
62 Status: Pre-release Freeze62 Status: Pre-release Freeze
63 Derives from: Woody63 Derives from: Woody (3.0)
64 Source packages: No sources imported or published.64 Source packages: No sources imported or published.
65 Binary packages: No binaries imported or published.65 Binary packages: No binaries imported or published.
6666
6767
=== modified file 'lib/lp/registry/stories/packaging/xx-sourcepackage-packaging.txt'
--- lib/lp/registry/stories/packaging/xx-sourcepackage-packaging.txt 2009-10-16 15:00:55 +0000
+++ lib/lp/registry/stories/packaging/xx-sourcepackage-packaging.txt 2009-11-09 18:05:29 +0000
@@ -7,7 +7,8 @@
7 ... "http://launchpad.dev/ubuntu/warty/+source/mozilla/+packaging")7 ... "http://launchpad.dev/ubuntu/warty/+source/mozilla/+packaging")
88
9 >>> print_location(user_browser.contents)9 >>> print_location(user_browser.contents)
10 Hierarchy: Ubuntu > 4.10 > ...mozilla... source package > Upstream links10 Hierarchy: Ubuntu > Warty (4.10) >
11 ...mozilla... source package > Upstream links
11 Tabs:12 Tabs:
12 * Overview (selected) - http://launchpad.dev/ubuntu/warty/+source/mozilla13 * Overview (selected) - http://launchpad.dev/ubuntu/warty/+source/mozilla
13 * Branches - http://code.launchpad.dev/ubuntu/warty/+source/mozilla14 * Branches - http://code.launchpad.dev/ubuntu/warty/+source/mozilla
1415
=== modified file 'lib/lp/registry/stories/product/xx-product-package-pages.txt'
--- lib/lp/registry/stories/product/xx-product-package-pages.txt 2009-10-26 19:09:39 +0000
+++ lib/lp/registry/stories/product/xx-product-package-pages.txt 2009-11-09 18:05:29 +0000
@@ -13,7 +13,7 @@
13 >>> print extract_text(13 >>> print extract_text(
14 ... find_tag_by_id(anon_browser.contents, 'distribution-series'))14 ... find_tag_by_id(anon_browser.contents, 'distribution-series'))
15 Distribution Series Source Package Upstream Series Pack...15 Distribution Series Source Package Upstream Series Pack...
16 4.10 (Warty) evolution Evolution trunk series ...16 Warty (4.10) evolution Evolution trunk series ...
1717
18 >>> anon_browser.getLink(url='/ubuntu/warty/+source/evolution').click()18 >>> anon_browser.getLink(url='/ubuntu/warty/+source/evolution').click()
19 >>> print extract_text(19 >>> print extract_text(
@@ -32,8 +32,8 @@
32 >>> print extract_text(find_tag_by_id(32 >>> print extract_text(find_tag_by_id(
33 ... evo_owner.contents, 'packages-trunk'))33 ... evo_owner.contents, 'packages-trunk'))
34 Distribution Series Source Package Version34 Distribution Series Source Package Version
35 Ubuntu 4.10 (Warty) evolution35 Ubuntu Warty (4.10) evolution
36 Ubuntu 5.04 (Hoary) evolution 1.036 Ubuntu Hoary (5.04) evolution 1.0
3737
38 >>> evo_owner.getLink(url='/ubuntu/hoary/+source/evolution') is not None38 >>> evo_owner.getLink(url='/ubuntu/hoary/+source/evolution') is not None
39 True39 True
@@ -67,4 +67,4 @@
67 >>> print extract_text(find_tag_by_id(67 >>> print extract_text(find_tag_by_id(
68 ... evo_owner.contents, 'packages-trunk'))68 ... evo_owner.contents, 'packages-trunk'))
69 Distribution Series Source Package Version69 Distribution Series Source Package Version
70 Ubuntu 5.04 (Hoary) evolution 1.070 Ubuntu Hoary (5.04) evolution 1.0
7171
=== removed file 'lib/lp/registry/templates/distribution-portlet-series.pt'
--- lib/lp/registry/templates/distribution-portlet-series.pt 2009-10-26 18:40:04 +0000
+++ lib/lp/registry/templates/distribution-portlet-series.pt 1970-01-01 00:00:00 +0000
@@ -1,22 +0,0 @@
1<div
2 xmlns:tal="http://xml.zope.org/namespaces/tal"
3 xmlns:metal="http://xml.zope.org/namespaces/metal"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5 class="portlet" id="portlet-series"
6 tal:condition="context/series">
7 <h2>Major current versions</h2>
8 <div class="portletBody portletContent">
9 <ul class="distroseries">
10 <tal:per_series repeat="series context/series">
11 <li tal:condition="series/active">
12 <a tal:attributes="href series/fmt:url">
13 <tal:version replace="series/version" />
14 "<tal:codename replace="series/displayname" />"
15 </a>
16 - <tal:status replace="series/status/name/fmt:lower" />
17 </li>
18 </tal:per_series>
19 </ul>
20 <a href="+series">&raquo; See all versions...</a>
21 </div>
22</div>
230
=== modified file 'lib/lp/registry/templates/distribution-series.pt'
--- lib/lp/registry/templates/distribution-series.pt 2009-10-26 18:40:04 +0000
+++ lib/lp/registry/templates/distribution-series.pt 2009-11-09 18:05:29 +0000
@@ -25,16 +25,15 @@
25 tal:define="series a_styled_series/series"25 tal:define="series a_styled_series/series"
26 tal:attributes="class string:${a_styled_series/css_class} series;26 tal:attributes="class string:${a_styled_series/css_class} series;
27 id series/name/fmt:css-id/series-;">27 id series/name/fmt:css-id/series-;">
28 <strong><a tal:attributes="href series/fmt:url">28 <strong><a tal:attributes="href series/fmt:url"
29 <tal:version replace="series/version" />29 tal:content="series/named_version" /></strong>
30 "<tal:codename replace="series/displayname" />"</a></strong>
31 <em><span tal:replace="series/status/title" /></em>30 <em><span tal:replace="series/status/title" /></em>
32 <tal:derives condition="series/parent_series">31 <tal:derives condition="series/parent_series">
33 <br />Derives from32 <br />Derives from
34 <a tal:attributes="href series/parent_series/fmt:url">33 <a tal:attributes="href series/parent_series/fmt:url">
35 <tal:distro34 <tal:distro
36 replace="series/parent_series/distribution/displayname" />35 replace="series/parent_series/distribution/displayname" />
37 <tal:distroseries replace="series/parent_series/version" /></a>36 <tal:distroseries replace="series/parent_series/named_version" /></a>
38 </tal:derives>37 </tal:derives>
39 <tal:milestones38 <tal:milestones
40 define="milestones series/all_milestones"39 define="milestones series/all_milestones"
4140
=== modified file 'lib/lp/registry/templates/distroseries-details.pt'
--- lib/lp/registry/templates/distroseries-details.pt 2009-09-15 22:12:44 +0000
+++ lib/lp/registry/templates/distroseries-details.pt 2009-11-09 18:05:29 +0000
@@ -14,7 +14,7 @@
1414
15 <dl id="series-name">15 <dl id="series-name">
16 <dt>Series:</dt>16 <dt>Series:</dt>
17 <dd><tal:name replace="context/displayname" /></dd>17 <dd><tal:name replace="context/named_version" /></dd>
18 </dl>18 </dl>
1919
20 <dl id="series-drivers">20 <dl id="series-drivers">
@@ -52,9 +52,9 @@
52 <a52 <a
53 tal:condition="context/parent_series"53 tal:condition="context/parent_series"
54 tal:attributes="href context/parent_series/fmt:url"54 tal:attributes="href context/parent_series/fmt:url"
55 tal:content="context/parent_series/displayname" />55 tal:content="context/parent_series/named_version" />
56 <tal:none condition="not: context/parent_series">56 <tal:none condition="not: context/parent_series">
57 <tal:name replace="context/displayname"/> is not derived from57 <tal:name replace="context/named_version"/> is not derived from
58 another series.58 another series.
59 </tal:none>59 </tal:none>
60 </dd>60 </dd>
6161
=== modified file 'lib/lp/registry/templates/product-distros.pt'
--- lib/lp/registry/templates/product-distros.pt 2009-10-26 18:40:04 +0000
+++ lib/lp/registry/templates/product-distros.pt 2009-11-09 18:05:29 +0000
@@ -39,9 +39,8 @@
39 <tbody>39 <tbody>
40 <tr tal:repeat="pkging distro/packagings">40 <tr tal:repeat="pkging distro/packagings">
41 <td>41 <td>
42 <a tal:attributes="href pkging/distroseries/fmt:url"><tal:version42 <a tal:attributes="href pkging/distroseries/fmt:url"
43 replace="pkging/distroseries/version" />43 tal:replace="pkging/distroseries/named_version" />
44 (<tal:name replace="pkging/distroseries/displayname" />)</a>
45 </td>44 </td>
46 45
47 <td>46 <td>
4847
=== modified file 'lib/lp/registry/templates/product-packages.pt'
--- lib/lp/registry/templates/product-packages.pt 2009-11-06 21:06:38 +0000
+++ lib/lp/registry/templates/product-packages.pt 2009-11-09 18:05:29 +0000
@@ -60,9 +60,8 @@
60 </td>60 </td>
6161
62 <td>62 <td>
63 <a tal:attributes="href packaging/distroseries/fmt:url"><tal:version63 <a tal:attributes="href packaging/distroseries/fmt:url"
64 replace="packaging/distroseries/version" />64 tal:replace="packaging/distroseries/named_version" />
65 (<tal:name replace="packaging/distroseries/displayname" />)</a>
66 </td>65 </td>
6766
68 <td>67 <td>
6968
=== modified file 'lib/lp/soyuz/stories/distroseries/add-architecture.txt'
--- lib/lp/soyuz/stories/distroseries/add-architecture.txt 2009-09-18 15:42:19 +0000
+++ lib/lp/soyuz/stories/distroseries/add-architecture.txt 2009-11-09 18:05:29 +0000
@@ -25,7 +25,7 @@
25 >>> admin_browser.getControl('PPA support available').selected = True25 >>> admin_browser.getControl('PPA support available').selected = True
26 >>> admin_browser.getControl('Continue').click()26 >>> admin_browser.getControl('Continue').click()
27 >>> print admin_browser.title27 >>> print admin_browser.title
28 ia64 : 5.04 : Ubuntu28 ia64 : Hoary (5.04) : Ubuntu
2929
30Other users won't see the link nor the page where a new port can be30Other users won't see the link nor the page where a new port can be
31registered.31registered.
3232
=== modified file 'lib/lp/soyuz/stories/packaging/package-pages-navigation.txt'
--- lib/lp/soyuz/stories/packaging/package-pages-navigation.txt 2009-09-28 12:59:33 +0000
+++ lib/lp/soyuz/stories/packaging/package-pages-navigation.txt 2009-11-09 18:05:29 +0000
@@ -93,7 +93,7 @@
93 >>> anon_browser.open(93 >>> anon_browser.open(
94 ... 'http://launchpad.dev/ubuntu/hoary/+source/alsa-utils')94 ... 'http://launchpad.dev/ubuntu/hoary/+source/alsa-utils')
95 >>> print_location(anon_browser.contents)95 >>> print_location(anon_browser.contents)
96 Hierarchy: Ubuntu > 5.04 > ?alsa-utils? source package96 Hierarchy: Ubuntu > Hoary (5.04) > ?alsa-utils? source package
97 Tabs:97 Tabs:
98 * Overview (selected) - not linked98 * Overview (selected) - not linked
99 * Branches - http://code.launchpad.dev/ubuntu/hoary/+source/alsa-utils99 * Branches - http://code.launchpad.dev/ubuntu/hoary/+source/alsa-utils
@@ -109,7 +109,7 @@
109 >>> anon_browser.open(109 >>> anon_browser.open(
110 ... 'http://answers.launchpad.dev/ubuntu/hoary/+source/alsa-utils')110 ... 'http://answers.launchpad.dev/ubuntu/hoary/+source/alsa-utils')
111 >>> print_location(anon_browser.contents)111 >>> print_location(anon_browser.contents)
112 Hierarchy: Ubuntu > 5.04 > ?alsa-utils? source package > Questions112 Hierarchy: Ubuntu > Hoary (5.04) > ?alsa-utils? source package > Questions
113 Tabs:113 Tabs:
114 * Overview - http://launchpad.dev/ubuntu/hoary/+source/alsa-utils114 * Overview - http://launchpad.dev/ubuntu/hoary/+source/alsa-utils
115 * Branches - http://code.launchpad.dev/ubuntu/hoary/+source/alsa-utils115 * Branches - http://code.launchpad.dev/ubuntu/hoary/+source/alsa-utils
@@ -131,7 +131,7 @@
131 ... 'http://launchpad.dev/ubuntu/hoary/'131 ... 'http://launchpad.dev/ubuntu/hoary/'
132 ... '+source/alsa-utils/1.0.9a-4ubuntu1')132 ... '+source/alsa-utils/1.0.9a-4ubuntu1')
133 >>> print_location(anon_browser.contents)133 >>> print_location(anon_browser.contents)
134 Hierarchy: Ubuntu > 5.04 > ?alsa-utils? source package134 Hierarchy: Ubuntu > Hoary (5.04) > ?alsa-utils? source package
135 Tabs:135 Tabs:
136 * Overview (selected) - http://launchpad.dev/ubuntu/hoary/+source/alsa-utils136 * Overview (selected) - http://launchpad.dev/ubuntu/hoary/+source/alsa-utils
137 * Branches - http://code.launchpad.dev/ubuntu/hoary/+source/alsa-utils137 * Branches - http://code.launchpad.dev/ubuntu/hoary/+source/alsa-utils
@@ -150,7 +150,7 @@
150150
151 >>> anon_browser.open('http://launchpad.dev/ubuntu/hoary/i386')151 >>> anon_browser.open('http://launchpad.dev/ubuntu/hoary/i386')
152 >>> print_location(anon_browser.contents)152 >>> print_location(anon_browser.contents)
153 Hierarchy: Ubuntu > 5.04 > i386153 Hierarchy: Ubuntu > Hoary (5.04) > i386
154 Tabs:154 Tabs:
155 * Overview (selected) - http://launchpad.dev/ubuntu/hoary155 * Overview (selected) - http://launchpad.dev/ubuntu/hoary
156 * Branches - http://code.launchpad.dev/ubuntu/hoary156 * Branches - http://code.launchpad.dev/ubuntu/hoary
@@ -168,7 +168,7 @@
168168
169 >>> anon_browser.open('http://launchpad.dev/ubuntu/hoary/i386/pmount')169 >>> anon_browser.open('http://launchpad.dev/ubuntu/hoary/i386/pmount')
170 >>> print_location(anon_browser.contents)170 >>> print_location(anon_browser.contents)
171 Hierarchy: Ubuntu > 5.04 > i386 > pmount171 Hierarchy: Ubuntu > Hoary (5.04) > i386 > pmount
172 Tabs:172 Tabs:
173 * Overview (selected) - http://launchpad.dev/ubuntu/hoary173 * Overview (selected) - http://launchpad.dev/ubuntu/hoary
174 * Branches - http://code.launchpad.dev/ubuntu/hoary174 * Branches - http://code.launchpad.dev/ubuntu/hoary
@@ -187,7 +187,7 @@
187 >>> anon_browser.open(187 >>> anon_browser.open(
188 ... 'http://launchpad.dev/ubuntu/hoary/i386/pmount/0.1-1')188 ... 'http://launchpad.dev/ubuntu/hoary/i386/pmount/0.1-1')
189 >>> print_location(anon_browser.contents)189 >>> print_location(anon_browser.contents)
190 Hierarchy: Ubuntu > 5.04 > i386 > pmount > 0.1-1190 Hierarchy: Ubuntu > Hoary (5.04) > i386 > pmount > 0.1-1
191 Tabs:191 Tabs:
192 * Overview (selected) - http://launchpad.dev/ubuntu/hoary192 * Overview (selected) - http://launchpad.dev/ubuntu/hoary
193 * Branches - http://code.launchpad.dev/ubuntu/hoary193 * Branches - http://code.launchpad.dev/ubuntu/hoary
194194
=== modified file 'lib/lp/soyuz/stories/ppa/xx-ubuntu-ppas.txt'
--- lib/lp/soyuz/stories/ppa/xx-ubuntu-ppas.txt 2009-10-16 11:28:58 +0000
+++ lib/lp/soyuz/stories/ppa/xx-ubuntu-ppas.txt 2009-11-09 18:05:29 +0000
@@ -27,16 +27,8 @@
27 ... find_tag_by_id(anon_browser.contents,27 ... find_tag_by_id(anon_browser.contents,
28 ... 'supports_virtualized_architectures'))28 ... 'supports_virtualized_architectures'))
29 PPA supported series29 PPA supported series
30 5.0430 Hoary (5.04) - development i386 (official)
31 "Hoary"31 Warty (4.10) - current i386 (official)
32 - development
33 i386
34 (official)
35 4.10
36 "Warty"
37 - current
38 i386
39 (official)
4032
41The sample data contains three PPAs. Only Celso's and Mark's have33The sample data contains three PPAs. Only Celso's and Mark's have
42packages (the active ones). Altogether there 4 sources and 4 binaries34packages (the active ones). Altogether there 4 sources and 4 binaries
@@ -95,9 +87,8 @@
95 ... find_tag_by_id(anon_browser.contents,87 ... find_tag_by_id(anon_browser.contents,
96 ... 'supports_virtualized_architectures'))88 ... 'supports_virtualized_architectures'))
97 PPA supported series89 PPA supported series
98 3.1 "Sarge" - frozen90 Sarge (3.1) - frozen
99 3.0 "Woody" - current91 Woody (3.0) - current i386 (official)
100 i386 (official)
10192
102Archive and package counter are empty.93Archive and package counter are empty.
10394
10495
=== modified file 'lib/lp/soyuz/stories/soyuz/xx-distroarchseries-binpackages.txt'
--- lib/lp/soyuz/stories/soyuz/xx-distroarchseries-binpackages.txt 2009-09-18 21:00:18 +0000
+++ lib/lp/soyuz/stories/soyuz/xx-distroarchseries-binpackages.txt 2009-11-09 18:05:29 +0000
@@ -34,7 +34,7 @@
3434
35 >>> browser.getLink("0.9").click()35 >>> browser.getLink("0.9").click()
36 >>> print browser.title36 >>> print browser.title
37 0.9 : mozilla-firefox : i386 : 4.10 : Ubuntu37 0.9 : mozilla-firefox : i386 : Warty (4.10) : Ubuntu
3838
39As well as a link to the related distribution source package:39As well as a link to the related distribution source package:
4040
@@ -43,7 +43,7 @@
43 >>> browser.getLink(id="source_package").click()43 >>> browser.getLink(id="source_package").click()
44 >>> print browser.title.decode('ascii', 'ignore')44 >>> print browser.title.decode('ascii', 'ignore')
45 iceweasel package : Ubuntu45 iceweasel package : Ubuntu
46 46
47If the binary distribution does not have a current release, then the47If the binary distribution does not have a current release, then the
48link to the source package will not be present:48link to the source package will not be present:
4949
@@ -82,7 +82,7 @@
8282
83 >>> browser.getLink(url="mozilla-firefox/0.9").click()83 >>> browser.getLink(url="mozilla-firefox/0.9").click()
84 >>> print browser.title84 >>> print browser.title
85 0.9 : mozilla-firefox : i386 : 4.10 : Ubuntu85 0.9 : mozilla-firefox : i386 : Warty (4.10) : Ubuntu
8686
87This page represents an IDistroArchSeriesBinaryPackageRelease and is87This page represents an IDistroArchSeriesBinaryPackageRelease and is
88able to point the user to the IDistroSeriesSourcePackageRelease which88able to point the user to the IDistroSeriesSourcePackageRelease which
@@ -146,7 +146,7 @@
146146
147 >>> browser.getLink("1.0-1").click()147 >>> browser.getLink("1.0-1").click()
148 >>> print browser.title148 >>> print browser.title
149 1.0-1 : commercialpackage : i386 : 6.6.6 : Ubuntu149 1.0-1 : commercialpackage : i386 : Breezy Badger Autotest (6.6.6) : Ubuntu
150150
151A BinaryPackageRelease once published in a DistroArchSeries is151A BinaryPackageRelease once published in a DistroArchSeries is
152represented by a DistroArchSeriesBinaryPackageRelease and easily152represented by a DistroArchSeriesBinaryPackageRelease and easily
@@ -177,7 +177,7 @@
177177
178 >>> browser.getLink("commercialpackage").click()178 >>> browser.getLink("commercialpackage").click()
179 >>> print browser.title179 >>> print browser.title
180 1.0-1 : commercialpackage : i386 : 6.6.6 : Ubuntu180 1.0-1 : commercialpackage : i386 : Breezy Badger Autotest (6.6.6) : Ubuntu
181181
182This page represents an IDistroArchSeriesBinaryPackageRelease and is182This page represents an IDistroArchSeriesBinaryPackageRelease and is
183able to point the user to the IDistroSeriesSourcePackageRelease which183able to point the user to the IDistroSeriesSourcePackageRelease which
184184
=== modified file 'lib/lp/soyuz/stories/soyuz/xx-distroarchseries.txt'
--- lib/lp/soyuz/stories/soyuz/xx-distroarchseries.txt 2009-09-18 15:42:19 +0000
+++ lib/lp/soyuz/stories/soyuz/xx-distroarchseries.txt 2009-11-09 18:05:29 +0000
@@ -16,7 +16,7 @@
16 >>> anon_browser.getLink('i386').click()16 >>> anon_browser.getLink('i386').click()
1717
18 >>> print anon_browser.title18 >>> print anon_browser.title
19 i386 : 4.10 : Ubuntu19 i386 : Warty (4.10) : Ubuntu
2020
21We present only minimal information in this page, its main feature is21We present only minimal information in this page, its main feature is
22to allow binary package searching.22to allow binary package searching.
@@ -247,7 +247,7 @@
247administrator.247administrator.
248248
249 >>> print admin_browser.title249 >>> print admin_browser.title
250 amd64 : 5.04 : Ubuntu250 amd64 : Hoary (5.04) : Ubuntu
251251
252And other users can see the just-created architecture listed in the252And other users can see the just-created architecture listed in the
253distroseries page.253distroseries page.
254254
=== modified file 'lib/lp/soyuz/stories/soyuz/xx-distroseries-binary-packages.txt'
--- lib/lp/soyuz/stories/soyuz/xx-distroseries-binary-packages.txt 2009-09-18 21:00:18 +0000
+++ lib/lp/soyuz/stories/soyuz/xx-distroseries-binary-packages.txt 2009-11-09 18:05:29 +0000
@@ -6,12 +6,12 @@
6 >>> browser.open(6 >>> browser.open(
7 ... 'http://launchpad.dev/ubuntu/warty/+package/mozilla-firefox')7 ... 'http://launchpad.dev/ubuntu/warty/+package/mozilla-firefox')
8 >>> print browser.title8 >>> print browser.title
9 mozilla-firefox : 4.10 : Ubuntu9 mozilla-firefox : Warty (4.10) : Ubuntu
1010
11 >>> main_content = find_main_content(browser.contents)11 >>> main_content = find_main_content(browser.contents)
12 >>> print extract_text(main_content)12 >>> print extract_text(main_content)
13 Binary package “mozilla-firefox” in ubuntu warty13 Binary package “mozilla-firefox” in ubuntu warty
14 Ubuntu 4.10 mozilla-firefox14 Ubuntu Warty (4.10) mozilla-firefox
15 Mozilla Firefox Web Browser15 Mozilla Firefox Web Browser
16 Mozilla Firefox Web Browser is .....16 Mozilla Firefox Web Browser is .....
17 Source package17 Source package
@@ -36,7 +36,7 @@
3636
37 >>> browser.getLink(id="source_package").click()37 >>> browser.getLink(id="source_package").click()
38 >>> browser.title38 >>> browser.title
39 '\xe2\x80\x9ciceweasel\xe2\x80\x9d source package : 4.10 : Ubuntu'39 '...iceweasel... source package : Warty (4.10) : Ubuntu'
4040
41Some DistroSeriesBinaryPackages are unpublished, in this case there is41Some DistroSeriesBinaryPackages are unpublished, in this case there is
42no link to any source package:42no link to any source package:
@@ -44,12 +44,12 @@
44 >>> browser.open(44 >>> browser.open(
45 ... 'http://launchpad.dev/ubuntu/hoary/+package/mozilla-firefox')45 ... 'http://launchpad.dev/ubuntu/hoary/+package/mozilla-firefox')
46 >>> print browser.title46 >>> print browser.title
47 mozilla-firefox : 5.04 : Ubuntu47 mozilla-firefox : Hoary (5.04) : Ubuntu
4848
49 >>> main_content = find_main_content(browser.contents)49 >>> main_content = find_main_content(browser.contents)
50 >>> print extract_text(main_content)50 >>> print extract_text(main_content)
51 Binary package “mozilla-firefox” in ubuntu hoary51 Binary package “mozilla-firefox” in ubuntu hoary
52 Ubuntu 5.04 mozilla-firefox52 Ubuntu Hoary (5.04) mozilla-firefox
53 No summary available for mozilla-firefox in ubuntu hoary.53 No summary available for mozilla-firefox in ubuntu hoary.
54 No description available for mozilla-firefox in ubuntu hoary.54 No description available for mozilla-firefox in ubuntu hoary.
55 Published versions55 Published versions
5656
=== modified file 'lib/lp/soyuz/stories/soyuz/xx-person-packages.txt'
--- lib/lp/soyuz/stories/soyuz/xx-person-packages.txt 2009-10-20 02:24:44 +0000
+++ lib/lp/soyuz/stories/soyuz/xx-person-packages.txt 2009-11-09 18:05:29 +0000
@@ -70,7 +70,7 @@
70 <Link text='Ubuntu Hoary' url='http://launchpad.dev/ubuntu/hoary/+source/cnews'>70 <Link text='Ubuntu Hoary' url='http://launchpad.dev/ubuntu/hoary/+source/cnews'>
71 >>> link.click()71 >>> link.click()
72 >>> browser.title72 >>> browser.title
73 '...cnews... package : 5.04 : Ubuntu'73 '...cnews... package : Hoary (5.04) : Ubuntu'
7474
75Same again for the third column should take us to a distribution source75Same again for the third column should take us to a distribution source
76package release page:76package release page:
7777
=== modified file 'lib/lp/soyuz/stories/soyuz/xx-sourcepackage-changelog.txt'
--- lib/lp/soyuz/stories/soyuz/xx-sourcepackage-changelog.txt 2009-09-28 12:59:33 +0000
+++ lib/lp/soyuz/stories/soyuz/xx-sourcepackage-changelog.txt 2009-11-09 18:05:29 +0000
@@ -5,7 +5,7 @@
5 >>> user_browser.open(5 >>> user_browser.open(
6 ... "http://launchpad.dev/ubuntu/hoary/+source/pmount/+changelog")6 ... "http://launchpad.dev/ubuntu/hoary/+source/pmount/+changelog")
7 >>> print_location(user_browser.contents)7 >>> print_location(user_browser.contents)
8 Hierarchy: Ubuntu > 5.04 > ...pmount... source package > Change log8 Hierarchy: Ubuntu > Hoary (5.04) > ...pmount... source package > Change log
9 Tabs:9 Tabs:
10 * Overview (selected) - http://launchpad.dev/ubuntu/hoary/+source/pmount10 * Overview (selected) - http://launchpad.dev/ubuntu/hoary/+source/pmount
11 * Branches - http://code.launchpad.dev/ubuntu/hoary/+source/pmount11 * Branches - http://code.launchpad.dev/ubuntu/hoary/+source/pmount
1212
=== modified file 'lib/lp/soyuz/templates/distribution-portlet-ppa-architectures.pt'
--- lib/lp/soyuz/templates/distribution-portlet-ppa-architectures.pt 2009-10-26 18:40:04 +0000
+++ lib/lp/soyuz/templates/distribution-portlet-ppa-architectures.pt 2009-11-09 18:05:29 +0000
@@ -12,12 +12,9 @@
12 <tal:per_series repeat="series series">12 <tal:per_series repeat="series series">
13 <li tal:condition="series/active">13 <li tal:condition="series/active">
14 <a class="sprite distribution"14 <a class="sprite distribution"
15 tal:attributes="href series/fmt:url">15 tal:attributes="href series/fmt:url"
16 <tal:version replace="series/version" />16 tal:content="series/named_version" />
17 "<tal:codename replace="series/displayname" />"
18 </a>
19 - <tal:status replace="series/status/name/fmt:lower" />17 - <tal:status replace="series/status/name/fmt:lower" />
20
21 <ul tal:define="archs series/virtualized_architectures"18 <ul tal:define="archs series/virtualized_architectures"
22 tal:condition="archs">19 tal:condition="archs">
23 <li class="sprite" tal:repeat="arch archs">20 <li class="sprite" tal:repeat="arch archs">
2421
=== modified file 'lib/lp/translations/browser/tests/test_breadcrumbs.py'
--- lib/lp/translations/browser/tests/test_breadcrumbs.py 2009-09-17 19:05:29 +0000
+++ lib/lp/translations/browser/tests/test_breadcrumbs.py 2009-11-09 18:05:29 +0000
@@ -81,7 +81,7 @@
81 ['http://launchpad.dev/crumb-tester',81 ['http://launchpad.dev/crumb-tester',
82 'http://launchpad.dev/crumb-tester/test',82 'http://launchpad.dev/crumb-tester/test',
83 'http://translations.launchpad.dev/crumb-tester/test'],83 'http://translations.launchpad.dev/crumb-tester/test'],
84 ["Crumb Tester", "1.0", "Translations"])84 ["Crumb Tester", "Test (1.0)", "Translations"])
8585
86 def test_project(self):86 def test_project(self):
87 project = self.factory.makeProject(87 project = self.factory.makeProject(
@@ -142,7 +142,7 @@
142 "http://launchpad.dev/crumb-tester/test",142 "http://launchpad.dev/crumb-tester/test",
143 "http://translations.launchpad.dev/crumb-tester/test",143 "http://translations.launchpad.dev/crumb-tester/test",
144 "http://translations.launchpad.dev/crumb-tester/test/+lang/sr"],144 "http://translations.launchpad.dev/crumb-tester/test/+lang/sr"],
145 ["Crumb Tester", "1.0", "Translations", "Serbian (sr)"])145 ["Crumb Tester", "Test (1.0)", "Translations", "Serbian (sr)"])
146146
147 def test_productserieslanguage(self):147 def test_productserieslanguage(self):
148 product = self.factory.makeProduct(148 product = self.factory.makeProduct(
149149
=== modified file 'lib/lp/translations/stories/distribution/xx-distribution-translations.txt'
--- lib/lp/translations/stories/distribution/xx-distribution-translations.txt 2009-09-15 05:45:10 +0000
+++ lib/lp/translations/stories/distribution/xx-distribution-translations.txt 2009-11-09 18:05:29 +0000
@@ -56,18 +56,18 @@
56 Other versions of Ubuntu56 Other versions of Ubuntu
5757
58 >>> print extract_text(content.find(id='distroseries-list'))58 >>> print extract_text(content.find(id='distroseries-list'))
59 6.6.6 Breezy Badger Autotest59 Breezy Badger Autotest (6.6.6)
60 5.10 The Grumpy Groundhog Release60 Grumpy (5.10)
61 4.10 The Warty Warthog Release61 Warty (4.10)
6262
63We are not showing its translation status here, so we should have63We are not showing its translation status here, so we should have
64links to their particular translation status.64links to their particular translation status.
6565
66 >>> print browser.getLink('6.6.6 Breezy Badger Autotest').url66 >>> print browser.getLink('Breezy Badger Autotest (6.6.6)').url
67 http://translations.launchpad.dev/ubuntu/breezy-autotest67 http://translations.launchpad.dev/ubuntu/breezy-autotest
68 >>> print browser.getLink('5.10 The Grumpy Groundhog Release').url68 >>> print browser.getLink('Grumpy (5.10)').url
69 http://translations.launchpad.dev/ubuntu/grumpy69 http://translations.launchpad.dev/ubuntu/grumpy
70 >>> print browser.getLink('4.10 The Warty Warthog Release').url70 >>> print browser.getLink('Warty (4.10)').url
71 http://translations.launchpad.dev/ubuntu/warty71 http://translations.launchpad.dev/ubuntu/warty
7272
73But we are already showing the status for the translation focus one,73But we are already showing the status for the translation focus one,
@@ -98,15 +98,15 @@
98 Other versions of Debian98 Other versions of Debian
9999
100 >>> print extract_text(content.find(id='distroseries-list'))100 >>> print extract_text(content.find(id='distroseries-list'))
101 3.2 Sid101 Sid (3.2)
102 3.0 WOODY102 Woody (3.0)
103103
104We are not showing its translation status here, so we should have104We are not showing its translation status here, so we should have
105links to their particular translation status.105links to their particular translation status.
106106
107 >>> print browser.getLink('3.2 Sid').url107 >>> print browser.getLink('Sid (3.2)').url
108 http://translations.launchpad.dev/debian/sid108 http://translations.launchpad.dev/debian/sid
109 >>> print browser.getLink('3.0 WOODY').url109 >>> print browser.getLink('Woody (3.0)').url
110 http://translations.launchpad.dev/debian/woody110 http://translations.launchpad.dev/debian/woody
111111
112But we are already showing the status for the translation focus one,112But we are already showing the status for the translation focus one,
113113
=== modified file 'lib/lp/translations/stories/standalone/xx-pofile-translate-message-filtering.txt'
--- lib/lp/translations/stories/standalone/xx-pofile-translate-message-filtering.txt 2009-09-17 10:25:48 +0000
+++ lib/lp/translations/stories/standalone/xx-pofile-translate-message-filtering.txt 2009-11-09 18:05:29 +0000
@@ -45,7 +45,7 @@
45 ... '+source/evolution/+pots/evolution-2.2/es/+translate')45 ... '+source/evolution/+pots/evolution-2.2/es/+translate')
46 >>> print user_browser.title46 >>> print user_browser.title
47 Spanish (es) : Template ...evolution-2.2... : ...evolution... package :47 Spanish (es) : Template ...evolution-2.2... : ...evolution... package :
48 Translations : 5.04 : Ubuntu48 Translations : Hoary (5.04) : Ubuntu
4949
50He can see that there are 22 messages.50He can see that there are 22 messages.
5151
@@ -121,7 +121,7 @@
121 >>> user_browser.getControl('Change').click()121 >>> user_browser.getControl('Change').click()
122 >>> print user_browser.title122 >>> print user_browser.title
123 English (Australia) (en_AU) : Template ...evolution-2.2... :123 English (Australia) (en_AU) : Template ...evolution-2.2... :
124 ...evolution... package : Translations : 5.04 : Ubuntu124 ...evolution... package : Translations : Hoary (5.04) : Ubuntu
125125
126 >>> contents = find_main_content(user_browser.contents)126 >>> contents = find_main_content(user_browser.contents)
127 >>> print_batch_header(contents)127 >>> print_batch_header(contents)
128128
=== modified file 'lib/lp/translations/stories/standalone/xx-rosetta-homepage.txt'
--- lib/lp/translations/stories/standalone/xx-rosetta-homepage.txt 2009-09-11 16:40:52 +0000
+++ lib/lp/translations/stories/standalone/xx-rosetta-homepage.txt 2009-11-09 18:05:29 +0000
@@ -11,7 +11,7 @@
11 ... browser.contents, 'three column left')[0]11 ... browser.contents, 'three column left')[0]
12 >>> print extract_text(left_column)12 >>> print extract_text(left_column)
13 Translatable operating systems13 Translatable operating systems
14 Ubuntu 5.0414 Ubuntu Hoary (5.04)
1515
16The middle lists translatable products, Evolution is one of most16The middle lists translatable products, Evolution is one of most
17translated projects.17translated projects.
1818
=== modified file 'lib/lp/translations/stories/standalone/xx-rosetta-pofile-export.txt'
--- lib/lp/translations/stories/standalone/xx-rosetta-pofile-export.txt 2009-09-18 15:42:19 +0000
+++ lib/lp/translations/stories/standalone/xx-rosetta-pofile-export.txt 2009-11-09 18:05:29 +0000
@@ -17,9 +17,9 @@
17 ... '/+source/evolution/+pots/evolution-2.2/es')17 ... '/+source/evolution/+pots/evolution-2.2/es')
18 >>> user_browser.getLink('Download').click()18 >>> user_browser.getLink('Download').click()
1919
20 >>> user_browser.title20 >>> print user_browser.title
21 'Download translation : Spanish (es)...21 Download translation : Spanish (es)...
22 ...evolution... package : Translations : 5.04 : Ubuntu'22 ...evolution... package : Translations : Hoary (5.04) : Ubuntu
2323
24 >>> print find_main_content(user_browser.contents)24 >>> print find_main_content(user_browser.contents)
25 <...25 <...
2626
=== modified file 'lib/lp/translations/stories/standalone/xx-rosetta-potemplate-index.txt'
--- lib/lp/translations/stories/standalone/xx-rosetta-potemplate-index.txt 2009-09-17 10:22:14 +0000
+++ lib/lp/translations/stories/standalone/xx-rosetta-potemplate-index.txt 2009-11-09 18:05:29 +0000
@@ -6,8 +6,9 @@
66
7 >>> anon_browser.open("http://translations.launchpad.dev/"7 >>> anon_browser.open("http://translations.launchpad.dev/"
8 ... "ubuntu/hoary/+source/evolution/+pots/evolution-2.2/")8 ... "ubuntu/hoary/+source/evolution/+pots/evolution-2.2/")
9 >>> anon_browser.title9 >>> print anon_browser.title
10 'Template ...evolution-2.2... : ...evolution... package : Translations : 5.04 : Ubuntu'10 Template ...evolution-2.2... :
11 ...evolution... package : Translations : Hoary (5.04) : Ubuntu
1112
12The owner of the template is diplayed.13The owner of the template is diplayed.
1314
1415
=== modified file 'lib/lp/translations/stories/standalone/xx-rosetta-sourcepackage-list.txt'
--- lib/lp/translations/stories/standalone/xx-rosetta-sourcepackage-list.txt 2009-09-17 21:36:38 +0000
+++ lib/lp/translations/stories/standalone/xx-rosetta-sourcepackage-list.txt 2009-11-09 18:05:29 +0000
@@ -8,7 +8,7 @@
8 ... 'http://translations.launchpad.dev/ubuntu/hoary/'8 ... 'http://translations.launchpad.dev/ubuntu/hoary/'
9 ... '+source/evolution')9 ... '+source/evolution')
10 >>> anon_browser.title10 >>> anon_browser.title
11 '...evolution...package : Translations : 5.04 : Ubuntu'11 '...evolution...package : Translations : Hoary (5.04) : Ubuntu'
1212
13 >>> content = find_main_content(anon_browser.contents)13 >>> content = find_main_content(anon_browser.contents)
14 >>> print extract_text(content.findAll('h1')[0]).encode(14 >>> print extract_text(content.findAll('h1')[0]).encode(
1515
=== modified file 'lib/lp/translations/templates/distribution-translations.pt'
--- lib/lp/translations/templates/distribution-translations.pt 2009-10-26 18:40:04 +0000
+++ lib/lp/translations/templates/distribution-translations.pt 2009-11-09 18:05:29 +0000
@@ -73,9 +73,7 @@
73 <ul id="distroseries-list">73 <ul id="distroseries-list">
74 <li tal:repeat="distroseries view/secondary_translatable_series">74 <li tal:repeat="distroseries view/secondary_translatable_series">
75 <a tal:attributes="href distroseries/fmt:url"75 <a tal:attributes="href distroseries/fmt:url"
76 tal:content=76 tal:content="distroseries/named_version">Hoary (5.04)</a>
77 "string: ${distroseries/version} ${distroseries/title}"
78 >5.04 The Hoary Hedgehog Release</a>
79 </li>77 </li>
80 </ul>78 </ul>
81 </tal:secondary>79 </tal:secondary>
8280
=== modified file 'lib/lp/translations/templates/rosetta-index.pt'
--- lib/lp/translations/templates/rosetta-index.pt 2009-09-11 16:40:52 +0000
+++ lib/lp/translations/templates/rosetta-index.pt 2009-11-09 18:05:29 +0000
@@ -43,15 +43,7 @@
43 <li tal:repeat="distroseries context/translatable_distroseriess">43 <li tal:repeat="distroseries context/translatable_distroseriess">
44 <a tal:attributes="href string:/${distroseries/distribution/name}/${distroseries/name}/+translations">44 <a tal:attributes="href string:/${distroseries/distribution/name}/${distroseries/name}/+translations">
45 <tal:distroname replace="distroseries/distribution/displayname" />45 <tal:distroname replace="distroseries/distribution/displayname" />
46 <tal:version46 <tal:version replace="distroseries/named_version" /></a>
47 condition="distroseries/version"
48 replace="distroseries/version"
49 />
50 <tal:codename
51 condition="not:distroseries/version"
52 replace="distroseries/title"
53 />
54 </a>
55 </li>47 </li>
56 </ul>48 </ul>
57 </div>49 </div>