~launchpad-pqm/launchpad/devel

9341.1.8 by Curtis Hovey
Restored content lost in redesgin. Updated britttle tests. Removed unused pagetitles.
1
Distribution series main page
2
=============================
4903.1.1 by Carlos Perello Marin
Migrated the help translate button to point to the correct server host
3
9341.1.8 by Curtis Hovey
Restored content lost in redesgin. Updated britttle tests. Removed unused pagetitles.
4
In the main page for a distribution we have a link to help translating
5
this distribution series.
4903.1.1 by Carlos Perello Marin
Migrated the help translate button to point to the correct server host
6
7
    >>> user_browser.open('http://launchpad.dev/ubuntu/hoary')
8
    >>> user_browser.getLink('Help translate').click()
4903.1.3 by Carlos Perello Marin
Added titles checks to be sure that we reached the page we were interested on
9
    >>> print user_browser.title
9831.2.4 by Curtis Hovey
Updated templates to use distroseries.names_version in most places that version is used.
10
    Translations : Hoary (5.04) : Ubuntu
5977.1.2 by Tom Berger
allow subscribing to bug notifications for a distroseries
11
12
9444.1.6 by Celso Providelo
Fixing pagetests for distribution and distroseries indexes using the registering slot.
13
Registering information
14
-----------------------
15
16
The distroseries pages presents the 'registering' information besides
17
its main 'heading'.
18
12790.1.2 by William Grant
And DistroSeries:+index too.
19
    >>> from lp.services.features.testing import FeatureFixture
20
    >>> derivation_enabled = FeatureFixture(
7675.1155.1 by Gavin Panella
Rename soyuz.derived-series-(sync|ui).enabled flags to soyuz.derived_series_(sync|ui).enabled.
21
    ...     {'soyuz.derived_series_ui.enabled': 'on'})
12790.1.2 by William Grant
And DistroSeries:+index too.
22
    >>> with derivation_enabled:
23
    ...     anon_browser.open('http://launchpad.dev/ubuntu/warty')
9444.1.6 by Celso Providelo
Fixing pagetests for distribution and distroseries indexes using the registering slot.
24
25
    >>> print extract_text(
9557.2.6 by Curtis Hovey
updated tests to verify registration by id.
26
    ...     find_tag_by_id(anon_browser.contents, 'registration'))
7675.1070.8 by Raphael Badin
Fixed tests.
27
    Registered by
28
    Ubuntu Team on
29
    2006-10-16
9444.1.6 by Celso Providelo
Fixing pagetests for distribution and distroseries indexes using the registering slot.
30
31
    >>> print extract_text(find_main_content(anon_browser.contents))
32
    Warty
33
    ...
34
35
    >>> print anon_browser.getLink('Ubuntu Team').url
36
    http://launchpad.dev/~ubuntu-team
37
38
9341.1.8 by Curtis Hovey
Restored content lost in redesgin. Updated britttle tests. Removed unused pagetitles.
39
Details portlet
40
---------------
41
42
The distroseries page contains a details portlet giving more information
43
on the series' details.
44
9444.1.6 by Celso Providelo
Fixing pagetests for distribution and distroseries indexes using the registering slot.
45
    >>> print extract_text(
46
    ...     find_portlet(anon_browser.contents, 'Series information'))
9341.1.8 by Curtis Hovey
Restored content lost in redesgin. Updated britttle tests. Removed unused pagetitles.
47
    Series information
48
    Distribution: Ubuntu
9831.2.4 by Curtis Hovey
Updated templates to use distroseries.names_version in most places that version is used.
49
    Series: Warty (4.10)
9341.1.8 by Curtis Hovey
Restored content lost in redesgin. Updated britttle tests. Removed unused pagetitles.
50
    Project drivers: Ubuntu Team
51
    Release manager: None
52
    Status: Current Stable Release
9831.2.4 by Curtis Hovey
Updated templates to use distroseries.names_version in most places that version is used.
53
    Derives from: Warty (4.10) is not derived from another series.
