~launchpad-pqm/launchpad/devel

13137.1.13 by Aaron Bentley
Faked a merge of stable@13159.
1
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
8687.15.18 by Karl Fogel
Add the copyright header block to files under lib/canonical/.
2
# GNU Affero General Public License version 3 (see the file LICENSE).
6954.3.5 by Tim Penhey
Fix the circular import problem with IBranch.product.
3
4
"""Update the interface schema values due to circular imports.
5
6
There are situations where there would normally be circular imports to define
7
the necessary schema values in some interface fields.  To avoid this the
8
schema is initially set to `Interface`, but this needs to be updated once the
9
types are defined.
10
"""
11
12
__metaclass__ = type
13
14
7570.4.8 by Jeroen Vermeulen
Lint fix from allenap.
15
__all__ = []
16
17
8122.4.2 by Leonard Richardson
Partial search-and-replace.
18
from lazr.restful.declarations import LAZR_WEBSERVICE_EXPORTED
10747.1.1 by Aaron Bentley
Export createRecipe to web service.
19
from lazr.restful.fields import Reference
8122.4.2 by Leonard Richardson
Partial search-and-replace.
20
14560.2.8 by Curtis Hovey
Moved api helpers to lp.services.webservice.
21
from lp.services.webservice.apihelpers import (
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
22
    patch_choice_parameter_type,
12278.1.1 by Graham Binns
Reverted the reversion of devel r12272.
23
    patch_choice_vocabulary,
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
24
    patch_collection_property,
25
    patch_collection_return_type,
12599.4.4 by Leonard Richardson
Fixed the configuration so that errors start showing up in earnest.
26
    patch_entry_explicit_version,
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
27
    patch_entry_return_type,
28
    patch_list_parameter_type,
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
29
    patch_operations_explicit_version,
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
30
    patch_plain_parameter_type,
31
    patch_reference_property,
32
    )
33
from lp.blueprints.interfaces.specification import ISpecification
34
from lp.blueprints.interfaces.specificationbranch import ISpecificationBranch
11962.3.12 by Guilherme Salgado
Export IHasSpecifications.all_specifications and IHasSpecifications.valid_specifications
35
from lp.blueprints.interfaces.specificationtarget import (
36
    IHasSpecifications,
37
    ISpecificationTarget,
38
    )
7675.1029.6 by Gary Poster
a few more new import fix-ups from the newest db-devel
39
from lp.bugs.enum import BugNotificationLevel
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
40
from lp.bugs.interfaces.bug import (
41
    IBug,
42
    IFrontPageBugAddForm,
43
    )
12599.4.13 by Leonard Richardson
Rationalized imports.
44
from lp.bugs.interfaces.bugactivity import IBugActivity
45
from lp.bugs.interfaces.bugattachment import IBugAttachment
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
46
from lp.bugs.interfaces.bugbranch import IBugBranch
9206.3.3 by William Grant
Export IBug.getNominations; we can now get IBugNominations.
47
from lp.bugs.interfaces.bugnomination import IBugNomination
11526.4.49 by Gavin Panella
Patch bug_filters value_type.
48
from lp.bugs.interfaces.bugsubscriptionfilter import IBugSubscriptionFilter
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
49
from lp.bugs.interfaces.bugtarget import (
50
    IBugTarget,
51
    IHasBugs,
52
    )
8523.3.23 by Gavin Panella
Merge devel.
53
from lp.bugs.interfaces.bugtask import IBugTask
7675.888.15 by Bryce Harrington
Review by gavin: Resolve circular imports
54
from lp.bugs.interfaces.bugtracker import (
55
    IBugTracker,
56
    IBugTrackerComponent,
7675.888.22 by Bryce Harrington
Define return types for new BugTracker routines.
57
    IBugTrackerComponentGroup,
12599.4.13 by Leonard Richardson
Rationalized imports.
58
    IBugTrackerSet,
7675.888.15 by Bryce Harrington
Review by gavin: Resolve circular imports
59
    )
10094.3.42 by Gavin Panella
Sort out some imports.
60
from lp.bugs.interfaces.bugwatch import IBugWatch
12599.4.13 by Leonard Richardson
Rationalized imports.
61
from lp.bugs.interfaces.cve import ICve
62
from lp.bugs.interfaces.malone import IMaloneApplication
12494.1.29 by Gavin Panella
Export architectures for IDistroSeries via the web API.
63
from lp.bugs.interfaces.structuralsubscription import (
64
    IStructuralSubscription,
65
    IStructuralSubscriptionTarget,
66
    )
11458.1.1 by Jelmer Vernooij
Move enums of buildmaster.
67
from lp.buildmaster.enums import BuildStatus
12599.4.13 by Leonard Richardson
Rationalized imports.
68
from lp.buildmaster.interfaces.builder import (
69
    IBuilder,
70
    IBuilderSet,
71
    )
11005.3.9 by Michael Nelson
Removed outer proxy after nested proxy confusion.
72
from lp.buildmaster.interfaces.buildfarmjob import IBuildFarmJob
7675.687.23 by Michael Nelson
Started updating IBuildFarmJob to export fields from old IBuildBase.
73
from lp.buildmaster.interfaces.buildqueue import IBuildQueue
8138.1.2 by Jonathan Lange
Run migrater over lp.code. Many tests broken and imports failing.
74
from lp.code.interfaces.branch import IBranch
8555.2.4 by Tim Penhey
Move BranchMergeProposalStatus.
75
from lp.code.interfaces.branchmergeproposal import IBranchMergeProposal
12599.4.13 by Leonard Richardson
Rationalized imports.
76
from lp.code.interfaces.branchmergequeue import IBranchMergeQueue
8555.2.5 by Tim Penhey
Move the branch subscription enums.
77
from lp.code.interfaces.branchsubscription import IBranchSubscription
10454.3.1 by James Westby
Basic export of ICodeImport.
78
from lp.code.interfaces.codeimport import ICodeImport
8555.2.9 by Tim Penhey
Move CodeReviewVote enum.
79
from lp.code.interfaces.codereviewcomment import ICodeReviewComment
80
from lp.code.interfaces.codereviewvote import ICodeReviewVoteReference
8590.1.1 by Tim Penhey
Move diffs into lp/code
81
from lp.code.interfaces.diff import IPreviewDiff
10242.4.1 by James Westby
Export a method on IPerson to get the reviews they have been requested to do.
82
from lp.code.interfaces.hasbranches import (
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
83
    IHasBranches,
84
    IHasCodeImports,
85
    IHasMergeProposals,
86
    IHasRequestedReviews,
87
    )
12397.2.14 by Ian Booth
Fix some tests
88
from lp.code.interfaces.hasrecipes import IHasRecipes
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
89
from lp.code.interfaces.sourcepackagerecipe import ISourcePackageRecipe
7675.539.23 by William Grant
Replace the ISPR.s_p_r_b Attribute with a more specific Reference.
90
from lp.code.interfaces.sourcepackagerecipebuild import (
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
91
    ISourcePackageRecipeBuild,
92
    )
93
from lp.hardwaredb.interfaces.hwdb import (
94
    HWBus,
12599.4.13 by Leonard Richardson
Rationalized imports.
95
    IHWDBApplication,
96
    IHWDevice,
97
    IHWDeviceClass,
98
    IHWDriver,
99
    IHWDriverName,
100
    IHWDriverPackageName,
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
101
    IHWSubmission,
12599.4.13 by Leonard Richardson
Rationalized imports.
102
    IHWSubmissionDevice,
103
    IHWVendorID,
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
104
    )
7675.1124.5 by Raphael Badin
Fix test & api method parameters as per MP's comments.
105
from lp.registry.enum import (
106
    DistroSeriesDifferenceStatus,
107
    DistroSeriesDifferenceType,
108
    )
12494.3.3 by Gavin Panella
Merged dd-initseries-bug-727105-derivation-vocab into dd-initseries-bug-727105-architecture-picker.
109
from lp.registry.interfaces.commercialsubscription import (
110
    ICommercialSubscription,
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
111
    )
8294.6.6 by Julian Edwards
Fix a bunch more of circular import cack, now I can run some tests and fix those, yay me.
112
from lp.registry.interfaces.distribution import IDistribution
10236.2.1 by Jonathan Davies
Defined IDistributionMirror.distribution as an IDistribution in
113
from lp.registry.interfaces.distributionmirror import IDistributionMirror
8294.6.7 by Julian Edwards
Circular dependencies, gotta love those.
114
from lp.registry.interfaces.distributionsourcepackage import (
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
115
    IDistributionSourcePackage,
116
    )
7675.110.3 by Curtis Hovey
Ran the migration script to move registry code to lp.registry.
117
from lp.registry.interfaces.distroseries import IDistroSeries
12599.4.13 by Leonard Richardson
Rationalized imports.
118
from lp.registry.interfaces.distroseriesdifference import (
119
    IDistroSeriesDifference,
120
    )
7675.834.31 by Michael Nelson
Exported addComment.
121
from lp.registry.interfaces.distroseriesdifferencecomment import (
122
    IDistroSeriesDifferenceComment,
123
    )
12599.4.13 by Leonard Richardson
Rationalized imports.
124
from lp.registry.interfaces.gpg import IGPGKey
125
from lp.registry.interfaces.irc import IIrcID
126
from lp.registry.interfaces.jabber import IJabberID
12494.3.3 by Gavin Panella
Merged dd-initseries-bug-727105-derivation-vocab into dd-initseries-bug-727105-architecture-picker.
127
from lp.registry.interfaces.milestone import (
128
    IHasMilestones,
129
    IMilestone,
130
    )
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
131
from lp.registry.interfaces.person import (
132
    IPerson,
14494.3.3 by Curtis Hovey
Added a test to discover that getPPAByName must be LimitedView for traversal.
133
    IPersonLimitedView,
14494.4.2 by Curtis Hovey
Patched the private team traversal rules back into the tree because merge3 and diff3 suck.
134
    IPersonViewRestricted,
12599.4.13 by Leonard Richardson
Rationalized imports.
135
    ITeam,
136
    )
137
from lp.registry.interfaces.pillar import (
138
    IPillar,
139
    IPillarNameSet,
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
140
    )
