Merge lp:~jml/launchpad/interface-apocalypse into lp:launchpad

Proposed by Jonathan Lange
Status: Merged
Approved by: Michael Hudson-Doyle
Approved revision: no longer in the source branch.
Merged at revision: 11895
Proposed branch: lp:~jml/launchpad/interface-apocalypse
Merge into: lp:launchpad
Prerequisite: lp:~jml/launchpad/patmos-2
Diff against target: 258 lines (+37/-156)
6 files modified
lib/canonical/launchpad/doc/renamed-view.txt (+1/-1)
lib/canonical/launchpad/interfaces/__init__.py (+12/-146)
lib/lp/bugs/interfaces/__init__.py (+0/-5)
lib/lp/code/interfaces/webservice.py (+23/-0)
lib/lp/soyuz/interfaces/archive.py (+1/-0)
lib/lp/soyuz/interfaces/webservice.py (+0/-4)
To merge this branch: bzr merge lp:~jml/launchpad/interface-apocalypse
Reviewer Review Type Date Requested Status
Michael Hudson-Doyle Approve
Curtis Hovey (community) code Needs Fixing
Review via email: mp+40452@code.launchpad.net

Commit message

Do not re-export anything from lib/canonical/launchpad/interfaces/__init__.py. Explicitly register webservice code.

Description of the change

This branch destroys lib/canonical/launchpad/interfaces/__init__.py

To post a comment you must log in.
Revision history for this message
Curtis Hovey (sinzui) wrote :

\o/ Please land this.