13168.6.5 by Gavin Panella
Fix a bug when 'No derived series' is displayed when there are derived series.
54
    Derived series: No derived series.
9341.1.8 by Curtis Hovey
Restored content lost in redesgin. Updated britttle tests. Removed unused pagetitles.
55
    Source packages: 3
9444.1.6 by Celso Providelo
Fixing pagetests for distribution and distroseries indexes using the registering slot.
56
    Binary packages: 4
9341.1.8 by Curtis Hovey
Restored content lost in redesgin. Updated britttle tests. Removed unused pagetitles.
57
58
On series that have no source or binary packages, the portlet will
59
change its text slightly to annouce this:
60
13168.6.3 by Gavin Panella
Separate out the section on showing distroseries parents.
61
    >>> anon_browser.open('http://launchpad.dev/debian/sarge')
62
    >>> print extract_text(
63
    ...     find_portlet(anon_browser.contents, 'Series information'))
64
    Series information
65
    Distribution: Debian
66
    Series: Sarge (3.1)
67
    Project drivers: Jeff Waugh, Mark Shuttleworth
68
    Release manager: Jeff Waugh
69
    Status: Pre-release Freeze
13168.6.4 by Gavin Panella
Return the derivation-disabled display.
70
    Derives from: Woody (3.0)
13168.6.3 by Gavin Panella
Separate out the section on showing distroseries parents.
71
    Source packages: No sources imported or published.
72
    Binary packages: No binaries imported or published.
73
13168.6.4 by Gavin Panella
Return the derivation-disabled display.
74
The series' derivation parents - rather than the previous series - are
13168.6.5 by Gavin Panella
Fix a bug when 'No derived series' is displayed when there are derived series.
75
shown when derivation is enabled, as are the series derived from this
76
series:
13168.6.3 by Gavin Panella
Separate out the section on showing distroseries parents.
77
13168.6.2 by Gavin Panella
Use DSP when showing the 'Derives from:' information in the series information portlet.
78
    >>> from lp.registry.interfaces.distribution import IDistributionSet
79
    >>> from lp.testing import celebrity_logged_in
80
    >>> from zope.component import getUtility
81
82
    >>> with celebrity_logged_in("admin"):
83
    ...     debian = getUtility(IDistributionSet).getByName(u"debian")
84
    ...     sarge = debian.getSeries(u"sarge")
85
    ...     parents = [
86
    ...         factory.makeDistroSeries(name=u"dobby"),
87
    ...         factory.makeDistroSeries(name=u"knobby")]
88
    ...     distro_series_parents = [
89
    ...         factory.makeDistroSeriesParent(
90
    ...             derived_series=sarge, parent_series=parent)
91
    ...         for parent in parents]
13168.6.5 by Gavin Panella
Fix a bug when 'No derived series' is displayed when there are derived series.
92
    ...     children = [
93
    ...         factory.makeDistroSeries(name=u"bobby"),
94
    ...         factory.makeDistroSeries(name=u"tables")]
95
    ...     distro_series_children = [
96
    ...         factory.makeDistroSeriesParent(
97
    ...             derived_series=child, parent_series=sarge)
98
    ...         for child in children]
13168.6.2 by Gavin Panella
Use DSP when showing the 'Derives from:' information in the series information portlet.
99
12790.1.2 by William Grant
And DistroSeries:+index too.
100
    >>> with derivation_enabled:
101
    ...     anon_browser.open('http://launchpad.dev/debian/sarge')
9444.1.6 by Celso Providelo
Fixing pagetests for distribution and distroseries indexes using the registering slot.
102
    >>> print extract_text(
103
    ...     find_portlet(anon_browser.contents, 'Series information'))
9341.1.8 by Curtis Hovey
Restored content lost in redesgin. Updated britttle tests. Removed unused pagetitles.
104
    Series information
105
    Distribution: Debian