9113.7.7 by Jonathan Lange
Update all the rest of the imports of PackagePublishingPocket.
141
from lp.registry.interfaces.pocket import PackagePublishingPocket
12599.4.13 by Leonard Richardson
Rationalized imports.
142
from lp.registry.interfaces.product import (
143
    IProduct,
144
    IProductSet,
145
    )
12494.3.3 by Gavin Panella
Merged dd-initseries-bug-727105-derivation-vocab into dd-initseries-bug-727105-architecture-picker.
146
from lp.registry.interfaces.productrelease import (
147
    IProductRelease,
148
    IProductReleaseFile,
149
    )
12599.4.13 by Leonard Richardson
Rationalized imports.
150
from lp.registry.interfaces.productseries import (
151
    IProductSeries,
152
    ITimelineProductSeries,
153
    )
154
from lp.registry.interfaces.projectgroup import (
155
    IProjectGroup,
156
    IProjectGroupSet,
157
    )
13139.3.2 by Francis J. Lacoste
Protect setBranch through launchpad.Edit
158
from lp.registry.interfaces.sourcepackage import (
159
    ISourcePackage,
13139.3.5 by Francis J. Lacoste
Fix lint.
160
    ISourcePackageEdit,
13139.3.2 by Francis J. Lacoste
Protect setBranch through launchpad.Edit
161
    ISourcePackagePublic,
13139.3.5 by Francis J. Lacoste
Fix lint.
162
    )
12599.4.13 by Leonard Richardson
Rationalized imports.
163
from lp.registry.interfaces.ssh import ISSHKey
164
from lp.registry.interfaces.teammembership import ITeamMembership
165
from lp.registry.interfaces.wikiname import IWikiName
7675.820.23 by Michael Nelson
Updated code to provide IComment attributes on the display comment rather than the view.
166
from lp.services.comments.interfaces.conversation import IComment
14108.2.1 by Raphael Badin
Expose IDistroSeries.nominatedarchindep on the api.
167
from lp.services.messages.interfaces.message import (
168
    IIndexedMessage,
169
    IMessage,
170
    IUserToUserEmail,
171
    )
12599.4.13 by Leonard Richardson
Rationalized imports.
172
from lp.services.worlddata.interfaces.country import (
173
    ICountry,
174
    ICountrySet,
175
    )
176
from lp.services.worlddata.interfaces.language import (
177
    ILanguage,
178
    ILanguageSet,
179
    )
11411.6.9 by Julian Edwards
Move PackageUploadStatus and PackageUploadCustomFormat
180
from lp.soyuz.enums import (
11411.6.12 by Julian Edwards
Move PackagePublishingStatus/Priority
181
    PackagePublishingStatus,
11411.6.9 by Julian Edwards
Move PackageUploadStatus and PackageUploadCustomFormat
182
    PackageUploadCustomFormat,
183
    PackageUploadStatus,
184
    )
8294.6.6 by Julian Edwards
Fix a bunch more of circular import cack, now I can run some tests and fix those, yay me.
185
from lp.soyuz.interfaces.archive import IArchive
12599.4.13 by Leonard Richardson
Rationalized imports.
186
from lp.soyuz.interfaces.archivedependency import IArchiveDependency
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
187
from lp.soyuz.interfaces.archivepermission import IArchivePermission
188
from lp.soyuz.interfaces.archivesubscriber import IArchiveSubscriber
189
from lp.soyuz.interfaces.binarypackagebuild import IBinaryPackageBuild
12599.4.13 by Leonard Richardson
Rationalized imports.
190
from lp.soyuz.interfaces.binarypackagerelease import (
191
    IBinaryPackageReleaseDownloadCount,
192
    )
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
193
from lp.soyuz.interfaces.buildrecords import IHasBuildRecords
8294.6.6 by Julian Edwards
Fix a bunch more of circular import cack, now I can run some tests and fix those, yay me.
194
from lp.soyuz.interfaces.distroarchseries import IDistroArchSeries
12599.4.13 by Leonard Richardson
Rationalized imports.
195
from lp.soyuz.interfaces.packageset import (
196
    IPackageset,
197
    IPackagesetSet,
198
    )
13240.2.17 by Brad Crittenden
Moved circular patching to local webservice file per review suggestion.
199
from lp.soyuz.interfaces.processor import IProcessorFamily
8294.6.1 by Julian Edwards
First stab at code-reorg. Still got a discrepancy on stuff I assigned to registry but not migrated yet.
200
from lp.soyuz.interfaces.publishing import (
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
201
    IBinaryPackagePublishingHistory,
202
    ISourcePackagePublishingHistory,
203
    ISourcePackagePublishingHistoryPublic,
204
    )
11526.4.49 by Gavin Panella
Patch bug_filters value_type.
205
from lp.soyuz.interfaces.queue import IPackageUpload
7675.539.23 by William Grant
Replace the ISPR.s_p_r_b Attribute with a more specific Reference.
206
from lp.soyuz.interfaces.sourcepackagerelease import ISourcePackageRelease
11818.3.1 by Jeroen Vermeulen
Split out lp.translations.enums and lp.translations.interfaces.hastranslationimports.
207
from lp.translations.interfaces.hastranslationimports import (
208
    IHasTranslationImports,
12599.4.14 by Leonard Richardson
Corrected an import.
209
    )
210
from lp.translations.interfaces.hastranslationtemplates import (
11882.1.1 by Jeroen Vermeulen
Independence for IHasTranslationTemplates\!
211
    IHasTranslationTemplates,
212
    )
10355.4.3 by Adi Roiban
Prototype ready to review.
213
from lp.translations.interfaces.pofile import IPOFile
10355.4.7 by Adi Roiban
Move all_potemplates to IHasTranslationTemplates.
214
from lp.translations.interfaces.potemplate import (
11403.1.4 by Henning Eggers
Reformatted imports using format-imports script r32.
215
    IPOTemplate,
216
    IPOTemplateSharingSubset,
217
    IPOTemplateSubset,
218
    )
12599.4.13 by Leonard Richardson
Rationalized imports.
219
from lp.translations.interfaces.translationgroup import ITranslationGroup
11772.1.1 by Jeroen Vermeulen
Export IHasTranslationImports.getTranslationImportQueueEntries on the API.
220
from lp.translations.interfaces.translationimportqueue import (
12599.4.13 by Leonard Richardson
Rationalized imports.
221
    ITranslationImportQueue,
11772.1.1 by Jeroen Vermeulen
Export IHasTranslationImports.getTranslationImportQueueEntries on the API.
222
    ITranslationImportQueueEntry,
223
    )
10355.4.7 by Adi Roiban
Move all_potemplates to IHasTranslationTemplates.
224
6954.3.5 by Tim Penhey
Fix the circular import problem with IBranch.product.
225
8632.2.6 by Paul Hummer
Exposed and tested getSubscription
226
IBranch['bug_branches'].value_type.schema = IBugBranch
8752.4.12 by Paul Hummer
Added IBranch.linked_bugs
227
IBranch['linked_bugs'].value_type.schema = IBug
8632.2.6 by Paul Hummer
Exposed and tested getSubscription
228
IBranch['dependent_branches'].value_type.schema = IBranchMergeProposal
229
IBranch['getSubscription'].queryTaggedValue(
230
    LAZR_WEBSERVICE_EXPORTED)['return_type'].schema = IBranchSubscription
231
IBranch['landing_candidates'].value_type.schema = IBranchMergeProposal
232
IBranch['landing_targets'].value_type.schema = IBranchMergeProposal
8752.4.6 by Paul Hummer
Added ability to link to bugs and branches through the API
233
IBranch['linkBug'].queryTaggedValue(
13137.1.13 by Aaron Bentley
Faked a merge of stable@13159.
234
    LAZR_WEBSERVICE_EXPORTED)['params']['bug'].schema = IBug
8752.4.6 by Paul Hummer
Added ability to link to bugs and branches through the API
235
IBranch['linkSpecification'].queryTaggedValue(
13137.1.13 by Aaron Bentley
Faked a merge of stable@13159.
236
    LAZR_WEBSERVICE_EXPORTED)['params']['spec'].schema = ISpecification
6954.3.5 by Tim Penhey
Fix the circular import problem with IBranch.product.
237
IBranch['product'].schema = IProduct
10330.1.1 by Tim Penhey
Expose the sourcepackage of a branch.
238
239
patch_plain_parameter_type(
240
    IBranch, 'setTarget', 'project', IProduct)
241
patch_plain_parameter_type(
242
    IBranch, 'setTarget', 'source_package', ISourcePackage)
243
patch_reference_property(IBranch, 'sourcepackage', ISourcePackage)
10454.3.1 by James Westby
Basic export of ICodeImport.
244
patch_reference_property(IBranch, 'code_import', ICodeImport)
10330.1.1 by Tim Penhey
Expose the sourcepackage of a branch.
245
8632.2.6 by Paul Hummer
Exposed and tested getSubscription
246
IBranch['spec_links'].value_type.schema = ISpecificationBranch
247
IBranch['subscribe'].queryTaggedValue(
248
    LAZR_WEBSERVICE_EXPORTED)['return_type'].schema = IBranchSubscription
7781.2.1 by Paul Hummer
Exposed IBranch.subscriptions and IBranch.subscribers
249
IBranch['subscriptions'].value_type.schema = IBranchSubscription
8752.4.6 by Paul Hummer
Added ability to link to bugs and branches through the API
250
IBranch['unlinkBug'].queryTaggedValue(
13137.1.13 by Aaron Bentley
Faked a merge of stable@13159.
251
    LAZR_WEBSERVICE_EXPORTED)['params']['bug'].schema = IBug
8752.4.6 by Paul Hummer
Added ability to link to bugs and branches through the API
252
IBranch['unlinkSpecification'].queryTaggedValue(
13137.1.13 by Aaron Bentley
Faked a merge of stable@13159.
253
    LAZR_WEBSERVICE_EXPORTED)['params']['spec'].schema = ISpecification
7719.2.22 by Paul Hummer
Responded to Michael's review
254
9801.1.6 by Aaron Bentley
Allow creating merge proposal with reviewers via API.
255
patch_entry_return_type(IBranch, '_createMergeProposal', IBranchMergeProposal)
256
patch_plain_parameter_type(
257
    IBranch, '_createMergeProposal', 'target_branch', IBranch)