review: Needs Fixing (code)
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Really.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/canonical/launchpad/doc/renamed-view.txt'
2--- lib/canonical/launchpad/doc/renamed-view.txt 2010-10-09 16:36:22 +0000
3+++ lib/canonical/launchpad/doc/renamed-view.txt 2010-11-10 10:51:17 +0000
4@@ -103,7 +103,7 @@
5 ... <include package="canonical.launchpad.webapp" file="meta.zcml" />
6 ... <include package="zope.app.zcmlfiles" file="meta.zcml" />
7 ... <browser:renamed-page
8- ... for="canonical.launchpad.interfaces.IQuestionTarget"
9+ ... for="lp.answers.interfaces.questiontarget.IQuestionTarget"
10 ... name="+old_tickets_page"
11 ... new_name="+questions"
12 ... rootsite="answers"
13
14=== modified file 'lib/canonical/launchpad/interfaces/__init__.py'
15--- lib/canonical/launchpad/interfaces/__init__.py 2010-10-31 20:18:45 +0000
16+++ lib/canonical/launchpad/interfaces/__init__.py 2010-11-10 10:51:17 +0000
17@@ -1,146 +1,12 @@
18-# Copyright 2009 Canonical Ltd. This software is licensed under the
19-# GNU Affero General Public License version 3 (see the file LICENSE).
20-
21-# pylint: disable-msg=W0401,C0301
22-
23-__metaclass__ = type
24-
25-# XXX flacoste 2009/03/18 We should use specific imports instead of
26-# importing from this module.
27-
28-# SKIP this file when formatting imports.
29-from canonical.launchpad.interfaces.launchpad import *
30-from lp.bugs.interfaces.malone import *
31-from canonical.launchpad.interfaces.validation import *
32-
33-# these need to be at the top, because the others depend on them sometimes
34-from lp.blueprints.interfaces.specificationtarget import *
35-from lp.registry.interfaces.person import *
36-from lp.registry.interfaces.pillar import *
37-
38-from canonical.launchpad.interfaces.account import *
39-from lp.soyuz.interfaces.archive import *
40-from lp.soyuz.interfaces.archivedependency import *
41-from lp.soyuz.interfaces.archivepermission import *
42-from lp.soyuz.interfaces.archivesubscriber import *
43-from lp.registry.interfaces.announcement import *
44-from canonical.launchpad.interfaces.authserver import *
45-from canonical.launchpad.interfaces.authtoken import *
46-from lp.soyuz.interfaces.binarypackagerelease import *
47-from lp.soyuz.interfaces.binarypackagename import *
48-from lp.bugs.interfaces.bugactivity import *
49-from lp.bugs.interfaces.bugattachment import *
50-from lp.bugs.interfaces.bug import *
51-from lp.bugs.interfaces.bugbranch import *
52-from lp.bugs.interfaces.bugcve import *
53-from lp.bugs.interfaces.buglink import *
54-from lp.bugs.interfaces.bugmessage import *
55-from lp.bugs.interfaces.bugnomination import *
56-from lp.bugs.interfaces.bugnotification import *
57-from lp.bugs.interfaces.bugsubscription import *
58-from lp.bugs.interfaces.bugsupervisor import *
59-from lp.bugs.interfaces.bugtask import *
60-from lp.bugs.interfaces.bugtarget import *
61-from lp.bugs.interfaces.bugtracker import *
62-from lp.bugs.interfaces.bugwatch import *
63-from lp.soyuz.interfaces.binarypackagebuild import *
64-from lp.buildmaster.interfaces.builder import *
65-from lp.soyuz.interfaces.buildrecords import *
66-from lp.registry.interfaces.codeofconduct import *
67-from lp.registry.interfaces.commercialsubscription import *
68-from lp.soyuz.interfaces.component import *
69-from lp.services.worlddata.interfaces.country import *
70-from lp.bugs.interfaces.cve import *
71-from lp.bugs.interfaces.cvereference import *
72-from lp.registry.interfaces.distribution import *
73-from lp.registry.interfaces.distributionmirror import *
74-from lp.registry.interfaces.distributionsourcepackage import *
75-from lp.registry.interfaces.distroseriesdifference import *
76-from lp.registry.interfaces.distroseriesdifferencecomment import *
77-from lp.soyuz.interfaces.distributionsourcepackagecache import *
78-from lp.soyuz.interfaces.distributionsourcepackagerelease import *
79-from lp.registry.interfaces.series import *
80-from lp.soyuz.interfaces.distroarchseries import *
81-from lp.soyuz.interfaces.distroarchseriesbinarypackage import *
82-from lp.soyuz.interfaces.distroarchseriesbinarypackagerelease\
83- import *
84-from lp.registry.interfaces.distroseries import *
85-from lp.soyuz.interfaces.distroseriesbinarypackage import *
86-from lp.soyuz.interfaces.distroseriespackagecache import *
87-from lp.soyuz.interfaces.distroseriessourcepackagerelease import *
88-from canonical.launchpad.interfaces.emailaddress import *
89-from lp.registry.interfaces.entitlement import *
90-from lp.bugs.interfaces.externalbugtracker import *
91-from lp.registry.interfaces.featuredproject import *
92-from lp.soyuz.interfaces.files import *
93-from lp.registry.interfaces.gpg import *
94-from canonical.launchpad.interfaces.gpghandler import *
95-from lp.hardwaredb.interfaces.hwdb import *
96-from lp.registry.interfaces.irc import *
97-from lp.registry.interfaces.jabber import *
98-from lp.registry.interfaces.karma import *
99-from lp.services.worlddata.interfaces.language import *
100-from canonical.launchpad.interfaces.launchpad import *
101-from canonical.launchpad.interfaces.launchpadstatistic import *
102-from canonical.launchpad.interfaces.librarian import *
103-from lp.registry.interfaces.location import *
104-from canonical.launchpad.interfaces.logintoken import *
105-from canonical.launchpad.interfaces.lpstorm import *
106-from canonical.launchpad.interfaces.mail import *
107-from canonical.launchpad.interfaces.mailbox import *
108-from lp.registry.interfaces.mailinglist import *
109-from lp.registry.interfaces.mailinglistsubscription import *
110-from canonical.launchpad.interfaces.message import *
111-from lp.registry.interfaces.milestone import *
112-from canonical.launchpad.interfaces.oauth import *
113-from canonical.launchpad.interfaces.openidconsumer import *
114-from canonical.launchpad.interfaces.packagerelationship import *
115-from canonical.launchpad.interfaces.pathlookup import *
116-from lp.registry.interfaces.poll import *
117-from lp.soyuz.interfaces.processor import *
118-from lp.registry.interfaces.product import *
119-from lp.registry.interfaces.productlicense import *
120-from lp.registry.interfaces.productrelease import *
121-from lp.registry.interfaces.productseries import *
122-from lp.registry.interfaces.projectgroup import *
123-from lp.soyuz.interfaces.publishing import *
124-from lp.soyuz.interfaces.queue import *
125-from canonical.launchpad.interfaces.schema import *
126-from lp.services.scripts.interfaces.scriptactivity import *
127-from lp.soyuz.interfaces.section import *
128-from canonical.launchpad.interfaces.searchservice import *
129-from lp.registry.interfaces.sourcepackage import *
130-from lp.registry.interfaces.sourcepackagename import *
131-from lp.soyuz.interfaces.sourcepackagerelease import *
132-from lp.blueprints.interfaces.specification import *
133-from lp.blueprints.interfaces.specificationbranch import *
134-from lp.blueprints.interfaces.specificationbug import *
135-from lp.blueprints.interfaces.specificationdependency import *
136-from lp.blueprints.interfaces.specificationfeedback import *
137-from lp.blueprints.interfaces.specificationsubscription import *
138-from lp.services.worlddata.interfaces.spokenin import *
139-from lp.blueprints.interfaces.sprint import *
140-from lp.blueprints.interfaces.sprintattendance import *
141-from lp.blueprints.interfaces.sprintspecification import *
142-from lp.registry.interfaces.ssh import *
143-from lp.registry.interfaces.structuralsubscription import *
144-from lp.registry.interfaces.teammembership import *
145-from canonical.launchpad.interfaces.temporaryblobstorage import *
146-from lp.registry.interfaces.wikiname import *
147-from lp.soyuz.interfaces.packagediff import *
148-from lp.soyuz.interfaces.packageset import *
149-
150-from lp.answers.interfaces.answercontact import *
151-from lp.answers.interfaces.faq import *
152-from lp.answers.interfaces.faqcollection import *
153-from lp.answers.interfaces.faqtarget import *
154-from lp.answers.interfaces.question import *
155-from lp.coop.answersbugs.interfaces import *
156-from lp.answers.interfaces.questioncollection import *
157-from lp.answers.interfaces.questionenums import *
158-from lp.answers.interfaces.questionmessage import *
159-from lp.answers.interfaces.questionreopening import *
160-from lp.answers.interfaces.questionsubscription import *
161-from lp.answers.interfaces.questiontarget import *
162-
163-from canonical.launchpad.interfaces._schema_circular_imports import *
164+# Copyright 2009-2010 Canonical Ltd. This software is licensed under the GNU
165+# Affero General Public License version 3 (see the file LICENSE).
166+
167+"""Interface definitions for bits of Launchpad that don't fit anywhere else.
168+
169+See also `canonical.launchpad.database` for implementations of these
170+interfaces.
171+
172+DEPRECATED: This package is deprecated. Do not add any new modules to this
173+package. Where possible, move things out of this package into better
174+locations under the 'lp' package. See the `lp` docstring for more details.
175+"""
176
177=== modified file 'lib/lp/bugs/interfaces/__init__.py'
178--- lib/lp/bugs/interfaces/__init__.py 2010-08-20 20:31:18 +0000
179+++ lib/lp/bugs/interfaces/__init__.py 2010-11-10 10:51:17 +0000
180@@ -1,9 +1,4 @@
181 # Copyright 2009 Canonical Ltd. This software is licensed under the
182 # GNU Affero General Public License version 3 (see the file LICENSE).
183
184-# XXX Gavin Panella bug=384831 2009-06-08
185-# This ensures that interfaces are loaded in the correct order. Things
186-# otherwise break.
187-import canonical.launchpad.interfaces
188-
189
190
191=== modified file 'lib/lp/code/interfaces/webservice.py'
192--- lib/lp/code/interfaces/webservice.py 2010-11-10 10:51:16 +0000
193+++ lib/lp/code/interfaces/webservice.py 2010-11-10 10:51:17 +0000
194@@ -32,6 +32,29 @@
195 'TooManyBuilds',
196 ]
197
198+__all__ = [
199+ 'BranchCreatorNotMemberOfOwnerTeam',
200+ 'BranchCreatorNotOwner',
201+ 'BranchExists',
202+ 'BranchMergeProposalExists',
203+ 'BuildAlreadyPending',
204+ 'CodeImportAlreadyRunning',
205+ 'CodeImportNotInReviewedState',
206+ 'IBranch',
207+ 'IBranchMergeProposal',
208+ 'IBranchSet',
209+ 'IBranchSubscription',
210+ 'ICodeImport',
211+ 'ICodeReviewComment',
212+ 'ICodeReviewVoteReference',
213+ 'IDiff',
214+ 'IPreviewDiff',
215+ 'ISourcePackageRecipe',
216+ 'ISourcePackageRecipeBuild',
217+ 'IStaticDiff',
218+ 'TooManyBuilds',
219+ ]
220+
221 # The exceptions are imported so that they can produce the special
222 # status code defined by webservice_error when they are raised.
223 from lp.code.errors import (
224
225=== modified file 'lib/lp/soyuz/interfaces/archive.py'
226--- lib/lp/soyuz/interfaces/archive.py 2010-11-02 21:44:42 +0000
227+++ lib/lp/soyuz/interfaces/archive.py 2010-11-10 10:51:17 +0000
228@@ -17,6 +17,7 @@
229 'CannotSwitchPrivacy',
230 'ComponentNotFound',
231 'CannotRestrictArchitectures',
232+ 'CannotUploadToArchive',
233 'CannotUploadToPPA',
234 'CannotUploadToPocket',
235 'DistroSeriesNotFound',
236
237=== modified file 'lib/lp/soyuz/interfaces/webservice.py'
238--- lib/lp/soyuz/interfaces/webservice.py 2010-11-10 10:51:16 +0000
239+++ lib/lp/soyuz/interfaces/webservice.py 2010-11-10 10:51:17 +0000
240@@ -32,9 +32,7 @@
241 'IDistroArchSeries',
242 'IPackageUpload',
243 'IPackageset',
244- 'IPackagesetEdit',
245 'IPackagesetSet',
246- 'IPackagesetViewOnly',
247 'ISourcePackagePublishingHistory',
248 'IncompatibleArguments',
249 'InsufficientUploadRights',
250@@ -89,8 +87,6 @@
251 from lp.soyuz.interfaces.distroarchseries import IDistroArchSeries
252 from lp.soyuz.interfaces.packageset import (
253 DuplicatePackagesetName,
254- IPackagesetViewOnly,
255- IPackagesetEdit,
256 IPackageset,
257 IPackagesetSet,
258 NoSuchPackageSet,