Merge lp:~rvb/launchpad/db-distroseries-migrate-owner-to-registrant into lp:launchpad/db-devel
- db-distroseries-migrate-owner-to-registrant
- Merge into db-devel
Status: | Merged |
---|---|
Approved by: | Raphaël Badin |
Approved revision: | no longer in the source branch. |
Merged at revision: | 10320 |
Proposed branch: | lp:~rvb/launchpad/db-distroseries-migrate-owner-to-registrant |
Merge into: | lp:launchpad/db-devel |
Diff against target: |
764 lines (+165/-188) 24 files modified
database/sampledata/current-dev.sql (+14/-14) database/sampledata/current.sql (+14/-14) database/schema/comments.sql (+1/-1) database/schema/patch-2208-56-0.sql (+32/-0) lib/canonical/launchpad/pagetests/basics/notfound-traversals.txt (+1/-1) lib/canonical/launchpad/security.py (+9/-9) lib/lp/registry/browser/configure.zcml (+0/-7) lib/lp/registry/browser/distroseries.py (+4/-9) lib/lp/registry/configure.zcml (+1/-1) lib/lp/registry/doc/distroseries.txt (+8/-4) lib/lp/registry/interfaces/distribution.py (+1/-1) lib/lp/registry/interfaces/distroseries.py (+7/-2) lib/lp/registry/model/distribution.py (+5/-4) lib/lp/registry/model/distroseries.py (+8/-3) lib/lp/registry/stories/distroseries/xx-distroseries-index.txt (+3/-1) lib/lp/registry/stories/distroseries/xx-reassign-distroseries.txt (+0/-72) lib/lp/registry/stories/webservice/xx-distroseries.txt (+2/-1) lib/lp/registry/templates/distroseries-index.pt (+2/-5) lib/lp/registry/tests/test_distribution.py (+1/-1) lib/lp/registry/tests/test_distroseries.py (+9/-0) lib/lp/soyuz/doc/distroseriesqueue-translations.txt (+30/-30) lib/lp/testing/factory.py (+5/-2) lib/lp/translations/browser/tests/test_sharing_information.py (+6/-4) utilities/soyuz-sampledata-setup.py (+2/-2) |
To merge this branch: | bzr merge lp:~rvb/launchpad/db-distroseries-migrate-owner-to-registrant |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | db | Approve | |
Curtis Hovey (community) | code | Approve | |
Julian Edwards (community) | Approve | ||
Robert Collins | db | Pending | |
Review via email: mp+53770@code.launchpad.net |
Commit message
[r=julian-
Description of the change
This branch normalise the usage of the fields 'registrant' and 'owner' for distroseries.
The 'registrant' is a read only field (the person who registered the distroseries with basically no power).
The 'owner' is the real person managing the object. The attribute mirrors the owner of the
distribution (the delegated manager will be the 'driver').
Raphaël Badin (rvb) wrote : | # |
1. Fixed the db patch (is there a way to rename a constraint?).
2. Fixed formatting.
Curtis Hovey (sinzui) wrote : | # |
This looks good to land. We can certainly reuse this approach to fix productseries this year.
Stuart Bishop (stub) wrote : | # |
patch-2208-53-0.sql has already been landed, adding a new registrant column but not dropping the old owner column.
If we don't want the owner column, we need a patch that drops the owner column. We can't back out db-patches once they land without screwing up the staging server.
Stuart Bishop (stub) wrote : | # |
Note to self - don't review when sick.
The patch is actually fine - the patch I thought was conflicting was on Distribution, not DistroSeries.
Please rename the existing index too:
ALTER INDEX distroseries_
And while you are there, we can tidy up some old misnamed indexes too:
ALTER INDEX distrorelease_pkey RENAME TO distroseries_pkey;
ALTER INDEX distrorelease_
ALTER INDEX distrorelease_
patch-2208-56-0.sql
Preview Diff
1 | === modified file 'database/sampledata/current-dev.sql' | |||
2 | --- database/sampledata/current-dev.sql 2011-03-15 15:51:58 +0000 | |||
3 | +++ database/sampledata/current-dev.sql 2011-03-18 11:21:43 +0000 | |||
4 | @@ -1885,20 +1885,20 @@ | |||
5 | 1885 | 1885 | ||
6 | 1886 | ALTER TABLE distroseries DISABLE TRIGGER ALL; | 1886 | ALTER TABLE distroseries DISABLE TRIGGER ALL; |
7 | 1887 | 1887 | ||
22 | 1888 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (1, 1, 'warty', 'The Warty Warthog Release', 'Warty was the first stable release of Ubuntu. Key feature goals included releasing on time, with the latest version of the Gnome Desktop Environment, and the creation of all the infrastructure required to manage Ubuntu itself. Warty includes excellent support for Python, with most of the widely used Python libraries installed by default.', '4.10', 4, '2004-08-20 00:00:00', NULL, 17, 'Warty is the first release of Ubuntu, with a planned release date of October 2004.', 'Warty', NULL, 0, 1, 'warty-changes@ubuntu.com', 4, 3, NULL, '2006-10-16 18:31:43.475428', false, false, NULL, NULL, NULL, false); | 1888 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (1, 1, 'warty', 'The Warty Warthog Release', 'Warty was the first stable release of Ubuntu. Key feature goals included releasing on time, with the latest version of the Gnome Desktop Environment, and the creation of all the infrastructure required to manage Ubuntu itself. Warty includes excellent support for Python, with most of the widely used Python libraries installed by default.', '4.10', 4, '2004-08-20 00:00:00', NULL, 'Warty is the first release of Ubuntu, with a planned release date of October 2004.', 'Warty', NULL, 0, 1, 'warty-changes@ubuntu.com', 4, 3, NULL, '2006-10-16 18:31:43.475428', false, false, NULL, NULL, NULL, false, 17); |
23 | 1889 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (2, 2, 'six', 'Six Six Six', 'some text to describe the whole 666 release of RH', '6.0.1', 4, '2004-03-21 00:00:00', NULL, 8, 'some text to describe the whole 666 release of RH', 'Six', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.482603', false, false, NULL, NULL, NULL, false); | 1889 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (2, 2, 'six', 'Six Six Six', 'some text to describe the whole 666 release of RH', '6.0.1', 4, '2004-03-21 00:00:00', NULL, 'some text to describe the whole 666 release of RH', 'Six', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.482603', false, false, NULL, NULL, NULL, false, 8); |
24 | 1890 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (3, 1, 'hoary', 'The Hoary Hedgehog Release', 'Hoary is the second release of Ubuntu. Key feature goals include the integration of Hoary with the Launchpad for bugs and translation information, as well as Gnome 2.10 and the X.org window system.', '5.04', 2, NULL, 1, 1, 'Hoary is the second released of Ubuntu, with release planned for April 2005.', 'Hoary', NULL, 96, 6, 'hoary-changes@ubuntu.com', 1, 4, NULL, '2006-10-16 18:31:43.483559', false, false, NULL, NULL, NULL, false); | 1890 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (3, 1, 'hoary', 'The Hoary Hedgehog Release', 'Hoary is the second release of Ubuntu. Key feature goals include the integration of Hoary with the Launchpad for bugs and translation information, as well as Gnome 2.10 and the X.org window system.', '5.04', 2, NULL, 1, 'Hoary is the second released of Ubuntu, with release planned for April 2005.', 'Hoary', NULL, 96, 6, 'hoary-changes@ubuntu.com', 1, 4, NULL, '2006-10-16 18:31:43.483559', false, false, NULL, NULL, NULL, false, 1); |
25 | 1891 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (4, 2, '7.0', 'Seven', 'The release that we would not expect', '7.0.1', 3, NULL, 2, 7, 'The release that we would not expect', '7.0', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.484426', false, false, NULL, NULL, NULL, false); | 1891 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (4, 2, '7.0', 'Seven', 'The release that we would not expect', '7.0.1', 3, NULL, 2, 'The release that we would not expect', '7.0', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.484426', false, false, NULL, NULL, NULL, false, 7); |
26 | 1892 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (5, 1, 'grumpy', 'The Grumpy Groundhog Release', 'Grumpy, the third release of Ubuntu Linux, is not yet in active development. This information is purely a placeholder.', '5.10', 1, NULL, 1, 1, 'Grumpy is the third release of Ubuntu, planned for October 2005.', 'Grumpy', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.485233', false, false, NULL, NULL, NULL, false); | 1892 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (5, 1, 'grumpy', 'The Grumpy Groundhog Release', 'Grumpy, the third release of Ubuntu Linux, is not yet in active development. This information is purely a placeholder.', '5.10', 1, NULL, 1, 'Grumpy is the third release of Ubuntu, planned for October 2005.', 'Grumpy', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.485233', false, false, NULL, NULL, NULL, false, 1); |
27 | 1893 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (6, 3, 'woody', 'WOODY', 'WOODY is the current stable verison of Debian GNU/Linux', '3.0', 4, '2003-01-01 00:00:00', NULL, 2, 'WOODY is the current stable verison of Debian GNU/Linux', 'Woody', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.486054', false, false, NULL, NULL, NULL, false); | 1893 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (6, 3, 'woody', 'WOODY', 'WOODY is the current stable verison of Debian GNU/Linux', '3.0', 4, '2003-01-01 00:00:00', NULL, 'WOODY is the current stable verison of Debian GNU/Linux', 'Woody', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.486054', false, false, NULL, NULL, NULL, false, 2); |
28 | 1894 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (7, 3, 'sarge', 'Sarge', 'Sarge is the FROZEN unstable version of Debian GNU/Linux.', '3.1', 3, NULL, 6, 5, 'Sarge is the FROZEN unstable version of Debian GNU/Linux.', 'Sarge', NULL, 0, NULL, NULL, 0, 0, 6, '2006-10-16 18:31:43.486972', false, false, NULL, NULL, NULL, false); | 1894 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (7, 3, 'sarge', 'Sarge', 'Sarge is the FROZEN unstable version of Debian GNU/Linux.', '3.1', 3, NULL, 6, 'Sarge is the FROZEN unstable version of Debian GNU/Linux.', 'Sarge', NULL, 0, NULL, NULL, 0, 0, 6, '2006-10-16 18:31:43.486972', false, false, NULL, NULL, NULL, false, 5); |
29 | 1895 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (8, 3, 'sid', 'Sid', 'Sid is the CRAZY unstable version of Debian GNU/Linux.', '3.2', 1, NULL, 6, 6, 'Sid is the CRAZY unstable version of Debian GNU/Linux.', 'Sid', NULL, 0, NULL, NULL, 0, 1, NULL, '2006-10-16 18:31:43.487779', false, false, NULL, NULL, NULL, false); | 1895 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (8, 3, 'sid', 'Sid', 'Sid is the CRAZY unstable version of Debian GNU/Linux.', '3.2', 1, NULL, 6, 'Sid is the CRAZY unstable version of Debian GNU/Linux.', 'Sid', NULL, 0, NULL, NULL, 0, 1, NULL, '2006-10-16 18:31:43.487779', false, false, NULL, NULL, NULL, false, 6); |
30 | 1896 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (9, 7, '2k5', 'Guada 2005', 'This release places extra emphasis on usability and installability. The installer is adapted from Ubuntu to assume your country, language, keyboard and time zone preference, thus ensuring that installs ask the minimum number of questions possible.', '2005', 2, NULL, 3, 4, 'Guada 2005 is a rapid-install version of | 1896 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (9, 7, '2k5', 'Guada 2005', 'This release places extra emphasis on usability and installability. The installer is adapted from Ubuntu to assume your country, language, keyboard and time zone preference, thus ensuring that installs ask the minimum number of questions possible.', '2005', 2, NULL, 3, 'Guada 2005 is a rapid-install version of |
31 | 1897 | Ubuntu Hoary for the Andalucian marketplace.', 'Guada2005', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.488598', false, false, NULL, NULL, NULL, false); | 1897 | Ubuntu Hoary for the Andalucian marketplace.', 'Guada2005', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.488598', false, false, NULL, NULL, NULL, false, 4); |
32 | 1898 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (10, 1, 'breezy-autotest', 'Breezy Badger Autotest', 'Autotest version of Breezy', '6.6.6', 1, NULL, 3, 1, 'Autosync uploader test', 'Breezy Badger Autotest', NULL, 0, 8, 'autotest_changes@ubuntu.com', 0, 0, NULL, '2006-10-16 18:31:43.489468', false, false, NULL, NULL, NULL, false); | 1898 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (10, 1, 'breezy-autotest', 'Breezy Badger Autotest', 'Autotest version of Breezy', '6.6.6', 1, NULL, 3, 'Autosync uploader test', 'Breezy Badger Autotest', NULL, 0, 8, 'autotest_changes@ubuntu.com', 0, 0, NULL, '2006-10-16 18:31:43.489468', false, false, NULL, NULL, NULL, false, 1); |
33 | 1899 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (11, 8, 'breezy-autotest', 'Breezy Badger Autotest', 'Autotest version of Breezy', '6.6.6', 1, NULL, 1, 1, 'Autosync uploader test', 'Breezy Badger Autotest', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.490333', false, false, NULL, NULL, NULL, false); | 1899 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (11, 8, 'breezy-autotest', 'Breezy Badger Autotest', 'Autotest version of Breezy', '6.6.6', 1, NULL, 1, 'Autosync uploader test', 'Breezy Badger Autotest', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.490333', false, false, NULL, NULL, NULL, false, 1); |
34 | 1900 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (12, 5, 'krunch', 'The Krunchy Kangaroo', 'The archive split allows us to use different kernel settings for Kubuntu, as well as make other pervasive low-level fixes, and release on our own schedule.', '8.06', 1, NULL, 3, 1, 'This is the first experimental release of Kubuntu that uses a separate archive from the main Ubuntu release.', 'Krunch', NULL, 0, NULL, NULL, 0, 0, 33, '2006-10-16 18:31:43.491929', false, false, NULL, NULL, NULL, false); | 1900 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (12, 5, 'krunch', 'The Krunchy Kangaroo', 'The archive split allows us to use different kernel settings for Kubuntu, as well as make other pervasive low-level fixes, and release on our own schedule.', '8.06', 1, NULL, 3, 'This is the first experimental release of Kubuntu that uses a separate archive from the main Ubuntu release.', 'Krunch', NULL, 0, NULL, NULL, 0, 0, 33, '2006-10-16 18:31:43.491929', false, false, NULL, NULL, NULL, false, 1); |
35 | 1901 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (13, 8, 'hoary-test', 'Mock Hoary', 'nothing special', '9.9.9', 1, NULL, 1, 1, 'summmmmmmary', 'Hoary Mock', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.492845', false, false, NULL, NULL, NULL, false); | 1901 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (13, 8, 'hoary-test', 'Mock Hoary', 'nothing special', '9.9.9', 1, NULL, 1, 'summmmmmmary', 'Hoary Mock', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.492845', false, false, NULL, NULL, NULL, false, 1); |
36 | 1902 | 1902 | ||
37 | 1903 | 1903 | ||
38 | 1904 | ALTER TABLE distroseries ENABLE TRIGGER ALL; | 1904 | ALTER TABLE distroseries ENABLE TRIGGER ALL; |
39 | 1905 | 1905 | ||
40 | === modified file 'database/sampledata/current.sql' | |||
41 | --- database/sampledata/current.sql 2011-03-15 15:51:58 +0000 | |||
42 | +++ database/sampledata/current.sql 2011-03-18 11:21:43 +0000 | |||
43 | @@ -1885,20 +1885,20 @@ | |||
44 | 1885 | 1885 | ||
45 | 1886 | ALTER TABLE distroseries DISABLE TRIGGER ALL; | 1886 | ALTER TABLE distroseries DISABLE TRIGGER ALL; |
46 | 1887 | 1887 | ||
61 | 1888 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (1, 1, 'warty', 'The Warty Warthog Release', 'Warty was the first stable release of Ubuntu. Key feature goals included releasing on time, with the latest version of the Gnome Desktop Environment, and the creation of all the infrastructure required to manage Ubuntu itself. Warty includes excellent support for Python, with most of the widely used Python libraries installed by default.', '4.10', 4, '2004-08-20 00:00:00', NULL, 17, 'Warty is the first release of Ubuntu, with a planned release date of October 2004.', 'Warty', NULL, 0, 1, 'warty-changes@ubuntu.com', 4, 3, NULL, '2006-10-16 18:31:43.475428', false, false, NULL, NULL, NULL, false); | 1888 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (1, 1, 'warty', 'The Warty Warthog Release', 'Warty was the first stable release of Ubuntu. Key feature goals included releasing on time, with the latest version of the Gnome Desktop Environment, and the creation of all the infrastructure required to manage Ubuntu itself. Warty includes excellent support for Python, with most of the widely used Python libraries installed by default.', '4.10', 4, '2004-08-20 00:00:00', NULL, 'Warty is the first release of Ubuntu, with a planned release date of October 2004.', 'Warty', NULL, 0, 1, 'warty-changes@ubuntu.com', 4, 3, NULL, '2006-10-16 18:31:43.475428', false, false, NULL, NULL, NULL, false, 17); |
62 | 1889 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (2, 2, 'six', 'Six Six Six', 'some text to describe the whole 666 release of RH', '6.0.1', 4, '2004-03-21 00:00:00', NULL, 8, 'some text to describe the whole 666 release of RH', 'Six', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.482603', false, false, NULL, NULL, NULL, false); | 1889 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (2, 2, 'six', 'Six Six Six', 'some text to describe the whole 666 release of RH', '6.0.1', 4, '2004-03-21 00:00:00', NULL, 'some text to describe the whole 666 release of RH', 'Six', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.482603', false, false, NULL, NULL, NULL, false, 8); |
63 | 1890 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (3, 1, 'hoary', 'The Hoary Hedgehog Release', 'Hoary is the second release of Ubuntu. Key feature goals include the integration of Hoary with the Launchpad for bugs and translation information, as well as Gnome 2.10 and the X.org window system.', '5.04', 2, NULL, 1, 1, 'Hoary is the second released of Ubuntu, with release planned for April 2005.', 'Hoary', NULL, 96, 6, 'hoary-changes@ubuntu.com', 1, 4, NULL, '2006-10-16 18:31:43.483559', false, false, NULL, NULL, NULL, false); | 1890 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (3, 1, 'hoary', 'The Hoary Hedgehog Release', 'Hoary is the second release of Ubuntu. Key feature goals include the integration of Hoary with the Launchpad for bugs and translation information, as well as Gnome 2.10 and the X.org window system.', '5.04', 2, NULL, 1, 'Hoary is the second released of Ubuntu, with release planned for April 2005.', 'Hoary', NULL, 96, 6, 'hoary-changes@ubuntu.com', 1, 4, NULL, '2006-10-16 18:31:43.483559', false, false, NULL, NULL, NULL, false, 1); |
64 | 1891 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (4, 2, '7.0', 'Seven', 'The release that we would not expect', '7.0.1', 3, NULL, 2, 7, 'The release that we would not expect', '7.0', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.484426', false, false, NULL, NULL, NULL, false); | 1891 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (4, 2, '7.0', 'Seven', 'The release that we would not expect', '7.0.1', 3, NULL, 2, 'The release that we would not expect', '7.0', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.484426', false, false, NULL, NULL, NULL, false, 7); |
65 | 1892 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (5, 1, 'grumpy', 'The Grumpy Groundhog Release', 'Grumpy, the third release of Ubuntu Linux, is not yet in active development. This information is purely a placeholder.', '5.10', 1, NULL, 1, 1, 'Grumpy is the third release of Ubuntu, planned for October 2005.', 'Grumpy', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.485233', false, false, NULL, NULL, NULL, false); | 1892 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (5, 1, 'grumpy', 'The Grumpy Groundhog Release', 'Grumpy, the third release of Ubuntu Linux, is not yet in active development. This information is purely a placeholder.', '5.10', 1, NULL, 1, 'Grumpy is the third release of Ubuntu, planned for October 2005.', 'Grumpy', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.485233', false, false, NULL, NULL, NULL, false, 1); |
66 | 1893 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (6, 3, 'woody', 'WOODY', 'WOODY is the current stable verison of Debian GNU/Linux', '3.0', 4, '2003-01-01 00:00:00', NULL, 2, 'WOODY is the current stable verison of Debian GNU/Linux', 'Woody', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.486054', false, false, NULL, NULL, NULL, false); | 1893 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (6, 3, 'woody', 'WOODY', 'WOODY is the current stable verison of Debian GNU/Linux', '3.0', 4, '2003-01-01 00:00:00', NULL, 'WOODY is the current stable verison of Debian GNU/Linux', 'Woody', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.486054', false, false, NULL, NULL, NULL, false, 2); |
67 | 1894 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (7, 3, 'sarge', 'Sarge', 'Sarge is the FROZEN unstable version of Debian GNU/Linux.', '3.1', 3, NULL, 6, 5, 'Sarge is the FROZEN unstable version of Debian GNU/Linux.', 'Sarge', NULL, 0, NULL, NULL, 0, 0, 6, '2006-10-16 18:31:43.486972', false, false, NULL, NULL, NULL, false); | 1894 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (7, 3, 'sarge', 'Sarge', 'Sarge is the FROZEN unstable version of Debian GNU/Linux.', '3.1', 3, NULL, 6, 'Sarge is the FROZEN unstable version of Debian GNU/Linux.', 'Sarge', NULL, 0, NULL, NULL, 0, 0, 6, '2006-10-16 18:31:43.486972', false, false, NULL, NULL, NULL, false, 5); |
68 | 1895 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (8, 3, 'sid', 'Sid', 'Sid is the CRAZY unstable version of Debian GNU/Linux.', '3.2', 1, NULL, 6, 6, 'Sid is the CRAZY unstable version of Debian GNU/Linux.', 'Sid', NULL, 0, NULL, NULL, 0, 1, NULL, '2006-10-16 18:31:43.487779', false, false, NULL, NULL, NULL, false); | 1895 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (8, 3, 'sid', 'Sid', 'Sid is the CRAZY unstable version of Debian GNU/Linux.', '3.2', 1, NULL, 6, 'Sid is the CRAZY unstable version of Debian GNU/Linux.', 'Sid', NULL, 0, NULL, NULL, 0, 1, NULL, '2006-10-16 18:31:43.487779', false, false, NULL, NULL, NULL, false, 6); |
69 | 1896 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (9, 7, '2k5', 'Guada 2005', 'This release places extra emphasis on usability and installability. The installer is adapted from Ubuntu to assume your country, language, keyboard and time zone preference, thus ensuring that installs ask the minimum number of questions possible.', '2005', 2, NULL, 3, 4, 'Guada 2005 is a rapid-install version of | 1896 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (9, 7, '2k5', 'Guada 2005', 'This release places extra emphasis on usability and installability. The installer is adapted from Ubuntu to assume your country, language, keyboard and time zone preference, thus ensuring that installs ask the minimum number of questions possible.', '2005', 2, NULL, 3, 'Guada 2005 is a rapid-install version of |
70 | 1897 | Ubuntu Hoary for the Andalucian marketplace.', 'Guada2005', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.488598', false, false, NULL, NULL, NULL, false); | 1897 | Ubuntu Hoary for the Andalucian marketplace.', 'Guada2005', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.488598', false, false, NULL, NULL, NULL, false, 4); |
71 | 1898 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (10, 1, 'breezy-autotest', 'Breezy Badger Autotest', 'Autotest version of Breezy', '6.6.6', 1, NULL, 3, 1, 'Autosync uploader test', 'Breezy Badger Autotest', NULL, 0, 8, 'autotest_changes@ubuntu.com', 0, 0, NULL, '2006-10-16 18:31:43.489468', false, false, NULL, NULL, NULL, false); | 1898 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (10, 1, 'breezy-autotest', 'Breezy Badger Autotest', 'Autotest version of Breezy', '6.6.6', 1, NULL, 3, 'Autosync uploader test', 'Breezy Badger Autotest', NULL, 0, 8, 'autotest_changes@ubuntu.com', 0, 0, NULL, '2006-10-16 18:31:43.489468', false, false, NULL, NULL, NULL, false, 1); |
72 | 1899 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (11, 8, 'breezy-autotest', 'Breezy Badger Autotest', 'Autotest version of Breezy', '6.6.6', 1, NULL, 1, 1, 'Autosync uploader test', 'Breezy Badger Autotest', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.490333', false, false, NULL, NULL, NULL, false); | 1899 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (11, 8, 'breezy-autotest', 'Breezy Badger Autotest', 'Autotest version of Breezy', '6.6.6', 1, NULL, 1, 'Autosync uploader test', 'Breezy Badger Autotest', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.490333', false, false, NULL, NULL, NULL, false, 1); |
73 | 1900 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (12, 5, 'krunch', 'The Krunchy Kangaroo', 'The archive split allows us to use different kernel settings for Kubuntu, as well as make other pervasive low-level fixes, and release on our own schedule.', '8.06', 1, NULL, 3, 1, 'This is the first experimental release of Kubuntu that uses a separate archive from the main Ubuntu release.', 'Krunch', NULL, 0, NULL, NULL, 0, 0, 33, '2006-10-16 18:31:43.491929', false, false, NULL, NULL, NULL, false); | 1900 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (12, 5, 'krunch', 'The Krunchy Kangaroo', 'The archive split allows us to use different kernel settings for Kubuntu, as well as make other pervasive low-level fixes, and release on our own schedule.', '8.06', 1, NULL, 3, 'This is the first experimental release of Kubuntu that uses a separate archive from the main Ubuntu release.', 'Krunch', NULL, 0, NULL, NULL, 0, 0, 33, '2006-10-16 18:31:43.491929', false, false, NULL, NULL, NULL, false, 1); |
74 | 1901 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, owner, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested) VALUES (13, 8, 'hoary-test', 'Mock Hoary', 'nothing special', '9.9.9', 1, NULL, 1, 1, 'summmmmmmary', 'Hoary Mock', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.492845', false, false, NULL, NULL, NULL, false); | 1901 | INSERT INTO distroseries (id, distribution, name, title, description, version, releasestatus, datereleased, parent_series, summary, displayname, datelastlangpack, messagecount, nominatedarchindep, changeslist, binarycount, sourcecount, driver, date_created, hide_all_translations, defer_translation_imports, language_pack_base, language_pack_delta, language_pack_proposed, language_pack_full_export_requested, registrant) VALUES (13, 8, 'hoary-test', 'Mock Hoary', 'nothing special', '9.9.9', 1, NULL, 1, 'summmmmmmary', 'Hoary Mock', NULL, 0, NULL, NULL, 0, 0, NULL, '2006-10-16 18:31:43.492845', false, false, NULL, NULL, NULL, false, 1); |
75 | 1902 | 1902 | ||
76 | 1903 | 1903 | ||
77 | 1904 | ALTER TABLE distroseries ENABLE TRIGGER ALL; | 1904 | ALTER TABLE distroseries ENABLE TRIGGER ALL; |
78 | 1905 | 1905 | ||
79 | === modified file 'database/schema/comments.sql' | |||
80 | --- database/schema/comments.sql 2011-03-11 17:03:37 +0000 | |||
81 | +++ database/schema/comments.sql 2011-03-18 11:21:43 +0000 | |||
82 | @@ -1621,7 +1621,7 @@ | |||
83 | 1621 | COMMENT ON COLUMN DistroSeries.releasestatus IS 'The current release status of this distroseries. E.g. "pre-release freeze" or "released"'; | 1621 | COMMENT ON COLUMN DistroSeries.releasestatus IS 'The current release status of this distroseries. E.g. "pre-release freeze" or "released"'; |
84 | 1622 | COMMENT ON COLUMN DistroSeries.datereleased IS 'The date on which this distroseries was released. (obviously only valid for released distributions)'; | 1622 | COMMENT ON COLUMN DistroSeries.datereleased IS 'The date on which this distroseries was released. (obviously only valid for released distributions)'; |
85 | 1623 | COMMENT ON COLUMN DistroSeries.parent_series IS 'The parent distroseries on which this distribution is based. This is related to the inheritance stuff.'; | 1623 | COMMENT ON COLUMN DistroSeries.parent_series IS 'The parent distroseries on which this distribution is based. This is related to the inheritance stuff.'; |
87 | 1624 | COMMENT ON COLUMN DistroSeries.owner IS 'The ultimate owner of this distroseries.'; | 1624 | COMMENT ON COLUMN DistroSeries.registrant IS 'The user who registered this distroseries.'; |
88 | 1625 | COMMENT ON COLUMN DistroSeries.driver IS 'This is a person or team who can act as a driver for this specific release - note that the distribution drivers can also set goals for any release.'; | 1625 | COMMENT ON COLUMN DistroSeries.driver IS 'This is a person or team who can act as a driver for this specific release - note that the distribution drivers can also set goals for any release.'; |
89 | 1626 | COMMENT ON COLUMN DistroSeries.changeslist IS 'The email address (name name) of the changes announcement list for this distroseries. If NULL, no announcement mail will be sent.'; | 1626 | COMMENT ON COLUMN DistroSeries.changeslist IS 'The email address (name name) of the changes announcement list for this distroseries. If NULL, no announcement mail will be sent.'; |
90 | 1627 | COMMENT ON COLUMN DistroSeries.defer_translation_imports IS 'Don''t accept PO imports for this release just now.'; | 1627 | COMMENT ON COLUMN DistroSeries.defer_translation_imports IS 'Don''t accept PO imports for this release just now.'; |
91 | 1628 | 1628 | ||
92 | === added file 'database/schema/patch-2208-56-0.sql' | |||
93 | --- database/schema/patch-2208-56-0.sql 1970-01-01 00:00:00 +0000 | |||
94 | +++ database/schema/patch-2208-56-0.sql 2011-03-18 11:21:43 +0000 | |||
95 | @@ -0,0 +1,32 @@ | |||
96 | 1 | -- Copyright 2009 Canonical Ltd. This software is licensed under the | ||
97 | 2 | -- GNU Affero General Public License version 3 (see the file LICENSE). | ||
98 | 3 | |||
99 | 4 | SET client_min_messages=ERROR; | ||
100 | 5 | |||
101 | 6 | -- Renaming owner to registrant for DistroSeries | ||
102 | 7 | |||
103 | 8 | -- Rename owner into registrant. | ||
104 | 9 | ALTER TABLE distroseries | ||
105 | 10 | RENAME COLUMN owner TO registrant; | ||
106 | 11 | |||
107 | 12 | -- 'Rename' constraint. | ||
108 | 13 | ALTER TABLE distroseries | ||
109 | 14 | ADD CONSTRAINT distroseries__registrant__fk | ||
110 | 15 | FOREIGN KEY (registrant) REFERENCES Person(id); | ||
111 | 16 | ALTER TABLE distroseries | ||
112 | 17 | DROP CONSTRAINT distroseries__owner__fk; | ||
113 | 18 | |||
114 | 19 | -- Rename index. | ||
115 | 20 | ALTER INDEX distroseries__owner__idx | ||
116 | 21 | RENAME TO distroseries__registrant__idx; | ||
117 | 22 | |||
118 | 23 | -- Rename old misnamed indexes. | ||
119 | 24 | ALTER INDEX distrorelease_pkey | ||
120 | 25 | RENAME TO distroseries_pkey; | ||
121 | 26 | ALTER INDEX distrorelease_distribution_key | ||
122 | 27 | RENAME TO distrorelease__distribution__name__key; | ||
123 | 28 | ALTER INDEX distrorelease_distro_release_unique | ||
124 | 29 | RENAME TO distroseries__distribution__id__key; | ||
125 | 30 | |||
126 | 31 | |||
127 | 32 | INSERT INTO LaunchpadDatabaseRevision VALUES (2208, 56, 0); | ||
128 | 0 | 33 | ||
129 | === modified file 'lib/canonical/launchpad/pagetests/basics/notfound-traversals.txt' | |||
130 | --- lib/canonical/launchpad/pagetests/basics/notfound-traversals.txt 2011-03-15 08:24:29 +0000 | |||
131 | +++ lib/canonical/launchpad/pagetests/basics/notfound-traversals.txt 2011-03-18 11:21:43 +0000 | |||
132 | @@ -222,7 +222,7 @@ | |||
133 | 222 | >>> check("/ubuntu/hoary") | 222 | >>> check("/ubuntu/hoary") |
134 | 223 | >>> check("/ubuntu/hoary/+edit", auth=True) | 223 | >>> check("/ubuntu/hoary/+edit", auth=True) |
135 | 224 | >>> check("/ubuntu/hoary/+specs") | 224 | >>> check("/ubuntu/hoary/+specs") |
137 | 225 | >>> check("/ubuntu/hoary/+reassign", auth=True) | 225 | >>> check_not_found("/ubuntu/hoary/+reassign") |
138 | 226 | >>> check("/ubuntu/hoary/+packaging") | 226 | >>> check("/ubuntu/hoary/+packaging") |
139 | 227 | >>> check("/ubuntu/hoary/+bugs") | 227 | >>> check("/ubuntu/hoary/+bugs") |
140 | 228 | 228 | ||
141 | 229 | 229 | ||
142 | === modified file 'lib/canonical/launchpad/security.py' | |||
143 | --- lib/canonical/launchpad/security.py 2011-03-10 19:53:03 +0000 | |||
144 | +++ lib/canonical/launchpad/security.py 2011-03-18 11:21:43 +0000 | |||
145 | @@ -987,9 +987,10 @@ | |||
146 | 987 | usedfor = IDistroSeries | 987 | usedfor = IDistroSeries |
147 | 988 | 988 | ||
148 | 989 | 989 | ||
152 | 990 | class EditDistroSeriesByOwnersOrDistroOwnersOrAdmins(AuthorizationBase): | 990 | class EditDistroSeriesByReleaseManagerOrDistroOwnersOrAdmins( |
153 | 991 | """The owner of the distro series should be able to modify some of the | 991 | AuthorizationBase): |
154 | 992 | fields on the IDistroSeries | 992 | """The owner of the distro series (i.e. the owner of the distribution) |
155 | 993 | should be able to modify some of the fields on the IDistroSeries | ||
156 | 993 | 994 | ||
157 | 994 | NB: there is potential for a great mess if this is not done correctly so | 995 | NB: there is potential for a great mess if this is not done correctly so |
158 | 995 | please consult with Kiko and MDZ on the mailing list before modifying | 996 | please consult with Kiko and MDZ on the mailing list before modifying |
159 | @@ -1004,8 +1005,7 @@ | |||
160 | 1004 | # The series driver (release manager) may edit a series if the | 1005 | # The series driver (release manager) may edit a series if the |
161 | 1005 | # distribution is an `IDerivativeDistribution` | 1006 | # distribution is an `IDerivativeDistribution` |
162 | 1006 | return True | 1007 | return True |
165 | 1007 | return (user.inTeam(self.obj.owner) or | 1008 | return (user.inTeam(self.obj.distribution.owner) or |
164 | 1008 | user.inTeam(self.obj.distribution.owner) or | ||
166 | 1009 | user.in_admin) | 1009 | user.in_admin) |
167 | 1010 | 1010 | ||
168 | 1011 | 1011 | ||
169 | @@ -2054,7 +2054,7 @@ | |||
170 | 2054 | 2054 | ||
171 | 2055 | class AdminDistroSeriesLanguagePacks( | 2055 | class AdminDistroSeriesLanguagePacks( |
172 | 2056 | OnlyRosettaExpertsAndAdmins, | 2056 | OnlyRosettaExpertsAndAdmins, |
174 | 2057 | EditDistroSeriesByOwnersOrDistroOwnersOrAdmins): | 2057 | EditDistroSeriesByReleaseManagerOrDistroOwnersOrAdmins): |
175 | 2058 | permission = 'launchpad.LanguagePacksAdmin' | 2058 | permission = 'launchpad.LanguagePacksAdmin' |
176 | 2059 | usedfor = IDistroSeries | 2059 | usedfor = IDistroSeries |
177 | 2060 | 2060 | ||
178 | @@ -2065,10 +2065,10 @@ | |||
179 | 2065 | edit distroseries or members of IDistribution.language_pack_admin team | 2065 | edit distroseries or members of IDistribution.language_pack_admin team |
180 | 2066 | are able to change the language packs available. | 2066 | are able to change the language packs available. |
181 | 2067 | """ | 2067 | """ |
182 | 2068 | EditDS = EditDistroSeriesByReleaseManagerOrDistroOwnersOrAdmins | ||
183 | 2068 | return ( | 2069 | return ( |
184 | 2069 | OnlyRosettaExpertsAndAdmins.checkAuthenticated(self, user) or | 2070 | OnlyRosettaExpertsAndAdmins.checkAuthenticated(self, user) or |
187 | 2070 | EditDistroSeriesByOwnersOrDistroOwnersOrAdmins.checkAuthenticated( | 2071 | EditDS.checkAuthenticated(self, user) or |
186 | 2071 | self, user) or | ||
188 | 2072 | user.inTeam(self.obj.distribution.language_pack_admin)) | 2072 | user.inTeam(self.obj.distribution.language_pack_admin)) |
189 | 2073 | 2073 | ||
190 | 2074 | 2074 | ||
191 | @@ -2589,7 +2589,7 @@ | |||
192 | 2589 | if parent is None: | 2589 | if parent is None: |
193 | 2590 | return False | 2590 | return False |
194 | 2591 | return check_permission(self.permission, parent) | 2591 | return check_permission(self.permission, parent) |
196 | 2592 | 2592 | ||
197 | 2593 | 2593 | ||
198 | 2594 | class SetMessageVisibility(AuthorizationBase): | 2594 | class SetMessageVisibility(AuthorizationBase): |
199 | 2595 | permission = 'launchpad.Admin' | 2595 | permission = 'launchpad.Admin' |
200 | 2596 | 2596 | ||
201 | === modified file 'lib/lp/registry/browser/configure.zcml' | |||
202 | --- lib/lp/registry/browser/configure.zcml 2011-03-10 17:02:15 +0000 | |||
203 | +++ lib/lp/registry/browser/configure.zcml 2011-03-18 11:21:43 +0000 | |||
204 | @@ -129,13 +129,6 @@ | |||
205 | 129 | template="../templates/distroseries-needs-packaging.pt"/> | 129 | template="../templates/distroseries-needs-packaging.pt"/> |
206 | 130 | <browser:page | 130 | <browser:page |
207 | 131 | for="lp.registry.interfaces.distroseries.IDistroSeries" | 131 | for="lp.registry.interfaces.distroseries.IDistroSeries" |
208 | 132 | permission="launchpad.Admin" | ||
209 | 133 | facet="overview" | ||
210 | 134 | class="canonical.launchpad.browser.ObjectReassignmentView" | ||
211 | 135 | name="+reassign" | ||
212 | 136 | template="../../../canonical/launchpad/templates/object-reassignment.pt"/> | ||
213 | 137 | <browser:page | ||
214 | 138 | for="lp.registry.interfaces.distroseries.IDistroSeries" | ||
215 | 139 | permission="launchpad.Edit" | 132 | permission="launchpad.Edit" |
216 | 140 | name="+edit" | 133 | name="+edit" |
217 | 141 | class="lp.registry.browser.distroseries.DistroSeriesEditView" | 134 | class="lp.registry.browser.distroseries.DistroSeriesEditView" |
218 | 142 | 135 | ||
219 | === modified file 'lib/lp/registry/browser/distroseries.py' | |||
220 | --- lib/lp/registry/browser/distroseries.py 2011-03-08 11:56:40 +0000 | |||
221 | +++ lib/lp/registry/browser/distroseries.py 2011-03-18 11:21:43 +0000 | |||
222 | @@ -184,7 +184,7 @@ | |||
223 | 184 | 184 | ||
224 | 185 | usedfor = IDistroSeries | 185 | usedfor = IDistroSeries |
225 | 186 | facet = 'overview' | 186 | facet = 'overview' |
227 | 187 | links = ['edit', 'reassign', 'driver', 'answers', | 187 | links = ['edit', 'driver', 'answers', |
228 | 188 | 'packaging', 'needs_packaging', 'builds', 'queue', | 188 | 'packaging', 'needs_packaging', 'builds', 'queue', |
229 | 189 | 'add_port', 'create_milestone', 'subscribe', 'admin'] | 189 | 'add_port', 'create_milestone', 'subscribe', 'admin'] |
230 | 190 | 190 | ||
231 | @@ -199,11 +199,6 @@ | |||
232 | 199 | summary = 'Someone with permission to set goals for this series' | 199 | summary = 'Someone with permission to set goals for this series' |
233 | 200 | return Link('+driver', text, summary, icon='edit') | 200 | return Link('+driver', text, summary, icon='edit') |
234 | 201 | 201 | ||
235 | 202 | @enabled_with_permission('launchpad.Admin') | ||
236 | 203 | def reassign(self): | ||
237 | 204 | text = 'Change registrant' | ||
238 | 205 | return Link('+reassign', text, icon='edit') | ||
239 | 206 | |||
240 | 207 | @enabled_with_permission('launchpad.Edit') | 202 | @enabled_with_permission('launchpad.Edit') |
241 | 208 | def create_milestone(self): | 203 | def create_milestone(self): |
242 | 209 | text = 'Create milestone' | 204 | text = 'Create milestone' |
243 | @@ -496,9 +491,9 @@ | |||
244 | 496 | @action(_('Create Series'), name='create') | 491 | @action(_('Create Series'), name='create') |
245 | 497 | def createAndAdd(self, action, data): | 492 | def createAndAdd(self, action, data): |
246 | 498 | """Create and add a new Distribution Series""" | 493 | """Create and add a new Distribution Series""" |
248 | 499 | owner = getUtility(ILaunchBag).user | 494 | registrant = getUtility(ILaunchBag).user |
249 | 500 | 495 | ||
251 | 501 | assert owner is not None | 496 | assert registrant is not None |
252 | 502 | distroseries = self.context.newSeries( | 497 | distroseries = self.context.newSeries( |
253 | 503 | name=data['name'], | 498 | name=data['name'], |
254 | 504 | displayname=data['displayname'], | 499 | displayname=data['displayname'], |
255 | @@ -507,7 +502,7 @@ | |||
256 | 507 | description=data['description'], | 502 | description=data['description'], |
257 | 508 | version=data['version'], | 503 | version=data['version'], |
258 | 509 | parent_series=data['parent_series'], | 504 | parent_series=data['parent_series'], |
260 | 510 | owner=owner) | 505 | registrant=registrant) |
261 | 511 | notify(ObjectCreatedEvent(distroseries)) | 506 | notify(ObjectCreatedEvent(distroseries)) |
262 | 512 | self.next_url = canonical_url(distroseries) | 507 | self.next_url = canonical_url(distroseries) |
263 | 513 | return distroseries | 508 | return distroseries |
264 | 514 | 509 | ||
265 | === modified file 'lib/lp/registry/configure.zcml' | |||
266 | --- lib/lp/registry/configure.zcml 2011-03-18 06:51:22 +0000 | |||
267 | +++ lib/lp/registry/configure.zcml 2011-03-18 11:21:43 +0000 | |||
268 | @@ -215,7 +215,7 @@ | |||
269 | 215 | 215 | ||
270 | 216 | <require | 216 | <require |
271 | 217 | permission="launchpad.Moderate" | 217 | permission="launchpad.Moderate" |
273 | 218 | set_attributes="version name status owner nominatedarchindep changeslist datereleased"/> | 218 | set_attributes="version name status nominatedarchindep changeslist datereleased"/> |
274 | 219 | 219 | ||
275 | 220 | <!-- IStructuralSubscriptionTarget --> | 220 | <!-- IStructuralSubscriptionTarget --> |
276 | 221 | 221 | ||
277 | 222 | 222 | ||
278 | === modified file 'lib/lp/registry/doc/distroseries.txt' | |||
279 | --- lib/lp/registry/doc/distroseries.txt 2010-11-02 05:48:54 +0000 | |||
280 | +++ lib/lp/registry/doc/distroseries.txt 2011-03-18 11:21:43 +0000 | |||
281 | @@ -842,9 +842,11 @@ | |||
282 | 842 | >>> yo_series = youbuntu.newSeries( | 842 | >>> yo_series = youbuntu.newSeries( |
283 | 843 | ... name='island', displayname='Island', title='YouBuntu Island', | 843 | ... name='island', displayname='Island', title='YouBuntu Island', |
284 | 844 | ... summary='summary', description='description', version='09.07', | 844 | ... summary='summary', description='description', version='09.07', |
286 | 845 | ... parent_series=warty, owner=yo_driver) | 845 | ... parent_series=warty, registrant=yo_driver) |
287 | 846 | >>> print yo_series.name | 846 | >>> print yo_series.name |
288 | 847 | island | 847 | island |
289 | 848 | >>> print yo_series.registrant.name | ||
290 | 849 | yo-driver | ||
291 | 848 | >>> print yo_series.driver.name | 850 | >>> print yo_series.driver.name |
292 | 849 | yo-driver | 851 | yo-driver |
293 | 850 | 852 | ||
294 | @@ -856,7 +858,7 @@ | |||
295 | 856 | >>> yo_series = youbuntu.newSeries( | 858 | >>> yo_series = youbuntu.newSeries( |
296 | 857 | ... name='forest', displayname='Forest', title='YouBuntu Forest', | 859 | ... name='forest', displayname='Forest', title='YouBuntu Forest', |
297 | 858 | ... summary='summary', description='description', version='09.07', | 860 | ... summary='summary', description='description', version='09.07', |
299 | 859 | ... parent_series=warty, owner=youbuntu.owner) | 861 | ... parent_series=warty, registrant=youbuntu.owner) |
300 | 860 | >>> print yo_series.name | 862 | >>> print yo_series.name |
301 | 861 | forest | 863 | forest |
302 | 862 | >>> print yo_series.driver | 864 | >>> print yo_series.driver |
303 | @@ -884,9 +886,11 @@ | |||
304 | 884 | >>> u_series = ubuntu.newSeries( | 886 | >>> u_series = ubuntu.newSeries( |
305 | 885 | ... name='finch', displayname='Finch', title='Ubuntu Finch', | 887 | ... name='finch', displayname='Finch', title='Ubuntu Finch', |
306 | 886 | ... summary='summary', description='description', version='9.06', | 888 | ... summary='summary', description='description', version='9.06', |
308 | 887 | ... parent_series=warty, owner=ubuntu.owner) | 889 | ... parent_series=warty, registrant=ubuntu.owner) |
309 | 888 | >>> print u_series.name | 890 | >>> print u_series.name |
310 | 889 | finch | 891 | finch |
311 | 892 | >>> print u_series.registrant.name | ||
312 | 893 | ubuntu-team | ||
313 | 890 | >>> print u_series.driver | 894 | >>> print u_series.driver |
314 | 891 | None | 895 | None |
315 | 892 | 896 | ||
316 | @@ -1056,7 +1060,7 @@ | |||
317 | 1056 | mark | 1060 | mark |
318 | 1057 | >>> print sid.driver | 1061 | >>> print sid.driver |
319 | 1058 | None | 1062 | None |
321 | 1059 | >>> print sid.owner.name | 1063 | >>> print sid.registrant.name |
322 | 1060 | jdub | 1064 | jdub |
323 | 1061 | 1065 | ||
324 | 1062 | >>> for d in sid.drivers: | 1066 | >>> for d in sid.drivers: |
325 | 1063 | 1067 | ||
326 | === modified file 'lib/lp/registry/interfaces/distribution.py' | |||
327 | --- lib/lp/registry/interfaces/distribution.py 2011-03-09 16:35:58 +0000 | |||
328 | +++ lib/lp/registry/interfaces/distribution.py 2011-03-18 11:21:43 +0000 | |||
329 | @@ -123,7 +123,7 @@ | |||
330 | 123 | """IDistribution properties requiring launchpad.Driver permission.""" | 123 | """IDistribution properties requiring launchpad.Driver permission.""" |
331 | 124 | 124 | ||
332 | 125 | def newSeries(name, displayname, title, summary, description, | 125 | def newSeries(name, displayname, title, summary, description, |
334 | 126 | version, parent_series, owner): | 126 | version, parent_series, registrant): |
335 | 127 | """Creates a new distroseries.""" | 127 | """Creates a new distroseries.""" |
336 | 128 | 128 | ||
337 | 129 | 129 | ||
338 | 130 | 130 | ||
339 | === modified file 'lib/lp/registry/interfaces/distroseries.py' | |||
340 | --- lib/lp/registry/interfaces/distroseries.py 2011-03-10 14:05:51 +0000 | |||
341 | +++ lib/lp/registry/interfaces/distroseries.py 2011-03-18 11:21:43 +0000 | |||
342 | @@ -241,8 +241,13 @@ | |||
343 | 241 | description=_("The series from which this one was branched."), | 241 | description=_("The series from which this one was branched."), |
344 | 242 | required=True, schema=Interface, # Really IDistroSeries, see below | 242 | required=True, schema=Interface, # Really IDistroSeries, see below |
345 | 243 | vocabulary='DistroSeries')) | 243 | vocabulary='DistroSeries')) |
348 | 244 | owner = exported( | 244 | registrant = exported( |
349 | 245 | PublicPersonChoice(title=_("Owner"), vocabulary='ValidOwner')) | 245 | PublicPersonChoice( |
350 | 246 | title=_("Registrant"), vocabulary='ValidPersonOrTeam')) | ||
351 | 247 | owner = exported(Reference( | ||
352 | 248 | IPerson, title=_("Owning team of the derived series"), readonly=True, | ||
353 | 249 | description=_( | ||
354 | 250 | "This attribute mirrors the owner of the distribution."))) | ||
355 | 246 | date_created = exported( | 251 | date_created = exported( |
356 | 247 | Datetime(title=_("The date this series was registered."))) | 252 | Datetime(title=_("The date this series was registered."))) |
357 | 248 | driver = exported( | 253 | driver = exported( |
358 | 249 | 254 | ||
359 | === modified file 'lib/lp/registry/model/distribution.py' | |||
360 | --- lib/lp/registry/model/distribution.py 2011-03-09 13:40:58 +0000 | |||
361 | +++ lib/lp/registry/model/distribution.py 2011-03-18 11:21:43 +0000 | |||
362 | @@ -1779,7 +1779,7 @@ | |||
363 | 1779 | return user.inTeam(self.owner) or user.inTeam(admins) | 1779 | return user.inTeam(self.owner) or user.inTeam(admins) |
364 | 1780 | 1780 | ||
365 | 1781 | def newSeries(self, name, displayname, title, summary, | 1781 | def newSeries(self, name, displayname, title, summary, |
367 | 1782 | description, version, parent_series, owner): | 1782 | description, version, parent_series, registrant): |
368 | 1783 | """See `IDistribution`.""" | 1783 | """See `IDistribution`.""" |
369 | 1784 | series = DistroSeries( | 1784 | series = DistroSeries( |
370 | 1785 | distribution=self, | 1785 | distribution=self, |
371 | @@ -1791,10 +1791,11 @@ | |||
372 | 1791 | version=version, | 1791 | version=version, |
373 | 1792 | status=SeriesStatus.EXPERIMENTAL, | 1792 | status=SeriesStatus.EXPERIMENTAL, |
374 | 1793 | parent_series=parent_series, | 1793 | parent_series=parent_series, |
377 | 1794 | owner=owner) | 1794 | registrant=registrant) |
378 | 1795 | if owner.inTeam(self.driver) and not owner.inTeam(self.owner): | 1795 | if (registrant.inTeam(self.driver) |
379 | 1796 | and not registrant.inTeam(self.owner)): | ||
380 | 1796 | # This driver is a release manager. | 1797 | # This driver is a release manager. |
382 | 1797 | series.driver = owner | 1798 | series.driver = registrant |
383 | 1798 | 1799 | ||
384 | 1799 | # May wish to add this to the series rather than clearing the cache -- | 1800 | # May wish to add this to the series rather than clearing the cache -- |
385 | 1800 | # RBC 20100816. | 1801 | # RBC 20100816. |
386 | 1801 | 1802 | ||
387 | === modified file 'lib/lp/registry/model/distroseries.py' | |||
388 | --- lib/lp/registry/model/distroseries.py 2011-03-12 08:52:47 +0000 | |||
389 | +++ lib/lp/registry/model/distroseries.py 2011-03-18 11:21:43 +0000 | |||
390 | @@ -227,8 +227,8 @@ | |||
391 | 227 | datereleased = UtcDateTimeCol(notNull=False, default=None) | 227 | datereleased = UtcDateTimeCol(notNull=False, default=None) |
392 | 228 | parent_series = ForeignKey( | 228 | parent_series = ForeignKey( |
393 | 229 | dbName='parent_series', foreignKey='DistroSeries', notNull=False) | 229 | dbName='parent_series', foreignKey='DistroSeries', notNull=False) |
396 | 230 | owner = ForeignKey( | 230 | registrant = ForeignKey( |
397 | 231 | dbName='owner', foreignKey='Person', | 231 | dbName='registrant', foreignKey='Person', |
398 | 232 | storm_validator=validate_public_person, notNull=True) | 232 | storm_validator=validate_public_person, notNull=True) |
399 | 233 | driver = ForeignKey( | 233 | driver = ForeignKey( |
400 | 234 | dbName="driver", foreignKey="Person", | 234 | dbName="driver", foreignKey="Person", |
401 | @@ -406,6 +406,11 @@ | |||
402 | 406 | return self.distribution | 406 | return self.distribution |
403 | 407 | 407 | ||
404 | 408 | @property | 408 | @property |
405 | 409 | def owner(self): | ||
406 | 410 | """See `IDistroSeries`.""" | ||
407 | 411 | return self.distribution.owner | ||
408 | 412 | |||
409 | 413 | @property | ||
410 | 409 | def sortkey(self): | 414 | def sortkey(self): |
411 | 410 | """A string to be used for sorting distro seriess. | 415 | """A string to be used for sorting distro seriess. |
412 | 411 | 416 | ||
413 | @@ -1913,7 +1918,7 @@ | |||
414 | 1913 | child = distribution.newSeries( | 1918 | child = distribution.newSeries( |
415 | 1914 | name=name, displayname=displayname, title=title, | 1919 | name=name, displayname=displayname, title=title, |
416 | 1915 | summary=summary, description=description, | 1920 | summary=summary, description=description, |
418 | 1916 | version=version, parent_series=self, owner=user) | 1921 | version=version, parent_series=self, registrant=user) |
419 | 1917 | IStore(self).add(child) | 1922 | IStore(self).add(child) |
420 | 1918 | else: | 1923 | else: |
421 | 1919 | if child.parent_series is not self: | 1924 | if child.parent_series is not self: |
422 | 1920 | 1925 | ||
423 | === modified file 'lib/lp/registry/stories/distroseries/xx-distroseries-index.txt' | |||
424 | --- lib/lp/registry/stories/distroseries/xx-distroseries-index.txt 2010-08-05 20:17:40 +0000 | |||
425 | +++ lib/lp/registry/stories/distroseries/xx-distroseries-index.txt 2011-03-18 11:21:43 +0000 | |||
426 | @@ -20,7 +20,9 @@ | |||
427 | 20 | 20 | ||
428 | 21 | >>> print extract_text( | 21 | >>> print extract_text( |
429 | 22 | ... find_tag_by_id(anon_browser.contents, 'registration')) | 22 | ... find_tag_by_id(anon_browser.contents, 'registration')) |
431 | 23 | registered by Ubuntu Team on 2006-10-16 | 23 | Registered by |
432 | 24 | Ubuntu Team on | ||
433 | 25 | 2006-10-16 | ||
434 | 24 | 26 | ||
435 | 25 | >>> print extract_text(find_main_content(anon_browser.contents)) | 27 | >>> print extract_text(find_main_content(anon_browser.contents)) |
436 | 26 | Warty | 28 | Warty |
437 | 27 | 29 | ||
438 | === removed file 'lib/lp/registry/stories/distroseries/xx-reassign-distroseries.txt' | |||
439 | --- lib/lp/registry/stories/distroseries/xx-reassign-distroseries.txt 2009-11-22 15:43:16 +0000 | |||
440 | +++ lib/lp/registry/stories/distroseries/xx-reassign-distroseries.txt 1970-01-01 00:00:00 +0000 | |||
441 | @@ -1,72 +0,0 @@ | |||
442 | 1 | Change the owner of the grumpy distroseries. | ||
443 | 2 | |||
444 | 3 | |||
445 | 4 | Logged in as Sample Person we don't have permission to do that, because he's | ||
446 | 5 | not the owner nor a member of the admins team. | ||
447 | 6 | |||
448 | 7 | >>> print http(r""" | ||
449 | 8 | ... GET /ubuntu/grumpy/+reassign HTTP/1.1 | ||
450 | 9 | ... Authorization: Basic test@canonical.com:test | ||
451 | 10 | ... """) | ||
452 | 11 | HTTP/1.1 403 Forbidden | ||
453 | 12 | Content-Length: ... | ||
454 | 13 | Content-Type: text/html;charset=utf-8 | ||
455 | 14 | ... | ||
456 | 15 | |||
457 | 16 | |||
458 | 17 | Now we're logged in as Mark Shutleworth and reassign grumpy to Foo Bar. | ||
459 | 18 | |||
460 | 19 | >>> print http(r""" | ||
461 | 20 | ... POST /ubuntu/grumpy/+reassign HTTP/1.1 | ||
462 | 21 | ... Authorization: Basic mark@example.com:test | ||
463 | 22 | ... field.owner=name16&field.existing=existing""" | ||
464 | 23 | ... r"""&field.actions.change=Change""") | ||
465 | 24 | HTTP/1.1 303 See Other | ||
466 | 25 | ... | ||
467 | 26 | Location: http://localhost/ubuntu/grumpy | ||
468 | 27 | ... | ||
469 | 28 | |||
470 | 29 | |||
471 | 30 | Foo Bar is the owner here | ||
472 | 31 | |||
473 | 32 | >>> print http(r""" | ||
474 | 33 | ... GET /ubuntu/grumpy/ HTTP/1.1 | ||
475 | 34 | ... Authorization: Basic mark@example.com:test | ||
476 | 35 | ... """) | ||
477 | 36 | HTTP/1.1 200 Ok | ||
478 | 37 | Content-Length: ... | ||
479 | 38 | Content-Type: text/html;charset=utf-8 | ||
480 | 39 | ... | ||
481 | 40 | ...registered by... | ||
482 | 41 | ... | ||
483 | 42 | ...Foo Bar... | ||
484 | 43 | ... | ||
485 | 44 | |||
486 | 45 | |||
487 | 46 | Now we reassign it to a newly create team: ubuntu2 | ||
488 | 47 | |||
489 | 48 | >>> print http(r""" | ||
490 | 49 | ... POST /ubuntu/grumpy/+reassign HTTP/1.1 | ||
491 | 50 | ... Authorization: Basic mark@example.com:test | ||
492 | 51 | ... field.owner=ubuntu2&field.existing=new&field.actions.change=Change""") | ||
493 | 52 | HTTP/1.1 303 See Other | ||
494 | 53 | ... | ||
495 | 54 | Location: http://localhost/ubuntu/grumpy | ||
496 | 55 | ... | ||
497 | 56 | |||
498 | 57 | |||
499 | 58 | And the new team can be seen as the owner. | ||
500 | 59 | |||
501 | 60 | >>> print http(r""" | ||
502 | 61 | ... GET /ubuntu/grumpy/ HTTP/1.1 | ||
503 | 62 | ... Authorization: Basic mark@example.com:test | ||
504 | 63 | ... """) | ||
505 | 64 | HTTP/1.1 200 Ok | ||
506 | 65 | Content-Length: ... | ||
507 | 66 | Content-Type: text/html;charset=utf-8 | ||
508 | 67 | ... | ||
509 | 68 | ...registered by... | ||
510 | 69 | ... | ||
511 | 70 | ...ubuntu2... | ||
512 | 71 | ... | ||
513 | 72 | |||
514 | 73 | 0 | ||
515 | === modified file 'lib/lp/registry/stories/webservice/xx-distroseries.txt' | |||
516 | --- lib/lp/registry/stories/webservice/xx-distroseries.txt 2011-01-26 19:35:17 +0000 | |||
517 | +++ lib/lp/registry/stories/webservice/xx-distroseries.txt 2011-03-18 11:21:43 +0000 | |||
518 | @@ -75,8 +75,9 @@ | |||
519 | 75 | main_archive_link: u'http://.../ubuntu/+archive/primary' | 75 | main_archive_link: u'http://.../ubuntu/+archive/primary' |
520 | 76 | name: u'hoary' | 76 | name: u'hoary' |
521 | 77 | official_bug_tags: [] | 77 | official_bug_tags: [] |
523 | 78 | owner_link: u'http://.../~mark' | 78 | owner_link: u'http://.../~ubuntu-team' |
524 | 79 | parent_series_link: u'http://.../ubuntu/warty' | 79 | parent_series_link: u'http://.../ubuntu/warty' |
525 | 80 | registrant_link: u'http://.../~mark' | ||
526 | 80 | resource_type_link: ... | 81 | resource_type_link: ... |
527 | 81 | self_link: u'http://.../ubuntu/hoary' | 82 | self_link: u'http://.../ubuntu/hoary' |
528 | 82 | status: u'Active Development' | 83 | status: u'Active Development' |
529 | 83 | 84 | ||
530 | === modified file 'lib/lp/registry/templates/distroseries-index.pt' | |||
531 | --- lib/lp/registry/templates/distroseries-index.pt 2010-10-10 21:54:16 +0000 | |||
532 | +++ lib/lp/registry/templates/distroseries-index.pt 2011-03-18 11:21:43 +0000 | |||
533 | @@ -19,8 +19,8 @@ | |||
534 | 19 | </tal:heading> | 19 | </tal:heading> |
535 | 20 | 20 | ||
536 | 21 | <tal:registering metal:fill-slot="registering"> | 21 | <tal:registering metal:fill-slot="registering"> |
539 | 22 | registered by | 22 | Registered by |
540 | 23 | <a tal:replace="structure context/owner/fmt:link" /> | 23 | <a tal:replace="structure context/registrant/fmt:link" /> |
541 | 24 | <span tal:content="context/date_created/fmt:displaydate" | 24 | <span tal:content="context/date_created/fmt:displaydate" |
542 | 25 | tal:attributes="title context/date_created/fmt:datetime" | 25 | tal:attributes="title context/date_created/fmt:datetime" |
543 | 26 | >on 2005-01-01</span> | 26 | >on 2005-01-01</span> |
544 | @@ -121,9 +121,6 @@ | |||
545 | 121 | <li tal:condition="overview_menu/admin/enabled"> | 121 | <li tal:condition="overview_menu/admin/enabled"> |
546 | 122 | <a tal:replace="structure overview_menu/admin/fmt:link" /> | 122 | <a tal:replace="structure overview_menu/admin/fmt:link" /> |
547 | 123 | </li> | 123 | </li> |
548 | 124 | <li tal:condition="overview_menu/reassign/enabled"> | ||
549 | 125 | <a tal:replace="structure overview_menu/reassign/fmt:link" /> | ||
550 | 126 | </li> | ||
551 | 127 | <li> | 124 | <li> |
552 | 128 | <a tal:replace="structure overview_menu/subscribe/fmt:link" /> | 125 | <a tal:replace="structure overview_menu/subscribe/fmt:link" /> |
553 | 129 | </li> | 126 | </li> |
554 | 130 | 127 | ||
555 | === modified file 'lib/lp/registry/tests/test_distribution.py' | |||
556 | --- lib/lp/registry/tests/test_distribution.py 2011-03-15 15:46:24 +0000 | |||
557 | +++ lib/lp/registry/tests/test_distribution.py 2011-03-18 11:21:43 +0000 | |||
558 | @@ -109,7 +109,7 @@ | |||
559 | 109 | distribution.newSeries( | 109 | distribution.newSeries( |
560 | 110 | name='bar', displayname='Bar', title='Bar', summary='', | 110 | name='bar', displayname='Bar', title='Bar', summary='', |
561 | 111 | description='', version='1', parent_series=None, | 111 | description='', version='1', parent_series=None, |
563 | 112 | owner=self.factory.makePerson()) | 112 | registrant=self.factory.makePerson()) |
564 | 113 | self.assertNotIn("series", cache) | 113 | self.assertNotIn("series", cache) |
565 | 114 | 114 | ||
566 | 115 | # New cached value. | 115 | # New cached value. |
567 | 116 | 116 | ||
568 | === modified file 'lib/lp/registry/tests/test_distroseries.py' | |||
569 | --- lib/lp/registry/tests/test_distroseries.py 2011-03-10 14:05:51 +0000 | |||
570 | +++ lib/lp/registry/tests/test_distroseries.py 2011-03-18 11:21:43 +0000 | |||
571 | @@ -211,6 +211,15 @@ | |||
572 | 211 | self.assertContentEqual( | 211 | self.assertContentEqual( |
573 | 212 | [distroseries], distroseries.parent_series.getDerivedSeries()) | 212 | [distroseries], distroseries.parent_series.getDerivedSeries()) |
574 | 213 | 213 | ||
575 | 214 | def test_registrant_owner_differ(self): | ||
576 | 215 | # The registrant is the creator whereas the owner is the distribution's | ||
577 | 216 | # owner | ||
578 | 217 | registrant = self.factory.makePerson() | ||
579 | 218 | distroseries = self.factory.makeDistroRelease(registrant=registrant) | ||
580 | 219 | self.assertEquals(distroseries.distribution.owner, distroseries.owner) | ||
581 | 220 | self.assertEquals(registrant, distroseries.registrant) | ||
582 | 221 | self.assertNotEqual(distroseries.registrant, distroseries.owner) | ||
583 | 222 | |||
584 | 214 | 223 | ||
585 | 215 | class TestDistroSeriesPackaging(TestCaseWithFactory): | 224 | class TestDistroSeriesPackaging(TestCaseWithFactory): |
586 | 216 | 225 | ||
587 | 217 | 226 | ||
588 | === modified file 'lib/lp/soyuz/doc/distroseriesqueue-translations.txt' | |||
589 | --- lib/lp/soyuz/doc/distroseriesqueue-translations.txt 2010-12-22 20:46:21 +0000 | |||
590 | +++ lib/lp/soyuz/doc/distroseriesqueue-translations.txt 2011-03-18 11:21:43 +0000 | |||
591 | @@ -157,16 +157,16 @@ | |||
592 | 157 | ... print '%s/%s by %s: %s' % ( | 157 | ... print '%s/%s by %s: %s' % ( |
593 | 158 | ... entry.distroseries.name, entry.sourcepackagename.name, | 158 | ... entry.distroseries.name, entry.sourcepackagename.name, |
594 | 159 | ... entry.importer.name, entry.path) | 159 | ... entry.importer.name, entry.path) |
605 | 160 | dapper/pmount by mark: po/es_ES.po | 160 | dapper/pmount by ubuntu-team: po/es_ES.po |
606 | 161 | dapper/pmount by mark: po/ca.po | 161 | dapper/pmount by ubuntu-team: po/ca.po |
607 | 162 | dapper/pmount by mark: po/de.po | 162 | dapper/pmount by ubuntu-team: po/de.po |
608 | 163 | dapper/pmount by mark: po/cs.po | 163 | dapper/pmount by ubuntu-team: po/cs.po |
609 | 164 | dapper/pmount by mark: po/es.po | 164 | dapper/pmount by ubuntu-team: po/es.po |
610 | 165 | dapper/pmount by mark: po/fr.po | 165 | dapper/pmount by ubuntu-team: po/fr.po |
611 | 166 | dapper/pmount by mark: po/hr.po | 166 | dapper/pmount by ubuntu-team: po/hr.po |
612 | 167 | dapper/pmount by mark: po/nb.po | 167 | dapper/pmount by ubuntu-team: po/nb.po |
613 | 168 | dapper/pmount by mark: po/pmount.pot | 168 | dapper/pmount by ubuntu-team: po/pmount.pot |
614 | 169 | dapper/pmount by mark: po/it_IT.po | 169 | dapper/pmount by ubuntu-team: po/it_IT.po |
615 | 170 | 170 | ||
616 | 171 | # Abort the transaction so we can check the same upload in a different | 171 | # Abort the transaction so we can check the same upload in a different |
617 | 172 | # pocket. | 172 | # pocket. |
618 | @@ -207,16 +207,16 @@ | |||
619 | 207 | ... print '%s/%s by %s: %s' % ( | 207 | ... print '%s/%s by %s: %s' % ( |
620 | 208 | ... entry.distroseries.name, entry.sourcepackagename.name, | 208 | ... entry.distroseries.name, entry.sourcepackagename.name, |
621 | 209 | ... entry.importer.name, entry.path) | 209 | ... entry.importer.name, entry.path) |
632 | 210 | dapper/pmount by mark: po/es_ES.po | 210 | dapper/pmount by ubuntu-team: po/es_ES.po |
633 | 211 | dapper/pmount by mark: po/ca.po | 211 | dapper/pmount by ubuntu-team: po/ca.po |
634 | 212 | dapper/pmount by mark: po/de.po | 212 | dapper/pmount by ubuntu-team: po/de.po |
635 | 213 | dapper/pmount by mark: po/cs.po | 213 | dapper/pmount by ubuntu-team: po/cs.po |
636 | 214 | dapper/pmount by mark: po/es.po | 214 | dapper/pmount by ubuntu-team: po/es.po |
637 | 215 | dapper/pmount by mark: po/fr.po | 215 | dapper/pmount by ubuntu-team: po/fr.po |
638 | 216 | dapper/pmount by mark: po/hr.po | 216 | dapper/pmount by ubuntu-team: po/hr.po |
639 | 217 | dapper/pmount by mark: po/nb.po | 217 | dapper/pmount by ubuntu-team: po/nb.po |
640 | 218 | dapper/pmount by mark: po/pmount.pot | 218 | dapper/pmount by ubuntu-team: po/pmount.pot |
641 | 219 | dapper/pmount by mark: po/it_IT.po | 219 | dapper/pmount by ubuntu-team: po/it_IT.po |
642 | 220 | 220 | ||
643 | 221 | # Let's abort the transaction so we can check the same upload in a different | 221 | # Let's abort the transaction so we can check the same upload in a different |
644 | 222 | # pocket. | 222 | # pocket. |
645 | @@ -240,16 +240,16 @@ | |||
646 | 240 | ... print '%s/%s by %s: %s' % ( | 240 | ... print '%s/%s by %s: %s' % ( |
647 | 241 | ... entry.distroseries.name, entry.sourcepackagename.name, | 241 | ... entry.distroseries.name, entry.sourcepackagename.name, |
648 | 242 | ... entry.importer.name, entry.path) | 242 | ... entry.importer.name, entry.path) |
659 | 243 | dapper/pmount by mark: po/es_ES.po | 243 | dapper/pmount by ubuntu-team: po/es_ES.po |
660 | 244 | dapper/pmount by mark: po/ca.po | 244 | dapper/pmount by ubuntu-team: po/ca.po |
661 | 245 | dapper/pmount by mark: po/de.po | 245 | dapper/pmount by ubuntu-team: po/de.po |
662 | 246 | dapper/pmount by mark: po/cs.po | 246 | dapper/pmount by ubuntu-team: po/cs.po |
663 | 247 | dapper/pmount by mark: po/es.po | 247 | dapper/pmount by ubuntu-team: po/es.po |
664 | 248 | dapper/pmount by mark: po/fr.po | 248 | dapper/pmount by ubuntu-team: po/fr.po |
665 | 249 | dapper/pmount by mark: po/hr.po | 249 | dapper/pmount by ubuntu-team: po/hr.po |
666 | 250 | dapper/pmount by mark: po/nb.po | 250 | dapper/pmount by ubuntu-team: po/nb.po |
667 | 251 | dapper/pmount by mark: po/pmount.pot | 251 | dapper/pmount by ubuntu-team: po/pmount.pot |
668 | 252 | dapper/pmount by mark: po/it_IT.po | 252 | dapper/pmount by ubuntu-team: po/it_IT.po |
669 | 253 | 253 | ||
670 | 254 | # Let's abort the transaction so we can check the same upload in a different | 254 | # Let's abort the transaction so we can check the same upload in a different |
671 | 255 | # component. | 255 | # component. |
672 | 256 | 256 | ||
673 | === modified file 'lib/lp/testing/factory.py' | |||
674 | --- lib/lp/testing/factory.py 2011-03-17 14:28:30 +0000 | |||
675 | +++ lib/lp/testing/factory.py 2011-03-18 11:21:43 +0000 | |||
676 | @@ -2253,7 +2253,8 @@ | |||
677 | 2253 | 2253 | ||
678 | 2254 | def makeDistroRelease(self, distribution=None, version=None, | 2254 | def makeDistroRelease(self, distribution=None, version=None, |
679 | 2255 | status=SeriesStatus.DEVELOPMENT, | 2255 | status=SeriesStatus.DEVELOPMENT, |
681 | 2256 | parent_series=None, name=None, displayname=None): | 2256 | parent_series=None, name=None, displayname=None, |
682 | 2257 | registrant=None): | ||
683 | 2257 | """Make a new distro release.""" | 2258 | """Make a new distro release.""" |
684 | 2258 | if distribution is None: | 2259 | if distribution is None: |
685 | 2259 | distribution = self.makeDistribution() | 2260 | distribution = self.makeDistribution() |
686 | @@ -2263,6 +2264,8 @@ | |||
687 | 2263 | displayname = name.capitalize() | 2264 | displayname = name.capitalize() |
688 | 2264 | if version is None: | 2265 | if version is None: |
689 | 2265 | version = "%s.0" % self.getUniqueInteger() | 2266 | version = "%s.0" % self.getUniqueInteger() |
690 | 2267 | if registrant is None: | ||
691 | 2268 | registrant = distribution.owner | ||
692 | 2266 | 2269 | ||
693 | 2267 | # We don't want to login() as the person used to create the product, | 2270 | # We don't want to login() as the person used to create the product, |
694 | 2268 | # so we remove the security proxy before creating the series. | 2271 | # so we remove the security proxy before creating the series. |
695 | @@ -2273,7 +2276,7 @@ | |||
696 | 2273 | displayname=displayname, | 2276 | displayname=displayname, |
697 | 2274 | title=self.getUniqueString(), summary=self.getUniqueString(), | 2277 | title=self.getUniqueString(), summary=self.getUniqueString(), |
698 | 2275 | description=self.getUniqueString(), | 2278 | description=self.getUniqueString(), |
700 | 2276 | parent_series=parent_series, owner=distribution.owner) | 2279 | parent_series=parent_series, registrant=registrant) |
701 | 2277 | series.status = status | 2280 | series.status = status |
702 | 2278 | return ProxyFactory(series) | 2281 | return ProxyFactory(series) |
703 | 2279 | 2282 | ||
704 | 2280 | 2283 | ||
705 | === modified file 'lib/lp/translations/browser/tests/test_sharing_information.py' | |||
706 | --- lib/lp/translations/browser/tests/test_sharing_information.py 2011-03-08 11:01:41 +0000 | |||
707 | +++ lib/lp/translations/browser/tests/test_sharing_information.py 2011-03-18 11:21:43 +0000 | |||
708 | @@ -1,15 +1,15 @@ | |||
710 | 1 | # Copyright 2010 Canonical Ltd. This software is licensed under the | 1 | # Copyright 2010-2011 Canonical Ltd. This software is licensed under the |
711 | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). |
712 | 3 | 3 | ||
713 | 4 | """Tests for the POTemplate recipe view classes and templates.""" | 4 | """Tests for the POTemplate recipe view classes and templates.""" |
714 | 5 | 5 | ||
715 | 6 | __metaclass__ = type | 6 | __metaclass__ = type |
716 | 7 | 7 | ||
717 | 8 | from canonical.testing.layers import DatabaseFunctionalLayer | ||
718 | 9 | from canonical.launchpad.testing.pages import ( | 8 | from canonical.launchpad.testing.pages import ( |
719 | 10 | extract_text, | 9 | extract_text, |
720 | 11 | find_tag_by_id, | 10 | find_tag_by_id, |
721 | 12 | ) | 11 | ) |
722 | 12 | from canonical.testing.layers import DatabaseFunctionalLayer | ||
723 | 13 | from lp.app.enums import ServiceUsage | 13 | from lp.app.enums import ServiceUsage |
724 | 14 | from lp.services.features.testing import FeatureFixture | 14 | from lp.services.features.testing import FeatureFixture |
725 | 15 | from lp.testing import ( | 15 | from lp.testing import ( |
726 | @@ -253,7 +253,8 @@ | |||
727 | 253 | 253 | ||
728 | 254 | def getAuthorizedUser(self, potemplate): | 254 | def getAuthorizedUser(self, potemplate): |
729 | 255 | with celebrity_logged_in('admin'): | 255 | with celebrity_logged_in('admin'): |
731 | 256 | potemplate.distroseries.owner = self.factory.makePerson( | 256 | distribution = potemplate.distroseries.distribution |
732 | 257 | distribution.owner = self.factory.makePerson( | ||
733 | 257 | password='test') | 258 | password='test') |
734 | 258 | return potemplate.distroseries.owner | 259 | return potemplate.distroseries.owner |
735 | 259 | 260 | ||
736 | @@ -283,6 +284,7 @@ | |||
737 | 283 | 284 | ||
738 | 284 | def getAuthorizedUser(self, sourcepackage): | 285 | def getAuthorizedUser(self, sourcepackage): |
739 | 285 | with celebrity_logged_in('admin'): | 286 | with celebrity_logged_in('admin'): |
741 | 286 | sourcepackage.distroseries.owner = self.factory.makePerson( | 287 | makePerson = self.factory.makePerson |
742 | 288 | sourcepackage.distroseries.distribution.owner = makePerson( | ||
743 | 287 | password='test') | 289 | password='test') |
744 | 288 | return sourcepackage.distroseries.owner | 290 | return sourcepackage.distroseries.owner |
745 | 289 | 291 | ||
746 | === modified file 'utilities/soyuz-sampledata-setup.py' | |||
747 | --- utilities/soyuz-sampledata-setup.py 2011-02-27 08:21:54 +0000 | |||
748 | +++ utilities/soyuz-sampledata-setup.py 2011-03-18 11:21:43 +0000 | |||
749 | @@ -218,14 +218,14 @@ | |||
750 | 218 | def create_series(parent, full_name, version, status): | 218 | def create_series(parent, full_name, version, status): |
751 | 219 | """Set up a `DistroSeries`.""" | 219 | """Set up a `DistroSeries`.""" |
752 | 220 | distribution = parent.distribution | 220 | distribution = parent.distribution |
754 | 221 | owner = parent.owner | 221 | registrant = parent.owner |
755 | 222 | name = full_name.split()[0].lower() | 222 | name = full_name.split()[0].lower() |
756 | 223 | title = "The " + full_name | 223 | title = "The " + full_name |
757 | 224 | displayname = full_name.split()[0] | 224 | displayname = full_name.split()[0] |
758 | 225 | new_series = distribution.newSeries(name=name, title=title, | 225 | new_series = distribution.newSeries(name=name, title=title, |
759 | 226 | displayname=displayname, summary='Ubuntu %s is good.' % version, | 226 | displayname=displayname, summary='Ubuntu %s is good.' % version, |
760 | 227 | description='%s is awesome.' % version, version=version, | 227 | description='%s is awesome.' % version, version=version, |
762 | 228 | parent_series=parent, owner=owner) | 228 | parent_series=parent, registrant=registrant) |
763 | 229 | new_series.status = status | 229 | new_series.status = status |
764 | 230 | notify(ObjectCreatedEvent(new_series)) | 230 | notify(ObjectCreatedEvent(new_series)) |
765 | 231 | 231 |
A couple of minor things to mention:
1. The db patch can just rename the column instead of deleting/adding. registry/ configure. zcml is weirdly formatted in the diff here.
2. The chunk of added zcml in 'lib/lp/
Nothing else leaps out at me, so unless Curtis sees a problem I'm ok with it.