258
patch_plain_parameter_type(
259
    IBranch, '_createMergeProposal', 'prerequisite_branch', IBranch)
11929.5.1 by Aaron Bentley
Support getMergeProposals with merged_revno.
260
patch_collection_return_type(
261
    IBranch, 'getMergeProposals', IBranchMergeProposal)
9801.1.2 by Aaron Bentley
Expose prerequisite_branch and initial comment.
262
7719.2.22 by Paul Hummer
Responded to Michael's review
263
IBranchMergeProposal['getComment'].queryTaggedValue(
8122.4.2 by Leonard Richardson
Partial search-and-replace.
264
    LAZR_WEBSERVICE_EXPORTED)['return_type'].schema = ICodeReviewComment
265
IBranchMergeProposal['createComment'].queryTaggedValue(
266
    LAZR_WEBSERVICE_EXPORTED)['params']['parent'].schema = \
7719.2.24 by Paul Hummer
Fixed the tests by fixing my broken-ass code
267
        ICodeReviewComment
9558.6.40 by Aaron Bentley
Fix lint error.
268
patch_entry_return_type(
269
    IBranchMergeProposal, 'createComment', ICodeReviewComment)
7719.2.22 by Paul Hummer
Responded to Michael's review
270
IBranchMergeProposal['all_comments'].value_type.schema = ICodeReviewComment
8911.3.4 by Paul Hummer
Fixed the issue with nominateReviewer not returning anything
271
IBranchMergeProposal['nominateReviewer'].queryTaggedValue(
272
    LAZR_WEBSERVICE_EXPORTED)['return_type'].schema = ICodeReviewVoteReference
7944.2.2 by Paul Hummer
Added code to make the tests pass, exposing IBranchMergeProposal.votes
273
IBranchMergeProposal['votes'].value_type.schema = ICodeReviewVoteReference
12505.5.3 by Ian Booth
Add getRelatedBugTasks to webservice interface
274
patch_collection_return_type(
275
    IBranchMergeProposal, 'getRelatedBugTasks', IBugTask)
7719.2.22 by Paul Hummer
Responded to Michael's review
276
10224.16.6 by Julian Edwards
fix long line lint
277
patch_collection_return_type(IHasBranches, 'getBranches', IBranch)
278
patch_collection_return_type(
279
    IHasMergeProposals, 'getMergeProposals', IBranchMergeProposal)
280
patch_collection_return_type(
281
    IHasRequestedReviews, 'getRequestedReviews', IBranchMergeProposal)
10454.10.5 by James Westby
newCodeImport over the API works again.
282
patch_entry_return_type(
283
    IHasCodeImports, 'newCodeImport', ICodeImport)
10454.10.7 by James Westby
Allow specifying an owner in addition to the registrant.
284
patch_plain_parameter_type(
285
    IHasCodeImports, 'newCodeImport', 'owner', IPerson)
8555.1.3 by Tim Penhey
Extract out the IHasMergeProposals interface from IProductPublic.
286
8486.16.12 by Graham Binns
Added webservice export for findSimilarBugs(). webservice/xx-bug.txt is lying to me about whether it exists or not.
287
# IBugTask
288
289
IBugTask['findSimilarBugs'].queryTaggedValue(
290
    LAZR_WEBSERVICE_EXPORTED)['return_type'].value_type.schema = IBug
8486.18.5 by Abel Deuring
exposed bug.linkHWSubmission()m bug.unlinkHWSubmission and bug.getHWSubmissions() to the webservice API.
291
patch_plain_parameter_type(
292
    IBug, 'linkHWSubmission', 'submission', IHWSubmission)
8486.18.8 by Abel Deuring
implemented reviewer's comments
293
patch_plain_parameter_type(
294
    IBug, 'unlinkHWSubmission', 'submission', IHWSubmission)
8486.18.5 by Abel Deuring
exposed bug.linkHWSubmission()m bug.unlinkHWSubmission and bug.getHWSubmissions() to the webservice API.
295
patch_collection_return_type(
296
    IBug, 'getHWSubmissions', IHWSubmission)
9206.3.3 by William Grant
Export IBug.getNominations; we can now get IBugNominations.
297
IBug['getNominations'].queryTaggedValue(
298
    LAZR_WEBSERVICE_EXPORTED)['params']['nominations'].value_type.schema = (
299
        IBugNomination)
9206.3.12 by William Grant
Export the rest of the IBug nomination methods, and add some more tests.
300
patch_entry_return_type(IBug, 'addNomination', IBugNomination)
301
patch_entry_return_type(IBug, 'getNominationFor', IBugNomination)
9206.3.3 by William Grant
Export IBug.getNominations; we can now get IBugNominations.
302
patch_collection_return_type(IBug, 'getNominations', IBugNomination)
8486.16.12 by Graham Binns
Added webservice export for findSimilarBugs(). webservice/xx-bug.txt is lying to me about whether it exists or not.
303
8697.23.1 by Abel Deuring
hardware related parameters for BugTarget.searchTasks() exposed to the webservice API.
304
patch_choice_parameter_type(
305
    IHasBugs, 'searchTasks', 'hardware_bus', HWBus)
306
7667.9.4 by Tim Penhey
Add a canonical url for the preview diff.
307
IPreviewDiff['branch_merge_proposal'].schema = IBranchMergeProposal
7719.2.22 by Paul Hummer
Responded to Michael's review
308
14494.4.2 by Curtis Hovey
Patched the private team traversal rules back into the tree because merge3 and diff3 suck.
309
patch_reference_property(IPersonViewRestricted, 'archive', IArchive)
310
patch_collection_property(IPersonViewRestricted, 'ppas', IArchive)
14494.3.3 by Curtis Hovey
Added a test to discover that getPPAByName must be LimitedView for traversal.
311
patch_entry_return_type(IPersonLimitedView, 'getPPAByName', IArchive)
14494.4.2 by Curtis Hovey
Patched the private team traversal rules back into the tree because merge3 and diff3 suck.
312
patch_entry_return_type(IPersonViewRestricted, 'createPPA', IArchive)
7849.8.1 by Celso Providelo
Fixing bug #334339 (Exposing IHasBuildRecords.getBuildRecords for Archive, Distribution and DistroSeries contents).
313
314
IHasBuildRecords['getBuildRecords'].queryTaggedValue(
8122.4.2 by Leonard Richardson
Partial search-and-replace.
315
    LAZR_WEBSERVICE_EXPORTED)[
7849.8.1 by Celso Providelo
Fixing bug #334339 (Exposing IHasBuildRecords.getBuildRecords for Archive, Distribution and DistroSeries contents).
316
        'params']['pocket'].vocabulary = PackagePublishingPocket
317
IHasBuildRecords['getBuildRecords'].queryTaggedValue(
8122.4.2 by Leonard Richardson
Partial search-and-replace.
318
    LAZR_WEBSERVICE_EXPORTED)[
7849.8.1 by Celso Providelo
Fixing bug #334339 (Exposing IHasBuildRecords.getBuildRecords for Archive, Distribution and DistroSeries contents).
319
        'params']['build_state'].vocabulary = BuildStatus
320
IHasBuildRecords['getBuildRecords'].queryTaggedValue(
8122.4.2 by Leonard Richardson
Partial search-and-replace.
321
    LAZR_WEBSERVICE_EXPORTED)[
10667.2.2 by Michael Nelson
Mass renaming of imports and references to IBuild/Build/IBuildSet
322
        'return_type'].value_type.schema = IBinaryPackageBuild
7921.1.10 by Jonathan Lange
Export a bunch more stuff from sourcepackage.
323
13139.3.5 by Francis J. Lacoste
Fix lint.
324
ISourcePackagePublic['distroseries'].schema = IDistroSeries
325
ISourcePackagePublic['productseries'].schema = IProductSeries
326
ISourcePackagePublic['getBranch'].queryTaggedValue(
8122.4.2 by Leonard Richardson
Partial search-and-replace.
327
    LAZR_WEBSERVICE_EXPORTED)[
7921.1.11 by Jonathan Lange
Export the getBranch method.
328
        'params']['pocket'].vocabulary = PackagePublishingPocket
13139.3.5 by Francis J. Lacoste
Fix lint.
329
ISourcePackagePublic['getBranch'].queryTaggedValue(
8122.4.2 by Leonard Richardson
Partial search-and-replace.
330
    LAZR_WEBSERVICE_EXPORTED)['return_type'].schema = IBranch
13139.3.2 by Francis J. Lacoste
Protect setBranch through launchpad.Edit
331
ISourcePackageEdit['setBranch'].queryTaggedValue(
8122.4.2 by Leonard Richardson
Partial search-and-replace.
332
    LAZR_WEBSERVICE_EXPORTED)[
7921.1.12 by Jonathan Lange
Export setBranch, and indent the doctest properly
333
        'params']['pocket'].vocabulary = PackagePublishingPocket
13139.3.2 by Francis J. Lacoste
Protect setBranch through launchpad.Edit
334
ISourcePackageEdit['setBranch'].queryTaggedValue(
8122.4.2 by Leonard Richardson
Partial search-and-replace.
335
    LAZR_WEBSERVICE_EXPORTED)['params']['branch'].schema = IBranch
8294.6.6 by Julian Edwards
Fix a bunch more of circular import cack, now I can run some tests and fix those, yay me.
336
patch_reference_property(ISourcePackage, 'distribution', IDistribution)
7921.1.22 by Jonathan Lange
Merge trunk, resolving conflicts.
337
10747.1.8 by Aaron Bentley
Add support for requestBuild.
338
# IPerson
339
patch_entry_return_type(IPerson, 'createRecipe', ISourcePackageRecipe)
340
patch_list_parameter_type(IPerson, 'createRecipe', 'distroseries',
341
                          Reference(schema=IDistroSeries))
10899.4.7 by Aaron Bentley
Export sourcepackagerecipes over the API.
342
patch_plain_parameter_type(IPerson, 'createRecipe', 'daily_build_archive',
343
                           IArchive)