9831.2.4 by Curtis Hovey
Updated templates to use distroseries.names_version in most places that version is used.
106
    Series: Sarge (3.1)
9341.1.8 by Curtis Hovey
Restored content lost in redesgin. Updated britttle tests. Removed unused pagetitles.
107
    Project drivers: Jeff Waugh, Mark Shuttleworth
108
    Release manager: Jeff Waugh
109
    Status: Pre-release Freeze
13168.6.2 by Gavin Panella
Use DSP when showing the 'Derives from:' information in the series information portlet.
110
    Derives from: Dobby (...), Knobby (...)
13168.6.5 by Gavin Panella
Fix a bug when 'No derived series' is displayed when there are derived series.
111
    Derived series: Bobby (...), Tables (...)
9341.1.8 by Curtis Hovey
Restored content lost in redesgin. Updated britttle tests. Removed unused pagetitles.
112
    Source packages: No sources imported or published.
9444.1.6 by Celso Providelo
Fixing pagetests for distribution and distroseries indexes using the registering slot.
113
    Binary packages: No binaries imported or published.
9341.1.8 by Curtis Hovey
Restored content lost in redesgin. Updated britttle tests. Removed unused pagetitles.
114
115
116
Distribution series bug subscriptions
117
-------------------------------------
5977.1.2 by Tom Berger
allow subscribing to bug notifications for a distroseries
118
119
To receive email notifications about bugs pertaining to a distribution
120
series, we can create structural bug subscriptions.
121
122
    >>> admin_browser.open('http://launchpad.dev/ubuntu/warty')
123
    >>> admin_browser.getLink('Subscribe to bug mail').click()
124
    >>> print admin_browser.url
125
    http://launchpad.dev/ubuntu/warty/+subscribe
9341.1.8 by Curtis Hovey
Restored content lost in redesgin. Updated britttle tests. Removed unused pagetitles.
126
5977.1.2 by Tom Berger
allow subscribing to bug notifications for a distroseries
127
    >>> print admin_browser.title
9490.1.3 by Deryck Hodge
Fix broken tests.
128
    Subscribe to Bugs in The Warty Warthog Release
9341.1.8 by Curtis Hovey
Restored content lost in redesgin. Updated britttle tests. Removed unused pagetitles.
129
130
10326.3.2 by Brad Crittenden
Added upstream linking portlet to distroseries-index page.
131
Upstream packaging portlet
132
--------------------------
133
134
The distroseries page contains a portlet with information on the
135
upstream packaging.
136
10409.3.2 by Curtis Hovey
Factor our DistroSeriesView._unlinked_packages. Make num_unlinked_packages use
137
    >>> # Note that warty's sourcecount is stale in sample data
138
    >>> # which causes -2 need linking.
10326.3.2 by Brad Crittenden
Added upstream linking portlet to distroseries-index page.
139
    >>> anon_browser.open('http://launchpad.dev/ubuntu/warty')
140
    >>> print extract_text(
10409.3.5 by Curtis Hovey
Use the faster test method
141
    ...     find_tag_by_id(anon_browser.contents, 'series-packaging'))
10326.3.2 by Brad Crittenden
Added upstream linking portlet to distroseries-index page.
142
    Upstream packaging
143
    5 source packages are linked to registered upstream projects.
10409.3.2 by Curtis Hovey
Factor our DistroSeriesView._unlinked_packages. Make num_unlinked_packages use
144
    -2 need linking.
10326.3.2 by Brad Crittenden
Added upstream linking portlet to distroseries-index page.
145
    Recently linked to upstream:
146
    alsa-utils linked...
147
    a52dec linked...
148
    evolution linked...
149
    mozilla-firefox linked...
10409.3.1 by Curtis Hovey
Removed the needs linking section from the +portlet-package-summary.
150
    netapplet linked 2005-07-05
11128.8.9 by Edwin Grubbs
Fixed test.
151
    Needs upstream links
152
    All upstream links