Merge lp:~thumper/launchpad/move-branch-errors into lp:launchpad
- move-branch-errors
- Merge into devel
Proposed by
Tim Penhey
Status: | Merged |
---|---|
Approved by: | Tim Penhey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 11286 |
Proposed branch: | lp:~thumper/launchpad/move-branch-errors |
Merge into: | lp:launchpad |
Diff against target: |
305 lines (+60/-63) 11 files modified
lib/canonical/launchpad/browser/launchpad.py (+2/-3) lib/lp/code/errors.py (+36/-3) lib/lp/code/interfaces/branchnamespace.py (+0/-14) lib/lp/code/interfaces/linkedbranch.py (+2/-19) lib/lp/code/model/branchlookup.py (+4/-5) lib/lp/code/model/branchnamespace.py (+2/-2) lib/lp/code/model/tests/test_branchlookup.py (+4/-5) lib/lp/code/model/tests/test_branchnamespace.py (+2/-2) lib/lp/code/xmlrpc/branch.py (+3/-5) lib/lp/code/xmlrpc/codehosting.py (+3/-3) lib/lp/registry/browser/person.py (+2/-2) |
To merge this branch: | bzr merge lp:~thumper/launchpad/move-branch-errors |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Hudson-Doyle | Approve | ||
Review via email: mp+31602@code.launchpad.net |
Commit message
Move some more code errors into lp.code.errors.
Description of the change
Some more simple error moving.
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'lib/canonical/launchpad/browser/launchpad.py' | |||
2 | --- lib/canonical/launchpad/browser/launchpad.py 2010-08-02 01:37:09 +0000 | |||
3 | +++ lib/canonical/launchpad/browser/launchpad.py 2010-08-03 04:01:43 +0000 | |||
4 | @@ -80,12 +80,11 @@ | |||
5 | 80 | from lp.bugs.interfaces.bug import IBugSet | 80 | from lp.bugs.interfaces.bug import IBugSet |
6 | 81 | from lp.bugs.interfaces.malone import IMaloneApplication | 81 | from lp.bugs.interfaces.malone import IMaloneApplication |
7 | 82 | from lp.buildmaster.interfaces.builder import IBuilderSet | 82 | from lp.buildmaster.interfaces.builder import IBuilderSet |
8 | 83 | from lp.code.errors import ( | ||
9 | 84 | CannotHaveLinkedBranch, InvalidNamespace, NoLinkedBranch) | ||
10 | 83 | from lp.code.interfaces.branch import IBranchSet | 85 | from lp.code.interfaces.branch import IBranchSet |
11 | 84 | from lp.code.interfaces.branchlookup import IBranchLookup | 86 | from lp.code.interfaces.branchlookup import IBranchLookup |
12 | 85 | from lp.code.interfaces.branchnamespace import InvalidNamespace | ||
13 | 86 | from lp.code.interfaces.codeimport import ICodeImportSet | 87 | from lp.code.interfaces.codeimport import ICodeImportSet |
14 | 87 | from lp.code.interfaces.linkedbranch import ( | ||
15 | 88 | CannotHaveLinkedBranch, NoLinkedBranch) | ||
16 | 89 | from lp.hardwaredb.interfaces.hwdb import IHWDBApplication | 88 | from lp.hardwaredb.interfaces.hwdb import IHWDBApplication |
17 | 90 | from lp.registry.interfaces.codeofconduct import ICodeOfConductSet | 89 | from lp.registry.interfaces.codeofconduct import ICodeOfConductSet |
18 | 91 | from lp.registry.interfaces.distribution import IDistributionSet | 90 | from lp.registry.interfaces.distribution import IDistributionSet |
19 | 92 | 91 | ||
20 | === modified file 'lib/lp/code/errors.py' | |||
21 | --- lib/lp/code/errors.py 2010-08-02 02:51:42 +0000 | |||
22 | +++ lib/lp/code/errors.py 2010-08-03 04:01:43 +0000 | |||
23 | @@ -20,12 +20,15 @@ | |||
24 | 20 | 'BuildNotAllowedForDistro', | 20 | 'BuildNotAllowedForDistro', |
25 | 21 | 'BranchMergeProposalExists', | 21 | 'BranchMergeProposalExists', |
26 | 22 | 'CannotDeleteBranch', | 22 | 'CannotDeleteBranch', |
27 | 23 | 'CannotHaveLinkedBranch', | ||
28 | 23 | 'CodeImportAlreadyRequested', | 24 | 'CodeImportAlreadyRequested', |
29 | 24 | 'CodeImportAlreadyRunning', | 25 | 'CodeImportAlreadyRunning', |
30 | 25 | 'CodeImportNotInReviewedState', | 26 | 'CodeImportNotInReviewedState', |
31 | 26 | 'ClaimReviewFailed', | 27 | 'ClaimReviewFailed', |
32 | 27 | 'ForbiddenInstruction', | 28 | 'ForbiddenInstruction', |
33 | 28 | 'InvalidBranchMergeProposal', | 29 | 'InvalidBranchMergeProposal', |
34 | 30 | 'InvalidNamespace', | ||
35 | 31 | 'NoLinkedBranch', | ||
36 | 29 | 'NoSuchBranch', | 32 | 'NoSuchBranch', |
37 | 30 | 'PrivateBranchRecipe', | 33 | 'PrivateBranchRecipe', |
38 | 31 | 'ReviewNotPending', | 34 | 'ReviewNotPending', |
39 | @@ -131,10 +134,13 @@ | |||
40 | 131 | """The branch cannot be made private.""" | 134 | """The branch cannot be made private.""" |
41 | 132 | 135 | ||
42 | 133 | 136 | ||
45 | 134 | class NoSuchBranch(NameLookupFailed): | 137 | class CannotHaveLinkedBranch(Exception): |
46 | 135 | """Raised when we try to load a branch that does not exist.""" | 138 | """Raised when we try to get the linked branch for a thing that can't.""" |
47 | 136 | 139 | ||
49 | 137 | _message_prefix = "No such branch" | 140 | def __init__(self, component): |
50 | 141 | self.component = component | ||
51 | 142 | Exception.__init__( | ||
52 | 143 | self, "%r cannot have linked branches." % (component,)) | ||
53 | 138 | 144 | ||
54 | 139 | 145 | ||
55 | 140 | class ClaimReviewFailed(Exception): | 146 | class ClaimReviewFailed(Exception): |
56 | @@ -154,6 +160,33 @@ | |||
57 | 154 | webservice_error(400) #Bad request. | 160 | webservice_error(400) #Bad request. |
58 | 155 | 161 | ||
59 | 156 | 162 | ||
60 | 163 | class InvalidNamespace(Exception): | ||
61 | 164 | """Raised when someone tries to lookup a namespace with a bad name. | ||
62 | 165 | |||
63 | 166 | By 'bad', we mean that the name is unparseable. It might be too short, too | ||
64 | 167 | long or malformed in some other way. | ||
65 | 168 | """ | ||
66 | 169 | |||
67 | 170 | def __init__(self, name): | ||
68 | 171 | self.name = name | ||
69 | 172 | Exception.__init__( | ||
70 | 173 | self, "Cannot understand namespace name: '%s'" % (name,)) | ||
71 | 174 | |||
72 | 175 | |||
73 | 176 | class NoLinkedBranch(Exception): | ||
74 | 177 | """Raised when there's no linked branch for a thing.""" | ||
75 | 178 | |||
76 | 179 | def __init__(self, component): | ||
77 | 180 | self.component = component | ||
78 | 181 | Exception.__init__(self, "%r has no linked branch." % (component,)) | ||
79 | 182 | |||
80 | 183 | |||
81 | 184 | class NoSuchBranch(NameLookupFailed): | ||
82 | 185 | """Raised when we try to load a branch that does not exist.""" | ||
83 | 186 | |||
84 | 187 | _message_prefix = "No such branch" | ||
85 | 188 | |||
86 | 189 | |||
87 | 157 | class PrivateBranchRecipe(Exception): | 190 | class PrivateBranchRecipe(Exception): |
88 | 158 | 191 | ||
89 | 159 | def __init__(self, branch): | 192 | def __init__(self, branch): |
90 | 160 | 193 | ||
91 | === modified file 'lib/lp/code/interfaces/branchnamespace.py' | |||
92 | --- lib/lp/code/interfaces/branchnamespace.py 2009-08-13 15:12:16 +0000 | |||
93 | +++ lib/lp/code/interfaces/branchnamespace.py 2010-08-03 04:01:43 +0000 | |||
94 | @@ -11,7 +11,6 @@ | |||
95 | 11 | 'IBranchNamespace', | 11 | 'IBranchNamespace', |
96 | 12 | 'IBranchNamespacePolicy', | 12 | 'IBranchNamespacePolicy', |
97 | 13 | 'IBranchNamespaceSet', | 13 | 'IBranchNamespaceSet', |
98 | 14 | 'InvalidNamespace', | ||
99 | 15 | 'lookup_branch_namespace', | 14 | 'lookup_branch_namespace', |
100 | 16 | 'split_unique_name', | 15 | 'split_unique_name', |
101 | 17 | ] | 16 | ] |
102 | @@ -281,19 +280,6 @@ | |||
103 | 281 | """ | 280 | """ |
104 | 282 | 281 | ||
105 | 283 | 282 | ||
106 | 284 | class InvalidNamespace(Exception): | ||
107 | 285 | """Raised when someone tries to lookup a namespace with a bad name. | ||
108 | 286 | |||
109 | 287 | By 'bad', we mean that the name is unparseable. It might be too short, too | ||
110 | 288 | long or malformed in some other way. | ||
111 | 289 | """ | ||
112 | 290 | |||
113 | 291 | def __init__(self, name): | ||
114 | 292 | self.name = name | ||
115 | 293 | Exception.__init__( | ||
116 | 294 | self, "Cannot understand namespace name: '%s'" % (name,)) | ||
117 | 295 | |||
118 | 296 | |||
119 | 297 | def get_branch_namespace(person, product=None, distroseries=None, | 283 | def get_branch_namespace(person, product=None, distroseries=None, |
120 | 298 | sourcepackagename=None): | 284 | sourcepackagename=None): |
121 | 299 | return getUtility(IBranchNamespaceSet).get( | 285 | return getUtility(IBranchNamespaceSet).get( |
122 | 300 | 286 | ||
123 | === modified file 'lib/lp/code/interfaces/linkedbranch.py' | |||
124 | --- lib/lp/code/interfaces/linkedbranch.py 2010-04-07 20:43:03 +0000 | |||
125 | +++ lib/lp/code/interfaces/linkedbranch.py 2010-08-03 04:01:43 +0000 | |||
126 | @@ -12,15 +12,15 @@ | |||
127 | 12 | 12 | ||
128 | 13 | __metaclass__ = type | 13 | __metaclass__ = type |
129 | 14 | __all__ = [ | 14 | __all__ = [ |
130 | 15 | 'CannotHaveLinkedBranch', | ||
131 | 16 | 'get_linked_branch', | 15 | 'get_linked_branch', |
132 | 17 | 'ICanHasLinkedBranch', | 16 | 'ICanHasLinkedBranch', |
133 | 18 | 'NoLinkedBranch', | ||
134 | 19 | ] | 17 | ] |
135 | 20 | 18 | ||
136 | 21 | from zope.interface import Attribute, Interface | 19 | from zope.interface import Attribute, Interface |
137 | 22 | from zope.security.proxy import isinstance as zope_isinstance | 20 | from zope.security.proxy import isinstance as zope_isinstance |
138 | 23 | 21 | ||
139 | 22 | from lp.code.errors import CannotHaveLinkedBranch, NoLinkedBranch | ||
140 | 23 | |||
141 | 24 | 24 | ||
142 | 25 | class ICanHasLinkedBranch(Interface): | 25 | class ICanHasLinkedBranch(Interface): |
143 | 26 | """Something that has a linked branch.""" | 26 | """Something that has a linked branch.""" |
144 | @@ -41,23 +41,6 @@ | |||
145 | 41 | """ | 41 | """ |
146 | 42 | 42 | ||
147 | 43 | 43 | ||
148 | 44 | class CannotHaveLinkedBranch(Exception): | ||
149 | 45 | """Raised when we try to get the linked branch for a thing that can't.""" | ||
150 | 46 | |||
151 | 47 | def __init__(self, component): | ||
152 | 48 | self.component = component | ||
153 | 49 | Exception.__init__( | ||
154 | 50 | self, "%r cannot have linked branches." % (component,)) | ||
155 | 51 | |||
156 | 52 | |||
157 | 53 | class NoLinkedBranch(Exception): | ||
158 | 54 | """Raised when there's no linked branch for a thing.""" | ||
159 | 55 | |||
160 | 56 | def __init__(self, component): | ||
161 | 57 | self.component = component | ||
162 | 58 | Exception.__init__(self, "%r has no linked branch." % (component,)) | ||
163 | 59 | |||
164 | 60 | |||
165 | 61 | def get_linked_branch(provided): | 44 | def get_linked_branch(provided): |
166 | 62 | """Get the linked branch for 'provided', whatever that is. | 45 | """Get the linked branch for 'provided', whatever that is. |
167 | 63 | 46 | ||
168 | 64 | 47 | ||
169 | === modified file 'lib/lp/code/model/branchlookup.py' | |||
170 | --- lib/lp/code/model/branchlookup.py 2010-08-02 02:36:32 +0000 | |||
171 | +++ lib/lp/code/model/branchlookup.py 2010-08-03 04:01:43 +0000 | |||
172 | @@ -21,13 +21,12 @@ | |||
173 | 21 | from lp.registry.model.person import Person | 21 | from lp.registry.model.person import Person |
174 | 22 | from lp.registry.model.product import Product | 22 | from lp.registry.model.product import Product |
175 | 23 | from lp.registry.model.sourcepackagename import SourcePackageName | 23 | from lp.registry.model.sourcepackagename import SourcePackageName |
177 | 24 | from lp.code.errors import NoSuchBranch | 24 | from lp.code.errors import ( |
178 | 25 | CannotHaveLinkedBranch, InvalidNamespace, NoLinkedBranch, NoSuchBranch) | ||
179 | 25 | from lp.code.interfaces.branchlookup import ( | 26 | from lp.code.interfaces.branchlookup import ( |
180 | 26 | IBranchLookup, ILinkedBranchTraversable, ILinkedBranchTraverser) | 27 | IBranchLookup, ILinkedBranchTraversable, ILinkedBranchTraverser) |
185 | 27 | from lp.code.interfaces.branchnamespace import ( | 28 | from lp.code.interfaces.branchnamespace import IBranchNamespaceSet |
186 | 28 | IBranchNamespaceSet, InvalidNamespace) | 29 | from lp.code.interfaces.linkedbranch import get_linked_branch |
183 | 29 | from lp.code.interfaces.linkedbranch import ( | ||
184 | 30 | CannotHaveLinkedBranch, get_linked_branch, NoLinkedBranch) | ||
187 | 31 | from lp.registry.interfaces.distribution import IDistribution | 30 | from lp.registry.interfaces.distribution import IDistribution |
188 | 32 | from lp.registry.interfaces.distroseries import ( | 31 | from lp.registry.interfaces.distroseries import ( |
189 | 33 | IDistroSeries, IDistroSeriesSet, NoSuchDistroSeries) | 32 | IDistroSeries, IDistroSeriesSet, NoSuchDistroSeries) |
190 | 34 | 33 | ||
191 | === modified file 'lib/lp/code/model/branchnamespace.py' | |||
192 | --- lib/lp/code/model/branchnamespace.py 2010-08-02 02:36:32 +0000 | |||
193 | +++ lib/lp/code/model/branchnamespace.py 2010-08-03 04:01:43 +0000 | |||
194 | @@ -28,11 +28,11 @@ | |||
195 | 28 | BranchVisibilityRule, CodeReviewNotificationLevel) | 28 | BranchVisibilityRule, CodeReviewNotificationLevel) |
196 | 29 | from lp.code.errors import ( | 29 | from lp.code.errors import ( |
197 | 30 | BranchCreationForbidden, BranchCreatorNotMemberOfOwnerTeam, | 30 | BranchCreationForbidden, BranchCreatorNotMemberOfOwnerTeam, |
199 | 31 | BranchCreatorNotOwner, BranchExists, NoSuchBranch) | 31 | BranchCreatorNotOwner, BranchExists, InvalidNamespace, NoSuchBranch) |
200 | 32 | from lp.code.interfaces.branch import ( | 32 | from lp.code.interfaces.branch import ( |
201 | 33 | IBranch, user_has_special_branch_access) | 33 | IBranch, user_has_special_branch_access) |
202 | 34 | from lp.code.interfaces.branchnamespace import ( | 34 | from lp.code.interfaces.branchnamespace import ( |
204 | 35 | IBranchNamespace, IBranchNamespacePolicy, InvalidNamespace) | 35 | IBranchNamespace, IBranchNamespacePolicy) |
205 | 36 | from lp.code.interfaces.branchtarget import IBranchTarget | 36 | from lp.code.interfaces.branchtarget import IBranchTarget |
206 | 37 | from lp.code.model.branch import Branch | 37 | from lp.code.model.branch import Branch |
207 | 38 | from lp.registry.interfaces.distribution import ( | 38 | from lp.registry.interfaces.distribution import ( |
208 | 39 | 39 | ||
209 | === modified file 'lib/lp/code/model/tests/test_branchlookup.py' | |||
210 | --- lib/lp/code/model/tests/test_branchlookup.py 2010-08-02 02:36:32 +0000 | |||
211 | +++ lib/lp/code/model/tests/test_branchlookup.py 2010-08-03 04:01:43 +0000 | |||
212 | @@ -13,13 +13,12 @@ | |||
213 | 13 | from zope.security.proxy import removeSecurityProxy | 13 | from zope.security.proxy import removeSecurityProxy |
214 | 14 | 14 | ||
215 | 15 | from canonical.config import config | 15 | from canonical.config import config |
217 | 16 | from lp.code.errors import NoSuchBranch | 16 | from lp.code.errors import ( |
218 | 17 | CannotHaveLinkedBranch, InvalidNamespace, NoLinkedBranch, NoSuchBranch) | ||
219 | 17 | from lp.code.interfaces.branchlookup import ( | 18 | from lp.code.interfaces.branchlookup import ( |
220 | 18 | IBranchLookup, ILinkedBranchTraverser) | 19 | IBranchLookup, ILinkedBranchTraverser) |
225 | 19 | from lp.code.interfaces.branchnamespace import ( | 20 | from lp.code.interfaces.branchnamespace import get_branch_namespace |
226 | 20 | get_branch_namespace, InvalidNamespace) | 21 | from lp.code.interfaces.linkedbranch import ICanHasLinkedBranch |
223 | 21 | from lp.code.interfaces.linkedbranch import ( | ||
224 | 22 | CannotHaveLinkedBranch, ICanHasLinkedBranch, NoLinkedBranch) | ||
227 | 23 | from lp.registry.interfaces.distroseries import NoSuchDistroSeries | 22 | from lp.registry.interfaces.distroseries import NoSuchDistroSeries |
228 | 24 | from canonical.launchpad.interfaces.launchpad import ILaunchpadCelebrities | 23 | from canonical.launchpad.interfaces.launchpad import ILaunchpadCelebrities |
229 | 25 | from lp.registry.interfaces.person import NoSuchPerson | 24 | from lp.registry.interfaces.person import NoSuchPerson |
230 | 26 | 25 | ||
231 | === modified file 'lib/lp/code/model/tests/test_branchnamespace.py' | |||
232 | --- lib/lp/code/model/tests/test_branchnamespace.py 2010-08-02 02:36:32 +0000 | |||
233 | +++ lib/lp/code/model/tests/test_branchnamespace.py 2010-08-03 04:01:43 +0000 | |||
234 | @@ -21,10 +21,10 @@ | |||
235 | 21 | BranchLifecycleStatus, BranchType, BranchVisibilityRule) | 21 | BranchLifecycleStatus, BranchType, BranchVisibilityRule) |
236 | 22 | from lp.code.errors import ( | 22 | from lp.code.errors import ( |
237 | 23 | BranchCreationForbidden, BranchCreatorNotMemberOfOwnerTeam, | 23 | BranchCreationForbidden, BranchCreatorNotMemberOfOwnerTeam, |
239 | 24 | BranchCreatorNotOwner, BranchExists, NoSuchBranch) | 24 | BranchCreatorNotOwner, BranchExists, InvalidNamespace, NoSuchBranch) |
240 | 25 | from lp.code.interfaces.branchnamespace import ( | 25 | from lp.code.interfaces.branchnamespace import ( |
241 | 26 | get_branch_namespace, IBranchNamespacePolicy, IBranchNamespace, | 26 | get_branch_namespace, IBranchNamespacePolicy, IBranchNamespace, |
243 | 27 | IBranchNamespaceSet, lookup_branch_namespace, InvalidNamespace) | 27 | IBranchNamespaceSet, lookup_branch_namespace) |
244 | 28 | from lp.code.interfaces.branchtarget import IBranchTarget | 28 | from lp.code.interfaces.branchtarget import IBranchTarget |
245 | 29 | from lp.registry.interfaces.distribution import NoSuchDistribution | 29 | from lp.registry.interfaces.distribution import NoSuchDistribution |
246 | 30 | from lp.registry.interfaces.distroseries import NoSuchDistroSeries | 30 | from lp.registry.interfaces.distroseries import NoSuchDistroSeries |
247 | 31 | 31 | ||
248 | === modified file 'lib/lp/code/xmlrpc/branch.py' | |||
249 | --- lib/lp/code/xmlrpc/branch.py 2010-08-02 02:51:42 +0000 | |||
250 | +++ lib/lp/code/xmlrpc/branch.py 2010-08-03 04:01:43 +0000 | |||
251 | @@ -23,15 +23,13 @@ | |||
252 | 23 | from canonical.launchpad.webapp.interfaces import ILaunchBag | 23 | from canonical.launchpad.webapp.interfaces import ILaunchBag |
253 | 24 | from lp.code.enums import BranchType | 24 | from lp.code.enums import BranchType |
254 | 25 | from lp.code.errors import ( | 25 | from lp.code.errors import ( |
256 | 26 | BranchCreationException, BranchCreationForbidden, NoSuchBranch) | 26 | BranchCreationException, BranchCreationForbidden, CannotHaveLinkedBranch, |
257 | 27 | InvalidNamespace, NoLinkedBranch, NoSuchBranch) | ||
258 | 27 | from lp.code.interfaces.branch import IBranch | 28 | from lp.code.interfaces.branch import IBranch |
259 | 28 | from lp.registry.interfaces.person import IPersonSet | 29 | from lp.registry.interfaces.person import IPersonSet |
260 | 29 | from lp.registry.interfaces.product import IProductSet | 30 | from lp.registry.interfaces.product import IProductSet |
261 | 30 | from lp.code.interfaces.branchlookup import IBranchLookup | 31 | from lp.code.interfaces.branchlookup import IBranchLookup |
266 | 31 | from lp.code.interfaces.branchnamespace import ( | 32 | from lp.code.interfaces.branchnamespace import get_branch_namespace |
263 | 32 | get_branch_namespace, InvalidNamespace) | ||
264 | 33 | from lp.code.interfaces.linkedbranch import ( | ||
265 | 34 | CannotHaveLinkedBranch, NoLinkedBranch) | ||
267 | 35 | from lp.registry.interfaces.distroseries import NoSuchDistroSeries | 33 | from lp.registry.interfaces.distroseries import NoSuchDistroSeries |
268 | 36 | from lp.registry.interfaces.person import NoSuchPerson | 34 | from lp.registry.interfaces.person import NoSuchPerson |
269 | 37 | from lp.registry.interfaces.product import ( | 35 | from lp.registry.interfaces.product import ( |
270 | 38 | 36 | ||
271 | === modified file 'lib/lp/code/xmlrpc/codehosting.py' | |||
272 | --- lib/lp/code/xmlrpc/codehosting.py 2010-08-02 02:51:42 +0000 | |||
273 | +++ lib/lp/code/xmlrpc/codehosting.py 2010-08-03 04:01:43 +0000 | |||
274 | @@ -30,13 +30,13 @@ | |||
275 | 30 | from canonical.launchpad.xmlrpc.helpers import return_fault | 30 | from canonical.launchpad.xmlrpc.helpers import return_fault |
276 | 31 | 31 | ||
277 | 32 | from lp.app.errors import NameLookupFailed, NotFoundError | 32 | from lp.app.errors import NameLookupFailed, NotFoundError |
278 | 33 | from lp.code.errors import UnknownBranchTypeError | ||
279 | 34 | from lp.code.bzr import BranchFormat, ControlFormat, RepositoryFormat | 33 | from lp.code.bzr import BranchFormat, ControlFormat, RepositoryFormat |
280 | 35 | from lp.code.enums import BranchType | 34 | from lp.code.enums import BranchType |
282 | 36 | from lp.code.errors import BranchCreationException | 35 | from lp.code.errors import ( |
283 | 36 | BranchCreationException, InvalidNamespace, UnknownBranchTypeError) | ||
284 | 37 | from lp.code.interfaces.branchlookup import IBranchLookup | 37 | from lp.code.interfaces.branchlookup import IBranchLookup |
285 | 38 | from lp.code.interfaces.branchnamespace import ( | 38 | from lp.code.interfaces.branchnamespace import ( |
287 | 39 | InvalidNamespace, lookup_branch_namespace, split_unique_name) | 39 | lookup_branch_namespace, split_unique_name) |
288 | 40 | from lp.code.interfaces import branchpuller | 40 | from lp.code.interfaces import branchpuller |
289 | 41 | from lp.code.interfaces.codehosting import ( | 41 | from lp.code.interfaces.codehosting import ( |
290 | 42 | BRANCH_TRANSPORT, CONTROL_TRANSPORT, ICodehostingAPI, LAUNCHPAD_ANONYMOUS, | 42 | BRANCH_TRANSPORT, CONTROL_TRANSPORT, ICodehostingAPI, LAUNCHPAD_ANONYMOUS, |
291 | 43 | 43 | ||
292 | === modified file 'lib/lp/registry/browser/person.py' | |||
293 | --- lib/lp/registry/browser/person.py 2010-08-02 02:13:52 +0000 | |||
294 | +++ lib/lp/registry/browser/person.py 2010-08-03 04:01:43 +0000 | |||
295 | @@ -171,8 +171,8 @@ | |||
296 | 171 | DAYS_BEFORE_EXPIRATION_WARNING_IS_SENT, ITeamMembership, | 171 | DAYS_BEFORE_EXPIRATION_WARNING_IS_SENT, ITeamMembership, |
297 | 172 | ITeamMembershipSet, TeamMembershipStatus) | 172 | ITeamMembershipSet, TeamMembershipStatus) |
298 | 173 | from lp.registry.interfaces.wikiname import IWikiNameSet | 173 | from lp.registry.interfaces.wikiname import IWikiNameSet |
301 | 174 | from lp.code.interfaces.branchnamespace import ( | 174 | from lp.code.errors import InvalidNamespace |
302 | 175 | IBranchNamespaceSet, InvalidNamespace) | 175 | from lp.code.interfaces.branchnamespace import IBranchNamespaceSet |
303 | 176 | from lp.bugs.interfaces.bugtask import IBugTaskSet | 176 | from lp.bugs.interfaces.bugtask import IBugTaskSet |
304 | 177 | from lp.buildmaster.interfaces.buildbase import BuildStatus | 177 | from lp.buildmaster.interfaces.buildbase import BuildStatus |
305 | 178 | from lp.soyuz.interfaces.binarypackagebuild import IBinaryPackageBuildSet | 178 | from lp.soyuz.interfaces.binarypackagebuild import IBinaryPackageBuildSet |
Assuming make lint is more or less happy, this looks fine!