7675.744.2 by Steve Kowalik
* Add a schema circular import for getArchiveSubscriptionURL.
344
patch_plain_parameter_type(IPerson, 'getArchiveSubscriptionURL', 'archive',
345
                           IArchive)
10747.1.8 by Aaron Bentley
Add support for requestBuild.
346
347
patch_entry_return_type(IPerson, 'getRecipe', ISourcePackageRecipe)
348
12397.2.1 by Ian Booth
Export recipe methods to web service
349
# IHasRecipe
12397.2.8 by Ian Booth
Change from using getter methods to properties for exported recipe and build accessors
350
patch_collection_property(
351
    IHasRecipes, 'recipes', ISourcePackageRecipe)
12397.2.1 by Ian Booth
Export recipe methods to web service
352
7881.4.3 by Tom Berger
move the patching to the module designated for it (as per review suggestion by mwhudson)
353
IPerson['hardware_submissions'].value_type.schema = IHWSubmission
8294.6.6 by Julian Edwards
Fix a bunch more of circular import cack, now I can run some tests and fix those, yay me.
354
355
# publishing.py
10224.16.2 by Julian Edwards
Re-jig publishing interfaces and create *Public versions with public zope permissions that are inherited by the main exported interface.
356
ISourcePackagePublishingHistoryPublic['getBuilds'].queryTaggedValue(
10667.2.2 by Michael Nelson
Mass renaming of imports and references to IBuild/Build/IBuildSet
357
    LAZR_WEBSERVICE_EXPORTED)['return_type'].value_type.schema = (
358
        IBinaryPackageBuild)
10224.16.4 by Julian Edwards
fix lint
359
ISourcePackagePublishingHistoryPublic[
360
    'getPublishedBinaries'].queryTaggedValue(
361
        LAZR_WEBSERVICE_EXPORTED)[
362
            'return_type'].value_type.schema = IBinaryPackagePublishingHistory
8294.6.6 by Julian Edwards
Fix a bunch more of circular import cack, now I can run some tests and fix those, yay me.
363
patch_reference_property(
7659.7.4 by Julian Edwards
Remove some references to secure* introduced when merging trunk.
364
    IBinaryPackagePublishingHistory, 'distroarchseries',
8294.6.6 by Julian Edwards
Fix a bunch more of circular import cack, now I can run some tests and fix those, yay me.
365
    IDistroArchSeries)
8294.6.7 by Julian Edwards
Circular dependencies, gotta love those.
366
patch_reference_property(
7659.7.4 by Julian Edwards
Remove some references to secure* introduced when merging trunk.
367
    IBinaryPackagePublishingHistory, 'archive', IArchive)
8294.6.7 by Julian Edwards
Circular dependencies, gotta love those.
368
patch_reference_property(
7659.7.4 by Julian Edwards
Remove some references to secure* introduced when merging trunk.
369
    ISourcePackagePublishingHistory, 'archive', IArchive)
7675.997.6 by Steve Kowalik
Circular imports ARE needed
370
patch_reference_property(
371
    ISourcePackagePublishingHistory, 'ancestor',
372
    ISourcePackagePublishingHistory)
8294.6.6 by Julian Edwards
Fix a bunch more of circular import cack, now I can run some tests and fix those, yay me.
373
374
# IArchive apocalypse.
375
patch_reference_property(IArchive, 'distribution', IDistribution)
9032.3.9 by William Grant
Export IArchive.dependencies.
376
patch_collection_property(IArchive, 'dependencies', IArchiveDependency)
13257.3.1 by Brad Crittenden
Broken attempt at exporting IProcessorFamily collection as enabled_restricted_families
377
patch_collection_property(
378
    IArchive, 'enabled_restricted_families', IProcessorFamily)
8294.6.6 by Julian Edwards
Fix a bunch more of circular import cack, now I can run some tests and fix those, yay me.
379
patch_collection_return_type(
380
    IArchive, 'getPermissionsForPerson', IArchivePermission)
381
patch_collection_return_type(
382
    IArchive, 'getUploadersForPackage', IArchivePermission)
383
patch_collection_return_type(
8922.2.1 by Muharem Hrnjadovic
Imported branch reviewed and approved by Edwin.
384
    IArchive, 'getUploadersForPackageset', IArchivePermission)
385
patch_collection_return_type(
386
    IArchive, 'getPackagesetsForUploader', IArchivePermission)
387
patch_collection_return_type(
388
    IArchive, 'getPackagesetsForSourceUploader', IArchivePermission)
389
patch_collection_return_type(
390
    IArchive, 'getPackagesetsForSource', IArchivePermission)
391
patch_collection_return_type(
8294.6.6 by Julian Edwards
Fix a bunch more of circular import cack, now I can run some tests and fix those, yay me.
392
    IArchive, 'getUploadersForComponent', IArchivePermission)
393
patch_collection_return_type(
394
    IArchive, 'getQueueAdminsForComponent', IArchivePermission)
395
patch_collection_return_type(
396
    IArchive, 'getComponentsForQueueAdmin', IArchivePermission)
397
patch_entry_return_type(IArchive, 'newPackageUploader', IArchivePermission)
8903.1.1 by Muharem Hrnjadovic
changed URL scheme for archive permissions.
398
patch_entry_return_type(IArchive, 'newPackagesetUploader', IArchivePermission)
8294.6.6 by Julian Edwards
Fix a bunch more of circular import cack, now I can run some tests and fix those, yay me.
399
patch_entry_return_type(IArchive, 'newComponentUploader', IArchivePermission)
400
patch_entry_return_type(IArchive, 'newQueueAdmin', IArchivePermission)
401
patch_plain_parameter_type(IArchive, 'syncSources', 'from_archive', IArchive)
402
patch_plain_parameter_type(IArchive, 'syncSource', 'from_archive', IArchive)
13410.1.8 by Julian Edwards
Export copyPackage on the webservice.
403
patch_plain_parameter_type(IArchive, 'copyPackage', 'from_archive', IArchive)
13410.1.14 by Julian Edwards
Add interface declaration for copyPackages.
404
patch_plain_parameter_type(
405
    IArchive, 'copyPackages', 'from_archive', IArchive)
8482.1.1 by Michael Nelson
re-applied patch to expose newSubscription() method.
406
patch_entry_return_type(IArchive, 'newSubscription', IArchiveSubscriber)
8294.6.6 by Julian Edwards
Fix a bunch more of circular import cack, now I can run some tests and fix those, yay me.
407
patch_plain_parameter_type(
9032.3.6 by William Grant
Export IArchive.getArchiveDependency().
408
    IArchive, 'getArchiveDependency', 'dependency', IArchive)
409
patch_entry_return_type(IArchive, 'getArchiveDependency', IArchiveDependency)
410
patch_plain_parameter_type(
8294.6.6 by Julian Edwards
Fix a bunch more of circular import cack, now I can run some tests and fix those, yay me.
411
    IArchive, 'getPublishedSources', 'distroseries', IDistroSeries)
412
patch_collection_return_type(
413
    IArchive, 'getPublishedSources', ISourcePackagePublishingHistory)
414
patch_choice_parameter_type(
415
    IArchive, 'getPublishedSources', 'status', PackagePublishingStatus)
416
patch_choice_parameter_type(
417
    IArchive, 'getPublishedSources', 'pocket', PackagePublishingPocket)
418
patch_plain_parameter_type(
419
    IArchive, 'getAllPublishedBinaries', 'distroarchseries',
420
    IDistroArchSeries)
421
patch_collection_return_type(
422
    IArchive, 'getAllPublishedBinaries', IBinaryPackagePublishingHistory)
423
patch_choice_parameter_type(
424
    IArchive, 'getAllPublishedBinaries', 'status', PackagePublishingStatus)
425
patch_choice_parameter_type(
426
    IArchive, 'getAllPublishedBinaries', 'pocket', PackagePublishingPocket)
7675.366.1 by Muharem Hrnjadovic
Archive permission checks now observe the distro series.
427
patch_plain_parameter_type(
428
    IArchive, 'isSourceUploadAllowed', 'distroseries', IDistroSeries)
7675.366.3 by Muharem Hrnjadovic
The methods related to package set based archive permissions now need to be passed the actual package set as a parameter (as opposed to the mere package set name).
429
patch_plain_parameter_type(
10888.5.4 by Jelmer Vernooij
Fix return type.
430
    IArchive, '_checkUpload', 'distroseries', IDistroSeries)
10888.5.3 by Jelmer Vernooij
Require pocket and distroseries arguments.
431
patch_choice_parameter_type(
10888.5.4 by Jelmer Vernooij
Fix return type.
432
    IArchive, '_checkUpload', 'pocket', PackagePublishingPocket)
10888.5.1 by Jelmer Vernooij
Export IArchive.checkUpload over the API.
433
patch_plain_parameter_type(
7675.366.3 by Muharem Hrnjadovic
The methods related to package set based archive permissions now need to be passed the actual package set as a parameter (as opposed to the mere package set name).
434
    IArchive, 'newPackagesetUploader', 'packageset', IPackageset)
435
patch_plain_parameter_type(
436
    IArchive, 'getUploadersForPackageset', 'packageset', IPackageset)
437
patch_plain_parameter_type(
438
    IArchive, 'deletePackagesetUploader', 'packageset', IPackageset)
13137.1.13 by Aaron Bentley
Faked a merge of stable@13159.
439
patch_plain_parameter_type(
440
    IArchive, 'removeArchiveDependency', 'dependency', IArchive)
441
patch_plain_parameter_type(
442
    IArchive, '_addArchiveDependency', 'dependency', IArchive)
443
patch_choice_parameter_type(
444
    IArchive, '_addArchiveDependency', 'pocket', PackagePublishingPocket)
445
patch_entry_return_type(
446
    IArchive, '_addArchiveDependency', IArchiveDependency)
13240.2.7 by Brad Crittenden
Borked checkin
447
patch_plain_parameter_type(
448
    IArchive, 'enableRestrictedFamily', 'family', IProcessorFamily)
8294.6.6 by Julian Edwards
Fix a bunch more of circular import cack, now I can run some tests and fix those, yay me.
449
7675.688.4 by Michael Nelson
Turned BuildFarmJob into a concrete class and added basic test.
450
451
# IBuildFarmJob
452
IBuildFarmJob['status'].vocabulary = BuildStatus
7675.687.23 by Michael Nelson
Started updating IBuildFarmJob to export fields from old IBuildBase.
453
IBuildFarmJob['buildqueue_record'].schema = IBuildQueue
7675.688.4 by Michael Nelson
Turned BuildFarmJob into a concrete class and added basic test.
454
7675.820.23 by Michael Nelson
Updated code to provide IComment attributes on the display comment rather than the view.
455
# IComment
456
IComment['comment_author'].schema = IPerson
457
8294.6.7 by Julian Edwards
Circular dependencies, gotta love those.
458
# IDistribution
9760.8.1 by Brad Crittenden
Change the non-English 'serieses' to 'series' throughout our codebase.
459
IDistribution['series'].value_type.schema = IDistroSeries
12768.2.1 by Raphael Badin
Display derivatives (on distribution and distroseries index pages).
460
IDistribution['derivatives'].value_type.schema = IDistroSeries
8294.6.7 by Julian Edwards
Circular dependencies, gotta love those.
461
patch_reference_property(
462
    IDistribution, 'currentseries', IDistroSeries)
463
patch_entry_return_type(
10861.2.1 by William Grant
Move traverse_distro_archive to Distribution.getArchive, and export it.
464
    IDistribution, 'getArchive', IArchive)
465
patch_entry_return_type(
8294.6.7 by Julian Edwards
Circular dependencies, gotta love those.
466
    IDistribution, 'getSeries', IDistroSeries)
467
patch_collection_return_type(
9760.8.1 by Brad Crittenden
Change the non-English 'serieses' to 'series' throughout our codebase.
468
    IDistribution, 'getDevelopmentSeries', IDistroSeries)
8294.6.7 by Julian Edwards
Circular dependencies, gotta love those.
469
patch_entry_return_type(
470
    IDistribution, 'getSourcePackage', IDistributionSourcePackage)
471
patch_collection_return_type(
8399.3.11 by Michael Nelson
Reverting change to return type of IDistribution.searchSourcePackages
472
    IDistribution, 'searchSourcePackages', IDistributionSourcePackage)
7675.733.5 by Julian Edwards
Add interface and webservice declarations for IDistribution.getAllCommercialPPAs
473
patch_collection_return_type(
7675.733.7 by Julian Edwards
s/getAllCommercialPPAs/getCommercialPPAs/ to be consistent
474
    IDistribution, 'getCommercialPPAs', IArchive)
8294.6.7 by Julian Edwards
Circular dependencies, gotta love those.
475
patch_reference_property(
476
    IDistribution, 'main_archive', IArchive)
477
IDistribution['all_distro_archives'].value_type.schema = IArchive
478
479
10236.2.1 by Jonathan Davies
Defined IDistributionMirror.distribution as an IDistribution in
480
# IDistributionMirror
481
IDistributionMirror['distribution'].schema = IDistribution
482
483
8294.6.7 by Julian Edwards
Circular dependencies, gotta love those.
484
# IDistroSeries
485
patch_entry_return_type(
486
    IDistroSeries, 'getDistroArchSeries', IDistroArchSeries)
487
patch_reference_property(
488
    IDistroSeries, 'main_archive', IArchive)
12494.1.29 by Gavin Panella
Export architectures for IDistroSeries via the web API.
489
patch_collection_property(
490
    IDistroSeries, 'architectures', IDistroArchSeries)
8294.6.7 by Julian Edwards
Circular dependencies, gotta love those.
491
patch_reference_property(
492
    IDistroSeries, 'distribution', IDistribution)
8697.13.10 by Julian Edwards
Add export of PackageUpload.
493
patch_choice_parameter_type(
494
    IDistroSeries, 'getPackageUploads', 'status', PackageUploadStatus)
495
patch_choice_parameter_type(
496
    IDistroSeries, 'getPackageUploads', 'pocket', PackagePublishingPocket)
497
patch_choice_parameter_type(
498
    IDistroSeries, 'getPackageUploads', 'custom_type',
499
    PackageUploadCustomFormat)
8697.13.16 by Julian Edwards
fix circular imports
500
patch_plain_parameter_type(
501
    IDistroSeries, 'getPackageUploads', 'archive', IArchive)
8697.13.10 by Julian Edwards
Add export of PackageUpload.
502
patch_collection_return_type(
503
    IDistroSeries, 'getPackageUploads', IPackageUpload)
13045.14.2 by Gavin Panella
Rename DistroSeries.parent_series to .previous_series.
504
patch_reference_property(IDistroSeries, 'previous_series', IDistroSeries)
14108.2.1 by Raphael Badin
Expose IDistroSeries.nominatedarchindep on the api.
505
patch_reference_property(
506
    IDistroSeries, 'nominatedarchindep', IDistroArchSeries)
12558.2.1 by Jeroen Vermeulen
DistroSeriesDifferenceJob.
507
patch_collection_return_type(
508
    IDistroSeries, 'getDerivedSeries', IDistroSeries)
7675.1135.1 by Raphael Badin
Fix derivation portlet and difference pages (series multiple parents).
509
patch_collection_return_type(
510
    IDistroSeries, 'getParentSeries', IDistroSeries)
7675.1124.5 by Raphael Badin
Fix test & api method parameters as per MP's comments.
511
patch_plain_parameter_type(
512
    IDistroSeries, 'getDifferencesTo', 'parent_series', IDistroSeries)
513
patch_choice_parameter_type(
514
    IDistroSeries, 'getDifferencesTo', 'status', DistroSeriesDifferenceStatus)
515
patch_choice_parameter_type(
516
    IDistroSeries, 'getDifferencesTo', 'difference_type',
517
    DistroSeriesDifferenceType)
7675.1124.1 by Raphael Badin
Add a getDifferencesTo api function to IDistroSeries.
518
patch_collection_return_type(
519
    IDistroSeries, 'getDifferencesTo', IDistroSeriesDifference)
13366.2.2 by Jeroen Vermeulen
Hook IDistroSeriesDifferenceCommentSource.getForDistroSeries into API.
520
patch_collection_return_type(
521
    IDistroSeries, 'getDifferenceComments', IDistroSeriesDifferenceComment)
7675.1124.1 by Raphael Badin
Add a getDifferencesTo api function to IDistroSeries.
522
12558.2.1 by Jeroen Vermeulen
DistroSeriesDifferenceJob.
523
12742.3.9 by Gavin Panella
Add new latest_comment cached property to DSD.
524
# IDistroSeriesDifference
525
patch_reference_property(
526
    IDistroSeriesDifference, 'latest_comment', IDistroSeriesDifferenceComment)
10355.4.1 by Adi Roiban
Initial work on POTemplate API
527
7675.834.31 by Michael Nelson
Exported addComment.
528
# IDistroSeriesDifferenceComment
529
IDistroSeriesDifferenceComment['comment_author'].schema = IPerson
530
8294.6.7 by Julian Edwards
Circular dependencies, gotta love those.
531
# IDistroArchSeries
532
patch_reference_property(IDistroArchSeries, 'main_archive', IArchive)
8485.5.2 by Muharem Hrnjadovic
exposed the setsIncluded() method.
533
534
# IPackageset
535
patch_collection_return_type(
536
    IPackageset, 'setsIncluded', IPackageset)
8485.5.3 by Muharem Hrnjadovic
implementation complete
537
patch_collection_return_type(
538
    IPackageset, 'setsIncludedBy', IPackageset)
539
patch_plain_parameter_type(
540
    IPackageset, 'getSourcesSharedBy', 'other_package_set', IPackageset)
541
patch_plain_parameter_type(
542
    IPackageset, 'getSourcesNotSharedBy', 'other_package_set', IPackageset)
7675.362.1 by Muharem Hrnjadovic
Tests work.
543
patch_collection_return_type(
544
    IPackageset, 'relatedSets', IPackageset)
8697.13.16 by Julian Edwards
fix circular imports
545
546
# IPackageUpload
547
IPackageUpload['pocket'].vocabulary = PackagePublishingPocket
548
patch_reference_property(IPackageUpload, 'distroseries', IDistroSeries)
549
patch_reference_property(IPackageUpload, 'archive', IArchive)
9206.2.7 by William Grant
Export IStructuralSubscription.target and IStructuralSubscriptionTarget.parent_subscription_target.
550
551
# IStructuralSubscription
11526.4.49 by Gavin Panella
Patch bug_filters value_type.
552
patch_collection_property(
553
    IStructuralSubscription, 'bug_filters', IBugSubscriptionFilter)
11896.1.20 by Gavin Panella
Move the newBugFilter patch to _schema_circular_imports.
554
patch_entry_return_type(
555
    IStructuralSubscription, "newBugFilter", IBugSubscriptionFilter)
9206.2.7 by William Grant
Export IStructuralSubscription.target and IStructuralSubscriptionTarget.parent_subscription_target.
556
patch_reference_property(
557
    IStructuralSubscription, 'target', IStructuralSubscriptionTarget)
558
11526.4.49 by Gavin Panella
Patch bug_filters value_type.
559
# IStructuralSubscriptionTarget
9206.2.7 by William Grant
Export IStructuralSubscription.target and IStructuralSubscriptionTarget.parent_subscription_target.
560
patch_reference_property(
561
    IStructuralSubscriptionTarget, 'parent_subscription_target',
562
    IStructuralSubscriptionTarget)
12393.18.2 by Gary Poster
get lp.bugs.browser tests passing again
563
patch_entry_return_type(
564
    IStructuralSubscriptionTarget, 'addBugSubscriptionFilter',
565
    IBugSubscriptionFilter)
10094.3.34 by Markus Korn
removed trailing whitespaces from lib/canonical/launchpad/interfaces/_schema_circular_imports.py
566
11526.4.49 by Gavin Panella
Patch bug_filters value_type.
567
# ISourcePackageRelease
7675.539.23 by William Grant
Replace the ISPR.s_p_r_b Attribute with a more specific Reference.
568
patch_reference_property(
10498.3.18 by Aaron Bentley
Fix lint errors.
569
    ISourcePackageRelease, 'source_package_recipe_build',
570
    ISourcePackageRecipeBuild)
7675.561.2 by Michael Nelson
Resolved conflicts
571
12397.2.1 by Ian Booth
Export recipe methods to web service
572
# ISourcePackageRecipeView
573
patch_entry_return_type(
574
    ISourcePackageRecipe, 'requestBuild', ISourcePackageRecipeBuild)
12397.2.8 by Ian Booth
Change from using getter methods to properties for exported recipe and build accessors
575
patch_reference_property(
576
    ISourcePackageRecipe, 'last_build', ISourcePackageRecipeBuild)
577
patch_collection_property(
578
    ISourcePackageRecipe, 'builds', ISourcePackageRecipeBuild)
579
patch_collection_property(
580
    ISourcePackageRecipe, 'pending_builds', ISourcePackageRecipeBuild)
581
patch_collection_property(
582
    ISourcePackageRecipe, 'completed_builds', ISourcePackageRecipeBuild)
12397.2.1 by Ian Booth
Export recipe methods to web service
583
10094.3.1 by Markus Korn
First step to make IPerson an IHasBugs: removed import of IPerson from
584
# IHasBugs
585
patch_plain_parameter_type(
586
    IHasBugs, 'searchTasks', 'assignee', IPerson)
587
patch_plain_parameter_type(
588
    IHasBugs, 'searchTasks', 'bug_reporter', IPerson)
589
patch_plain_parameter_type(
590
    IHasBugs, 'searchTasks', 'bug_supervisor', IPerson)
591
patch_plain_parameter_type(
592
    IHasBugs, 'searchTasks', 'bug_commenter', IPerson)
593
patch_plain_parameter_type(
594
    IHasBugs, 'searchTasks', 'bug_subscriber', IPerson)
595
patch_plain_parameter_type(
596
    IHasBugs, 'searchTasks', 'owner', IPerson)
597
patch_plain_parameter_type(
598
    IHasBugs, 'searchTasks', 'affected_user', IPerson)
10874.1.8 by Brian Murray
add a call to patch_plain_parameter_type for structural_subscriber
599
patch_plain_parameter_type(
600
    IHasBugs, 'searchTasks', 'structural_subscriber', IPerson)
10094.3.34 by Markus Korn
removed trailing whitespaces from lib/canonical/launchpad/interfaces/_schema_circular_imports.py
601
10094.3.2 by Markus Korn
Next step to make IPerson an IHasBugs: removed the import of IPerson from
602
# IBugTask
603
patch_reference_property(IBugTask, 'owner', IPerson)
10094.3.3 by Markus Korn
Next step to make IPerson an IHasBugs:
604
605
# IBugWatch
606
patch_reference_property(IBugWatch, 'owner', IPerson)
607
11772.1.1 by Jeroen Vermeulen
Export IHasTranslationImports.getTranslationImportQueueEntries on the API.
608
# IHasTranslationImports
609
patch_collection_return_type(
610
    IHasTranslationImports, 'getTranslationImportQueueEntries',
611
    ITranslationImportQueueEntry)
612
10094.3.3 by Markus Korn
Next step to make IPerson an IHasBugs:
613
# IIndexedMessage
614
patch_reference_property(IIndexedMessage, 'inside', IBugTask)
615
616
# IMessage
617
patch_reference_property(IMessage, 'owner', IPerson)
618
619
# IUserToUserEmail
620
patch_reference_property(IUserToUserEmail, 'sender', IPerson)
621
patch_reference_property(IUserToUserEmail, 'recipient', IPerson)
622
623
# IBug
624
patch_plain_parameter_type(
625
    IBug, 'addNomination', 'target', IBugTarget)
626
patch_plain_parameter_type(
627
    IBug, 'canBeNominatedFor', 'target', IBugTarget)
628
patch_plain_parameter_type(
629
    IBug, 'getNominationFor', 'target', IBugTarget)
630
patch_plain_parameter_type(
631
    IBug, 'getNominations', 'target', IBugTarget)
12278.1.1 by Graham Binns
Reverted the reversion of devel r12272.
632
patch_choice_vocabulary(
633
    IBug, 'subscribe', 'level', BugNotificationLevel)
634
10094.3.34 by Markus Korn
removed trailing whitespaces from lib/canonical/launchpad/interfaces/_schema_circular_imports.py
635
10094.3.3 by Markus Korn
Next step to make IPerson an IHasBugs:
636
# IFrontPageBugAddForm
637
patch_reference_property(IFrontPageBugAddForm, 'bugtarget', IBugTarget)
638
639
# IBugTracker
640
patch_reference_property(IBugTracker, 'owner', IPerson)
7675.888.22 by Bryce Harrington
Define return types for new BugTracker routines.
641
patch_entry_return_type(
642
    IBugTracker, 'getRemoteComponentGroup', IBugTrackerComponentGroup)
643
patch_entry_return_type(
644
    IBugTracker, 'addRemoteComponentGroup', IBugTrackerComponentGroup)
645
patch_collection_return_type(
646
    IBugTracker, 'getAllRemoteComponentGroups', IBugTrackerComponentGroup)
7675.1188.27 by Bryce Harrington
Add test code for getRemoteComponentForDistroSourcePackage()
647
patch_entry_return_type(
13155.1.19 by Curtis Hovey
Rename getRemoteComponentForDistroSourcePackage to getRemoteComponentForDistroSourcePackageName
648
    IBugTracker, 'getRemoteComponentForDistroSourcePackageName',
7675.1188.27 by Bryce Harrington
Add test code for getRemoteComponentForDistroSourcePackage()
649
    IBugTrackerComponent)
7675.888.22 by Bryce Harrington
Define return types for new BugTracker routines.
650
651
## IBugTrackerComponent
652
patch_reference_property(
653
    IBugTrackerComponent, "distro_source_package",
654
    IDistributionSourcePackage)
10355.4.3 by Adi Roiban
Prototype ready to review.
655
11882.1.1 by Jeroen Vermeulen
Independence for IHasTranslationTemplates\!
656
# IHasTranslationTemplates
657
patch_collection_return_type(
658
    IHasTranslationTemplates, 'getTranslationTemplates', IPOTemplate)
659
10355.4.3 by Adi Roiban
Prototype ready to review.
660
# IPOTemplate
10355.4.7 by Adi Roiban
Move all_potemplates to IHasTranslationTemplates.
661
patch_collection_property(IPOTemplate, 'pofiles', IPOFile)
662
patch_reference_property(IPOTemplate, 'product', IProduct)
663
664
# IPOTemplateSubset
665
patch_reference_property(IPOTemplateSubset, 'distroseries', IDistroSeries)
666
patch_reference_property(IPOTemplateSubset, 'productseries', IProductSeries)
667
668
# IPOTemplateSharingSubset
669
patch_reference_property(IPOTemplateSharingSubset, 'product', IProduct)
10355.4.5 by Adi Roiban
Merge devel. Resolve conflicts.
670
11010.3.1 by Kamran Riaz Khan
[bug=281443, 331039] Export API call for
671
# IPerson
672
patch_collection_return_type(
7675.888.14 by Bryce Harrington
Review by gavin: Resolve circular import problem
673
    IPerson, 'getBugSubscriberPackages', IDistributionSourcePackage)
11010.3.1 by Kamran Riaz Khan
[bug=281443, 331039] Export API call for
674
10454.3.9 by James Westby
Fix various exports to use ReferenceChoice to export correctly.
675
# IProductSeries
676
patch_reference_property(IProductSeries, 'product', IProduct)
11127.1.6 by James Westby
getSpecification now works across the webservice.
677
11997.3.1 by Guilherme Salgado
Expose ISpecification.dependencies on the webservice
678
# ISpecification
13944.1.2 by Benji York
expose linking bugs to blueprints to the web service
679
ISpecification['linkBug'].queryTaggedValue(
680
    LAZR_WEBSERVICE_EXPORTED)['params']['bug'].schema = IBug
681
ISpecification['unlinkBug'].queryTaggedValue(
682
    LAZR_WEBSERVICE_EXPORTED)['params']['bug'].schema = IBug
11997.3.1 by Guilherme Salgado
Expose ISpecification.dependencies on the webservice
683
patch_collection_property(ISpecification, 'dependencies', ISpecification)
12558.2.1 by Jeroen Vermeulen
DistroSeriesDifferenceJob.
684
patch_collection_property(
685
    ISpecification, 'linked_branches', ISpecificationBranch)
11997.3.1 by Guilherme Salgado
Expose ISpecification.dependencies on the webservice
686
11127.1.6 by James Westby
getSpecification now works across the webservice.
687
# ISpecificationTarget
688
patch_entry_return_type(
689
    ISpecificationTarget, 'getSpecification', ISpecification)
11962.3.12 by Guilherme Salgado
Export IHasSpecifications.all_specifications and IHasSpecifications.valid_specifications
690
691
# IHasSpecifications
692
patch_collection_property(
693
    IHasSpecifications, 'all_specifications', ISpecification)
694
patch_collection_property(
695
    IHasSpecifications, 'valid_specifications', ISpecification)
12599.4.3 by Leonard Richardson
Patch the entries.
696
697
12599.4.13 by Leonard Richardson
Rationalized imports.
698
###
699
#
700
# Our web service configuration requires that every entry, field, and
701
# named operation explicitly name the version in which it first
702
# appears. This code grandfathers in entries and named operations that
703
# were defined before this rule came into effect. When you change an
12599.4.18 by Leonard Richardson
Fix IBugSubscription rather than making the patch work.
704
# interface in the future, you should add explicit version statements to
12599.4.13 by Leonard Richardson
Rationalized imports.
705
# its definition and get rid of the patch calls here.
706
#
707
###
12599.4.3 by Leonard Richardson
Patch the entries.
708
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
709
# IArchive
12599.4.3 by Leonard Richardson
Patch the entries.
710
patch_entry_explicit_version(IArchive, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
711
patch_operations_explicit_version(
712
    IArchive, 'beta', "_checkUpload", "deleteComponentUploader",
713
    "deletePackageUploader", "deletePackagesetUploader", "deleteQueueAdmin",
714
    "getAllPublishedBinaries", "getArchiveDependency", "getBuildCounters",
715
    "getBuildSummariesForSourceIds", "getComponentsForQueueAdmin",
716
    "getPackagesetsForSource", "getPackagesetsForSourceUploader",
717
    "getPackagesetsForUploader", "getPermissionsForPerson",
718
    "getPublishedSources", "getQueueAdminsForComponent",
719
    "getUploadersForComponent", "getUploadersForPackage",
720
    "getUploadersForPackageset", "isSourceUploadAllowed",
721
    "newComponentUploader", "newPackageUploader", "newPackagesetUploader",
722
    "newQueueAdmin", "newSubscription", "syncSource", "syncSources")
723
724
# IArchiveDependency
12599.4.3 by Leonard Richardson
Patch the entries.
725
patch_entry_explicit_version(IArchiveDependency, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
726
727
# IArchivePermission
12599.4.3 by Leonard Richardson
Patch the entries.
728
patch_entry_explicit_version(IArchivePermission, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
729
730
# IArchiveSubscriber
12599.4.6 by Leonard Richardson
OK, we're now into the sanity check phase.
731
patch_entry_explicit_version(IArchiveSubscriber, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
732
733
# IBinaryPackageBuild
12599.4.3 by Leonard Richardson
Patch the entries.
734
patch_entry_explicit_version(IBinaryPackageBuild, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
735
patch_operations_explicit_version(
736
    IBinaryPackageBuild, 'beta', "rescore", "retry")
737
738
# IBinaryPackagePublishingHistory
12599.4.3 by Leonard Richardson
Patch the entries.
739
patch_entry_explicit_version(IBinaryPackagePublishingHistory, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
740
patch_operations_explicit_version(
741
    IBinaryPackagePublishingHistory, 'beta', "getDailyDownloadTotals",
742
    "getDownloadCount", "getDownloadCounts")
743
744
# IBinaryPackageReleaseDownloadCount
12599.4.3 by Leonard Richardson
Patch the entries.
745
patch_entry_explicit_version(IBinaryPackageReleaseDownloadCount, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
746
747
# IBranch
12599.4.3 by Leonard Richardson
Patch the entries.
748
patch_entry_explicit_version(IBranch, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
749
750
# IBranchMergeProposal
12599.4.3 by Leonard Richardson
Patch the entries.
751
patch_entry_explicit_version(IBranchMergeProposal, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
752
patch_operations_explicit_version(
753
    IBranchMergeProposal, 'beta', "createComment", "getComment",
754
    "nominateReviewer", "setStatus", "updatePreviewDiff")
755
756
# IBranchMergeQueue
12599.4.3 by Leonard Richardson
Patch the entries.
757
patch_entry_explicit_version(IBranchMergeQueue, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
758
patch_operations_explicit_version(
759
    IBranchMergeQueue, 'beta', "setMergeQueueConfig")
760
761
# IBranchSubscription
12599.4.3 by Leonard Richardson
Patch the entries.
762
patch_entry_explicit_version(IBranchSubscription, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
763
patch_operations_explicit_version(
764
    IBranchSubscription, 'beta', "canBeUnsubscribedByUser")
765
766
# IBug
767
patch_entry_explicit_version(IBug, 'beta')
768
patch_operations_explicit_version(
769
    IBug, 'beta', "addAttachment", "addNomination", "addTask", "addWatch",
770
    "canBeNominatedFor", "getHWSubmissions", "getNominationFor",
771
    "getNominations", "isExpirable", "isUserAffected",
772
    "linkCVEAndReturnNothing", "linkHWSubmission", "markAsDuplicate",
773
    "markUserAffected", "newMessage", "setCommentVisibility", "setPrivate",
774
    "setSecurityRelated", "subscribe", "unlinkCVE", "unlinkHWSubmission",
775
    "unsubscribe", "unsubscribeFromDupes")
776
777
# IBugActivity
12599.4.3 by Leonard Richardson
Patch the entries.
778
patch_entry_explicit_version(IBugActivity, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
779
780
# IBugAttachment
12599.4.3 by Leonard Richardson
Patch the entries.
781
patch_entry_explicit_version(IBugAttachment, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
782
patch_operations_explicit_version(
783
    IBugAttachment, 'beta', "removeFromBug")
784
785
# IBugBranch
12599.4.3 by Leonard Richardson
Patch the entries.
786
patch_entry_explicit_version(IBugBranch, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
787
788
# IBugNomination
12599.4.3 by Leonard Richardson
Patch the entries.
789
patch_entry_explicit_version(IBugNomination, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
790
patch_operations_explicit_version(
791
    IBugNomination, 'beta', "approve", "canApprove", "decline")
792
793
# IBugSubscriptionFilter
12599.4.3 by Leonard Richardson
Patch the entries.
794
patch_entry_explicit_version(IBugSubscriptionFilter, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
795
patch_operations_explicit_version(
796
    IBugSubscriptionFilter, 'beta', "delete")
797
798
# IBugTarget
12599.4.3 by Leonard Richardson
Patch the entries.
799
patch_entry_explicit_version(IBugTarget, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
800
801
# IBugTask
12599.4.3 by Leonard Richardson
Patch the entries.
802
patch_entry_explicit_version(IBugTask, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
803
patch_operations_explicit_version(
804
    IBugTask, 'beta', "findSimilarBugs", "transitionToAssignee",
805
    "transitionToImportance", "transitionToMilestone", "transitionToStatus",
806
    "transitionToTarget")
807
808
# IBugTracker
12599.4.3 by Leonard Richardson
Patch the entries.
809
patch_entry_explicit_version(IBugTracker, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
810
patch_operations_explicit_version(
811
    IBugTracker, 'beta', "addRemoteComponentGroup",
812
    "getAllRemoteComponentGroups", "getRemoteComponentGroup")
813
814
# IBugTrackerComponent
12599.4.3 by Leonard Richardson
Patch the entries.
815
patch_entry_explicit_version(IBugTrackerComponent, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
816
817
# IBugTrackerComponentGroup
12599.4.3 by Leonard Richardson
Patch the entries.
818
patch_entry_explicit_version(IBugTrackerComponentGroup, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
819
patch_operations_explicit_version(
820
    IBugTrackerComponentGroup, 'beta', "addComponent")
821
822
# IBugTrackerSet
823
patch_operations_explicit_version(
824
    IBugTrackerSet, 'beta', "ensureBugTracker", "getByName", "queryByBaseURL")
825
826
# IBugWatch
12599.4.3 by Leonard Richardson
Patch the entries.
827
patch_entry_explicit_version(IBugWatch, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
828
829
# IBuilder
12599.4.3 by Leonard Richardson
Patch the entries.
830
patch_entry_explicit_version(IBuilder, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
831
832
# IBuilderSet
833
patch_operations_explicit_version(IBuilderSet, 'beta', "getByName")
834
835
# ICodeImport
12599.4.3 by Leonard Richardson
Patch the entries.
836
patch_entry_explicit_version(ICodeImport, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
837
patch_operations_explicit_version(
838
    ICodeImport, 'beta', "requestImport")
839
840
# ICodeReviewComment
12599.4.3 by Leonard Richardson
Patch the entries.
841
patch_entry_explicit_version(ICodeReviewComment, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
842
843
# ICodeReviewVoteReference
12599.4.3 by Leonard Richardson
Patch the entries.
844
patch_entry_explicit_version(ICodeReviewVoteReference, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
845
patch_operations_explicit_version(
846
    ICodeReviewVoteReference, 'beta', "claimReview", "delete",
847
    "reassignReview")
848
849
# ICommercialSubscription
12599.4.3 by Leonard Richardson
Patch the entries.
850
patch_entry_explicit_version(ICommercialSubscription, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
851
852
# ICountry
12599.4.3 by Leonard Richardson
Patch the entries.
853
patch_entry_explicit_version(ICountry, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
854
855
# ICountrySet
856
patch_operations_explicit_version(
857
    ICountrySet, 'beta', "getByCode", "getByName")
858
859
# ICve
12599.4.3 by Leonard Richardson
Patch the entries.
860
patch_entry_explicit_version(ICve, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
861
862
# IDistribution
863
patch_operations_explicit_version(
864
    IDistribution, 'beta', "getArchive", "getCommercialPPAs",
865
    "getCountryMirror", "getDevelopmentSeries", "getMirrorByName",
866
    "getSeries", "getSourcePackage", "searchSourcePackages")
867
868
# IDistributionMirror
869
patch_entry_explicit_version(IDistributionMirror, 'beta')
870
patch_operations_explicit_version(
871
    IDistributionMirror, 'beta', "canTransitionToCountryMirror",
872
    "getOverallFreshness", "isOfficial", "transitionToCountryMirror")
873
874
# IDistributionSourcePackage
875
patch_entry_explicit_version(IDistributionSourcePackage, 'beta')
876
patch_operations_explicit_version(
877
    IDistributionSourcePackage, 'beta', "bugtasks")
878
879
# IDistroArchSeries
880
patch_entry_explicit_version(IDistroArchSeries, 'beta')
881
882
# IDistroSeries
12599.4.5 by Leonard Richardson
Committing my work in progress.
883
patch_entry_explicit_version(IDistroSeries, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
884
patch_operations_explicit_version(
13117.2.11 by Raphael Badin
Remove deriveDistroSeries.
885
    IDistroSeries, 'beta', "initDerivedDistroSeries", "getDerivedSeries",
886
    "getParentSeries", "getDistroArchSeries", "getPackageUploads",
887
    "getSourcePackage", "newMilestone")
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
888
889
# IDistroSeriesDifference
12599.4.5 by Leonard Richardson
Committing my work in progress.
890
patch_entry_explicit_version(IDistroSeriesDifference, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
891
patch_operations_explicit_version(
892
    IDistroSeriesDifference, 'beta', "addComment", "blacklist",
893
    "requestPackageDiffs", "unblacklist")
894
895
# IDistroSeriesDifferenceComment
12599.4.5 by Leonard Richardson
Committing my work in progress.
896
patch_entry_explicit_version(IDistroSeriesDifferenceComment, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
897
898
# IGPGKey
12599.4.3 by Leonard Richardson
Patch the entries.
899
patch_entry_explicit_version(IGPGKey, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
900
901
# IHWDBApplication
12599.4.5 by Leonard Richardson
Committing my work in progress.
902
patch_entry_explicit_version(IHWDBApplication, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
903
patch_operations_explicit_version(
904
    IHWDBApplication, 'beta', "deviceDriverOwnersAffectedByBugs", "devices",
905
    "drivers", "hwInfoByBugRelatedUsers", "numDevicesInSubmissions",
13165.3.1 by Marc Tardif
Exposed the search method from IHWSubmissionSet in IHWDBApplication.
906
    "numOwnersOfDevice", "numSubmissionsWithDevice", "search", "vendorIDs")
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
907
908
# IHWDevice
12599.4.3 by Leonard Richardson
Patch the entries.
909
patch_entry_explicit_version(IHWDevice, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
910
patch_operations_explicit_version(
911
    IHWDevice, 'beta', "getOrCreateDeviceClass", "getSubmissions",
912
    "removeDeviceClass")
913
914
# IHWDeviceClass
12599.4.3 by Leonard Richardson
Patch the entries.
915
patch_entry_explicit_version(IHWDeviceClass, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
916
patch_operations_explicit_version(
917
    IHWDeviceClass, 'beta', "delete")
918
919
# IHWDriver
12599.4.3 by Leonard Richardson
Patch the entries.
920
patch_entry_explicit_version(IHWDriver, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
921
patch_operations_explicit_version(
922
    IHWDriver, 'beta', "getSubmissions")
923
924
# IHWDriverName
12599.4.3 by Leonard Richardson
Patch the entries.
925
patch_entry_explicit_version(IHWDriverName, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
926
927
# IHWDriverPackageName
12599.4.3 by Leonard Richardson
Patch the entries.
928
patch_entry_explicit_version(IHWDriverPackageName, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
929
930
# IHWSubmission
12599.4.3 by Leonard Richardson
Patch the entries.
931
patch_entry_explicit_version(IHWSubmission, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
932
933
# IHWSubmissionDevice
12599.4.3 by Leonard Richardson
Patch the entries.
934
patch_entry_explicit_version(IHWSubmissionDevice, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
935
936
# IHWVendorID
12599.4.3 by Leonard Richardson
Patch the entries.
937
patch_entry_explicit_version(IHWVendorID, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
938
939
# IHasBugs
940
patch_entry_explicit_version(IHasBugs, 'beta')
941
942
# IHasMilestones
943
patch_entry_explicit_version(IHasMilestones, 'beta')
944
945
# IHasTranslationImports
946
patch_entry_explicit_version(IHasTranslationImports, 'beta')
947
948
# IIrcID
12599.4.3 by Leonard Richardson
Patch the entries.
949
patch_entry_explicit_version(IIrcID, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
950
951
# IJabberID
12599.4.3 by Leonard Richardson
Patch the entries.
952
patch_entry_explicit_version(IJabberID, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
953
954
# ILanguage
12599.4.3 by Leonard Richardson
Patch the entries.
955
patch_entry_explicit_version(ILanguage, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
956
957
# ILanguageSet
958
patch_operations_explicit_version(ILanguageSet, 'beta', "getAllLanguages")
959
960
# IMaloneApplication
961
patch_operations_explicit_version(IMaloneApplication, 'beta', "createBug")
962
963
# IMessage
12599.4.3 by Leonard Richardson
Patch the entries.
964
patch_entry_explicit_version(IMessage, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
965
966
# IMilestone
12599.4.3 by Leonard Richardson
Patch the entries.
967
patch_entry_explicit_version(IMilestone, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
968
969
# IPOFile
970
patch_entry_explicit_version(IPOFile, 'beta')
971
972
# IPOTemplate
973
patch_entry_explicit_version(IPOTemplate, 'beta')
974
975
# IPackageUpload
976
patch_entry_explicit_version(IPackageUpload, 'beta')
977
978
# IPackageset
12599.4.3 by Leonard Richardson
Patch the entries.
979
patch_entry_explicit_version(IPackageset, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
980
patch_operations_explicit_version(
981
    IPackageset, 'beta', "addSources", "addSubsets", "getSourcesIncluded",
982
    "getSourcesNotSharedBy", "getSourcesSharedBy", "relatedSets",
983
    "removeSources", "removeSubsets", "setsIncluded", "setsIncludedBy")
984
985
# IPackagesetSet
986
patch_operations_explicit_version(
987
    IPackagesetSet, 'beta', "getByName", "new", "setsIncludingSource")
988
989
# IPerson
12599.4.3 by Leonard Richardson
Patch the entries.
990
patch_entry_explicit_version(IPerson, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
991
992
# IPillar
12599.4.3 by Leonard Richardson
Patch the entries.
993
patch_entry_explicit_version(IPillar, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
994
995
# IPillarNameSet
12599.4.5 by Leonard Richardson
Committing my work in progress.
996
patch_entry_explicit_version(IPillarNameSet, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
997
patch_operations_explicit_version(
998
    IPillarNameSet, 'beta', "search")
999
1000
# IPreviewDiff
12599.4.3 by Leonard Richardson
Patch the entries.
1001
patch_entry_explicit_version(IPreviewDiff, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
1002
1003
# IProduct
12599.4.3 by Leonard Richardson
Patch the entries.
1004
patch_entry_explicit_version(IProduct, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
1005
patch_operations_explicit_version(
1006
    IProduct, 'beta', "getRelease", "getSeries", "getTimeline", "newSeries")
1007
1008
# IProductRelease
12599.4.3 by Leonard Richardson
Patch the entries.
1009
patch_entry_explicit_version(IProductRelease, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
1010
patch_operations_explicit_version(
1011
    IProductRelease, 'beta', "addReleaseFile", "destroySelf")
1012
1013
# IProductReleaseFile
12599.4.3 by Leonard Richardson
Patch the entries.
1014
patch_entry_explicit_version(IProductReleaseFile, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
1015
patch_operations_explicit_version(
1016
    IProductReleaseFile, 'beta', "destroySelf")
1017
1018
# IProductSeries
12599.4.3 by Leonard Richardson
Patch the entries.
1019
patch_entry_explicit_version(IProductSeries, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
1020
patch_operations_explicit_version(
1021
    IProductSeries, 'beta', "getTimeline", "newMilestone")
1022
1023
# IProductSet
1024
patch_operations_explicit_version(
1025
    IProductSet, 'beta', "createProduct", "forReview", "latest", "search")
1026
1027
# IProjectGroup
12599.4.3 by Leonard Richardson
Patch the entries.
1028
patch_entry_explicit_version(IProjectGroup, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
1029
1030
# IProjectGroupSet
1031
patch_operations_explicit_version(
1032
    IProjectGroupSet, 'beta', "search")
1033
1034
# ISSHKey
1035
patch_entry_explicit_version(ISSHKey, 'beta')
1036
1037
# ISourcePackage
12599.4.3 by Leonard Richardson
Patch the entries.
1038
patch_entry_explicit_version(ISourcePackage, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
1039
patch_operations_explicit_version(
1040
    ISourcePackage, 'beta', "getBranch", "linkedBranches", "setBranch")
1041
1042
# ISourcePackagePublishingHistory
12599.4.3 by Leonard Richardson
Patch the entries.
1043
patch_entry_explicit_version(ISourcePackagePublishingHistory, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
1044
patch_operations_explicit_version(
1045
    ISourcePackagePublishingHistory, 'beta', "api_requestDeletion",
1046
    "binaryFileUrls", "changesFileUrl", "getBuilds", "getPublishedBinaries",
1047
    "packageDiffUrl", "sourceFileUrls")
1048
1049
# ISourcePackageRecipe
12599.4.3 by Leonard Richardson
Patch the entries.
1050
patch_entry_explicit_version(ISourcePackageRecipe, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
1051
patch_operations_explicit_version(
1052
    ISourcePackageRecipe, 'beta', "performDailyBuild", "requestBuild",
1053
    "setRecipeText")
1054
1055
# ISourcePackageRecipeBuild
12599.4.3 by Leonard Richardson
Patch the entries.
1056
patch_entry_explicit_version(ISourcePackageRecipeBuild, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
1057
1058
# IStructuralSubscription
12599.4.3 by Leonard Richardson
Patch the entries.
1059
patch_entry_explicit_version(IStructuralSubscription, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
1060
patch_operations_explicit_version(
1061
    IStructuralSubscription, 'beta', "delete", "newBugFilter")
1062
1063
# IStructuralSubscriptionTarget
12599.4.3 by Leonard Richardson
Patch the entries.
1064
patch_entry_explicit_version(IStructuralSubscriptionTarget, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
1065
1066
# ITeam
12599.4.3 by Leonard Richardson
Patch the entries.
1067
patch_entry_explicit_version(ITeam, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
1068
1069
# ITeamMembership
12599.4.3 by Leonard Richardson
Patch the entries.
1070
patch_entry_explicit_version(ITeamMembership, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
1071
patch_operations_explicit_version(
1072
    ITeamMembership, 'beta', "setExpirationDate", "setStatus")
1073
1074
# ITimelineProductSeries
12599.4.5 by Leonard Richardson
Committing my work in progress.
1075
patch_entry_explicit_version(ITimelineProductSeries, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
1076
1077
# ITranslationGroup
12599.4.3 by Leonard Richardson
Patch the entries.
1078
patch_entry_explicit_version(ITranslationGroup, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
1079
1080
# ITranslationImportQueue
1081
patch_operations_explicit_version(
1082
    ITranslationImportQueue, 'beta', "getAllEntries", "getFirstEntryToImport",
1083
    "getRequestTargets")
1084
1085
# ITranslationImportQueueEntry
12599.4.3 by Leonard Richardson
Patch the entries.
1086
patch_entry_explicit_version(ITranslationImportQueueEntry, 'beta')
12599.4.19 by Leonard Richardson
Redo the web service patch commands to be more concise and friendly towards people who want to get rid of patches.
1087
patch_operations_explicit_version(
1088
    ITranslationImportQueueEntry, 'beta', "setStatus")
1089
1090
# IWikiName
12599.4.3 by Leonard Richardson
Patch the entries.
1091
patch_entry_explicit_version(IWikiName, 'beta')