Merge ~cjwatson/launchpad:export-official-flags into launchpad:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: 32e103bde393cf83bbb445035ad7186edc3f2e0e
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/launchpad:export-official-flags
Merge into: launchpad:master
Diff against target: 71 lines (+24/-12)
3 files modified
lib/lp/app/interfaces/launchpad.py (+16/-12)
lib/lp/registry/stories/webservice/xx-distribution.txt (+4/-0)
lib/lp/registry/stories/webservice/xx-project-registry.txt (+4/-0)
Reviewer Review Type Date Requested Status
Tom Wardill (community) Approve
Review via email: mp+374533@code.launchpad.net

Commit message

Export ILaunchpadUsage official_* flags

For example, this is useful for reconfiguring things like bug tracking
on a large number of projects.

To post a comment you must log in.
Revision history for this message
Tom Wardill (twom) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/lib/lp/app/interfaces/launchpad.py b/lib/lp/app/interfaces/launchpad.py
index 160da2e..96a2f95 100644
--- a/lib/lp/app/interfaces/launchpad.py
+++ b/lib/lp/app/interfaces/launchpad.py
@@ -115,18 +115,22 @@ class IServiceUsage(Interface):
115115
116class ILaunchpadUsage(Interface):116class ILaunchpadUsage(Interface):
117 """How the project uses Launchpad."""117 """How the project uses Launchpad."""
118 official_answers = Bool(118 official_answers = exported(
119 title=_('People can ask questions in Launchpad Answers'),119 Bool(
120 required=True)120 title=_('People can ask questions in Launchpad Answers'),
121 official_blueprints = Bool(121 required=True))
122 title=_('This project uses blueprints'), required=True)122 official_blueprints = exported(
123 official_codehosting = Bool(123 Bool(title=_('This project uses blueprints'), required=True))
124 title=_('Code for this project is published in Bazaar branches on'124 official_codehosting = exported(
125 ' Launchpad'),125 Bool(
126 required=True)126 title=_('Code for this project is published in Bazaar branches on'
127 official_malone = Bool(127 ' Launchpad'),
128 title=_('Bugs in this project are tracked in Launchpad'),128 required=True))
129 required=True)129 official_malone = exported(
130 Bool(
131 title=_('Bugs in this project are tracked in Launchpad'),
132 required=True),
133 exported_as='official_bugs')
130 official_anything = Bool(134 official_anything = Bool(
131 title=_('Uses Launchpad for something'))135 title=_('Uses Launchpad for something'))
132 enable_bug_expiration = Bool(136 enable_bug_expiration = Bool(
diff --git a/lib/lp/registry/stories/webservice/xx-distribution.txt b/lib/lp/registry/stories/webservice/xx-distribution.txt
index f8a4d58..1c0ed87 100644
--- a/lib/lp/registry/stories/webservice/xx-distribution.txt
+++ b/lib/lp/registry/stories/webservice/xx-distribution.txt
@@ -44,7 +44,11 @@ And for every distribution we publish most of its attributes.
44 mirror_admin_link: u'http://.../~ubuntu-mirror-admins'44 mirror_admin_link: u'http://.../~ubuntu-mirror-admins'
45 mugshot_link: u'http://.../ubuntu/mugshot'45 mugshot_link: u'http://.../ubuntu/mugshot'
46 name: u'ubuntu'46 name: u'ubuntu'
47 official_answers: True
48 official_blueprints: True
47 official_bug_tags: []49 official_bug_tags: []
50 official_bugs: True
51 official_codehosting: False
48 official_packages: True52 official_packages: True
49 owner_link: u'http://.../~ubuntu-team'53 owner_link: u'http://.../~ubuntu-team'
50 redirect_release_uploads: False54 redirect_release_uploads: False
diff --git a/lib/lp/registry/stories/webservice/xx-project-registry.txt b/lib/lp/registry/stories/webservice/xx-project-registry.txt
index 59ce22b..86f87ec 100644
--- a/lib/lp/registry/stories/webservice/xx-project-registry.txt
+++ b/lib/lp/registry/stories/webservice/xx-project-registry.txt
@@ -177,7 +177,11 @@ Projects are available at their canonical URL on the API virtual host.
177 licenses: [u'MIT / X / Expat Licence']177 licenses: [u'MIT / X / Expat Licence']
178 logo_link: u'http://.../firefox/logo'178 logo_link: u'http://.../firefox/logo'
179 name: u'firefox'179 name: u'firefox'
180 official_answers: True
181 official_blueprints: False
180 official_bug_tags: []182 official_bug_tags: []
183 official_bugs: True
184 official_codehosting: False
181 owner_link: u'http://.../~name12'185 owner_link: u'http://.../~name12'
182 private: False186 private: False
183 private_bugs: False187 private_bugs: False

Subscribers

People subscribed via source and target branches

to status/vote changes: