Merge lp:~stevenk/launchpad/fix-copyrights into lp:launchpad
- fix-copyrights
- Merge into devel
Proposed by
Steve Kowalik
Status: | Merged |
---|---|
Approved by: | William Grant |
Approved revision: | no longer in the source branch. |
Merged at revision: | 15415 |
Proposed branch: | lp:~stevenk/launchpad/fix-copyrights |
Merge into: | lp:launchpad |
Diff against target: |
1124 lines (+132/-131) 61 files modified
lib/lp/app/widgets/tests/test_datetime.py (+5/-0) lib/lp/archivepublisher/tests/test_generate_ppa_htaccess.py (+1/-1) lib/lp/bugs/browser/tests/test_bugtarget_filebug.py (+2/-4) lib/lp/bugs/browser/tests/test_distribution_upstream_report.py (+1/-1) lib/lp/bugs/model/bugtaskflat.py (+7/-2) lib/lp/bugs/model/structuralsubscription.py (+1/-1) lib/lp/bugs/model/tests/test_bug.py (+2/-2) lib/lp/bugs/model/tests/test_bugtask.py (+7/-7) lib/lp/bugs/scripts/tests/test_bugnotification.py (+1/-1) lib/lp/bugs/tests/test_bugtaskset.py (+3/-6) lib/lp/code/mail/codehandler.py (+3/-9) lib/lp/code/mail/tests/test_codehandler.py (+1/-3) lib/lp/code/model/branchjob.py (+2/-2) lib/lp/code/model/branchmergeproposaljob.py (+1/-3) lib/lp/code/model/tests/test_branchjob.py (+2/-4) lib/lp/codehosting/bzrutils.py (+1/-1) lib/lp/codehosting/scanner/tests/test_email.py (+3/-3) lib/lp/codehosting/tests/test_upgrade.py (+3/-0) lib/lp/registry/browser/distribution.py (+1/-1) lib/lp/registry/browser/person.py (+1/-3) lib/lp/registry/browser/tests/test_breadcrumbs.py (+1/-1) lib/lp/registry/browser/tests/test_distribution.py (+1/-0) lib/lp/registry/browser/tests/test_person.py (+1/-1) lib/lp/registry/browser/tests/test_sshkey.py (+1/-1) lib/lp/registry/model/accesspolicy.py (+1/-1) lib/lp/registry/model/productjob.py (+7/-8) lib/lp/registry/model/sharingjob.py (+1/-3) lib/lp/registry/subscribers.py (+1/-3) lib/lp/registry/tests/test_distribution.py (+1/-3) lib/lp/registry/tests/test_productjob.py (+6/-5) lib/lp/registry/tests/test_sharingjob.py (+2/-3) lib/lp/registry/tests/test_teammembership.py (+2/-2) lib/lp/scripts/utilities/js/combo.py (+5/-0) lib/lp/scripts/utilities/js/jsbuild.py (+3/-0) lib/lp/scripts/utilities/js/tests/test_combo.py (+5/-0) lib/lp/services/authserver/tests/test_authserver.py (+1/-1) lib/lp/services/comments/browser/tests/test_comment.py (+5/-0) lib/lp/services/database/locking.py (+6/-7) lib/lp/services/database/stormexpr.py (+1/-1) lib/lp/services/identity/model/emailaddress.py (+0/-1) lib/lp/services/job/celeryconfig.py (+2/-1) lib/lp/services/job/celeryjob.py (+1/-0) lib/lp/services/job/model/job.py (+0/-1) lib/lp/services/job/runner.py (+1/-1) lib/lp/services/job/tests/__init__.py (+1/-1) lib/lp/services/job/tests/celery_helpers.py (+1/-0) lib/lp/services/job/tests/test_job.py (+2/-4) lib/lp/services/job/tests/test_retry_jobs_with_celery.py (+5/-8) lib/lp/services/messages/tests/test_message.py (+1/-3) lib/lp/services/testing/tests/test_customresult.py (+2/-1) lib/lp/services/verification/browser/tests/test_logintoken.py (+1/-1) lib/lp/services/webapp/publisher.py (+1/-1) lib/lp/services/webapp/tests/test_error.py (+3/-2) lib/lp/soyuz/model/packagecopyjob.py (+1/-3) lib/lp/soyuz/tests/test_packagecopyjob.py (+1/-3) lib/lp/soyuz/tests/test_person_createppa.py (+1/-0) lib/lp/testing/fixture.py (+1/-1) lib/lp/testing/layers.py (+1/-1) lib/lp/translations/interfaces/translationpackagingjob.py (+5/-0) lib/lp/translations/tests/test_distroseries_translations_copy.py (+1/-1) lib/lp/translations/tests/test_pofilestatsjob.py (+1/-3) |
To merge this branch: | bzr merge lp:~stevenk/launchpad/fix-copyrights |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Grant | code | Approve | |
Review via email:
|
Commit message
Add copyright headers to files that were missing them, and re-run format-imports over lib/lp.
Description of the change
While working on another branch today I noticed one file that did not have a copyright header. This got me curious enough to search the entire tree for like files -- I found more than I wanted to, so I fixed them. I also ran format-imports across lib/lp.
To post a comment you must log in.
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
William Grant (wgrant) : | # |
review:
Approve
(code)
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'lib/lp/app/widgets/tests/test_datetime.py' | |||
2 | --- lib/lp/app/widgets/tests/test_datetime.py 2012-01-01 02:58:52 +0000 | |||
3 | +++ lib/lp/app/widgets/tests/test_datetime.py 2012-06-14 05:34:29 +0000 | |||
4 | @@ -1,3 +1,8 @@ | |||
5 | 1 | # Copyright 2011-2012 Canonical Ltd. This software is licensed under the | ||
6 | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). | ||
7 | 3 | |||
8 | 4 | __metaclass__ = type | ||
9 | 5 | |||
10 | 1 | from datetime import datetime | 6 | from datetime import datetime |
11 | 2 | 7 | ||
12 | 3 | from zope.app.form.interfaces import ConversionError | 8 | from zope.app.form.interfaces import ConversionError |
13 | 4 | 9 | ||
14 | === modified file 'lib/lp/archivepublisher/tests/test_generate_ppa_htaccess.py' | |||
15 | --- lib/lp/archivepublisher/tests/test_generate_ppa_htaccess.py 2012-05-31 12:11:19 +0000 | |||
16 | +++ lib/lp/archivepublisher/tests/test_generate_ppa_htaccess.py 2012-06-14 05:34:29 +0000 | |||
17 | @@ -34,12 +34,12 @@ | |||
18 | 34 | from lp.services.config import config | 34 | from lp.services.config import config |
19 | 35 | from lp.services.log.logger import BufferLogger | 35 | from lp.services.log.logger import BufferLogger |
20 | 36 | from lp.services.mail import stub | 36 | from lp.services.mail import stub |
21 | 37 | from lp.services.scripts.interfaces.scriptactivity import IScriptActivitySet | ||
22 | 38 | from lp.services.osutils import ( | 37 | from lp.services.osutils import ( |
23 | 39 | ensure_directory_exists, | 38 | ensure_directory_exists, |
24 | 40 | remove_if_exists, | 39 | remove_if_exists, |
25 | 41 | write_file, | 40 | write_file, |
26 | 42 | ) | 41 | ) |
27 | 42 | from lp.services.scripts.interfaces.scriptactivity import IScriptActivitySet | ||
28 | 43 | from lp.soyuz.enums import ( | 43 | from lp.soyuz.enums import ( |
29 | 44 | ArchiveStatus, | 44 | ArchiveStatus, |
30 | 45 | ArchiveSubscriberStatus, | 45 | ArchiveSubscriberStatus, |
31 | 46 | 46 | ||
32 | === modified file 'lib/lp/bugs/browser/tests/test_bugtarget_filebug.py' | |||
33 | --- lib/lp/bugs/browser/tests/test_bugtarget_filebug.py 2012-06-07 12:17:48 +0000 | |||
34 | +++ lib/lp/bugs/browser/tests/test_bugtarget_filebug.py 2012-06-14 05:34:29 +0000 | |||
35 | @@ -5,6 +5,7 @@ | |||
36 | 5 | 5 | ||
37 | 6 | 6 | ||
38 | 7 | from BeautifulSoup import BeautifulSoup | 7 | from BeautifulSoup import BeautifulSoup |
39 | 8 | from lazr.restful.interfaces import IJSONRequestCache | ||
40 | 8 | import transaction | 9 | import transaction |
41 | 9 | from zope.component import getUtility | 10 | from zope.component import getUtility |
42 | 10 | from zope.schema.interfaces import ( | 11 | from zope.schema.interfaces import ( |
43 | @@ -13,10 +14,7 @@ | |||
44 | 13 | ) | 14 | ) |
45 | 14 | from zope.security.proxy import removeSecurityProxy | 15 | from zope.security.proxy import removeSecurityProxy |
46 | 15 | 16 | ||
51 | 16 | from lazr.restful.interfaces import IJSONRequestCache | 17 | from lp.bugs.browser.bugtarget import FileBugViewBase |
48 | 17 | from lp.bugs.browser.bugtarget import ( | ||
49 | 18 | FileBugViewBase, | ||
50 | 19 | ) | ||
52 | 20 | from lp.bugs.interfaces.bug import ( | 18 | from lp.bugs.interfaces.bug import ( |
53 | 21 | IBugAddForm, | 19 | IBugAddForm, |
54 | 22 | IBugSet, | 20 | IBugSet, |
55 | 23 | 21 | ||
56 | === modified file 'lib/lp/bugs/browser/tests/test_distribution_upstream_report.py' | |||
57 | --- lib/lp/bugs/browser/tests/test_distribution_upstream_report.py 2012-05-25 19:58:27 +0000 | |||
58 | +++ lib/lp/bugs/browser/tests/test_distribution_upstream_report.py 2012-06-14 05:34:29 +0000 | |||
59 | @@ -30,8 +30,8 @@ | |||
60 | 30 | LaunchpadFunctionalLayer, | 30 | LaunchpadFunctionalLayer, |
61 | 31 | ) | 31 | ) |
62 | 32 | from lp.testing.views import ( | 32 | from lp.testing.views import ( |
63 | 33 | create_initialized_view, | ||
64 | 33 | create_view, | 34 | create_view, |
65 | 34 | create_initialized_view, | ||
66 | 35 | ) | 35 | ) |
67 | 36 | 36 | ||
68 | 37 | 37 | ||
69 | 38 | 38 | ||
70 | === modified file 'lib/lp/bugs/model/bugtaskflat.py' | |||
71 | --- lib/lp/bugs/model/bugtaskflat.py 2012-05-07 07:43:07 +0000 | |||
72 | +++ lib/lp/bugs/model/bugtaskflat.py 2012-06-14 05:34:29 +0000 | |||
73 | @@ -1,3 +1,8 @@ | |||
74 | 1 | # Copyright 2012 Canonical Ltd. This software is licensed under the | ||
75 | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). | ||
76 | 3 | |||
77 | 4 | __metaclass__ = type | ||
78 | 5 | |||
79 | 1 | from storm.locals import ( | 6 | from storm.locals import ( |
80 | 2 | Bool, | 7 | Bool, |
81 | 3 | DateTime, | 8 | DateTime, |
82 | @@ -6,13 +11,13 @@ | |||
83 | 6 | Storm, | 11 | Storm, |
84 | 7 | ) | 12 | ) |
85 | 8 | 13 | ||
86 | 9 | from lp.registry.enums import InformationType | ||
87 | 10 | from lp.services.database.enumcol import EnumCol | ||
88 | 11 | from lp.bugs.interfaces.bugtask import ( | 14 | from lp.bugs.interfaces.bugtask import ( |
89 | 12 | BugTaskImportance, | 15 | BugTaskImportance, |
90 | 13 | BugTaskStatus, | 16 | BugTaskStatus, |
91 | 14 | BugTaskStatusSearch, | 17 | BugTaskStatusSearch, |
92 | 15 | ) | 18 | ) |
93 | 19 | from lp.registry.enums import InformationType | ||
94 | 20 | from lp.services.database.enumcol import EnumCol | ||
95 | 16 | 21 | ||
96 | 17 | 22 | ||
97 | 18 | class BugTaskFlat(Storm): | 23 | class BugTaskFlat(Storm): |
98 | 19 | 24 | ||
99 | === modified file 'lib/lp/bugs/model/structuralsubscription.py' | |||
100 | --- lib/lp/bugs/model/structuralsubscription.py 2012-05-03 11:58:01 +0000 | |||
101 | +++ lib/lp/bugs/model/structuralsubscription.py 2012-06-14 05:34:29 +0000 | |||
102 | @@ -83,12 +83,12 @@ | |||
103 | 83 | from lp.services.database.constants import UTC_NOW | 83 | from lp.services.database.constants import UTC_NOW |
104 | 84 | from lp.services.database.lpstorm import IStore | 84 | from lp.services.database.lpstorm import IStore |
105 | 85 | from lp.services.database.sqlbase import quote | 85 | from lp.services.database.sqlbase import quote |
106 | 86 | from lp.services.propertycache import cachedproperty | ||
107 | 87 | from lp.services.database.stormexpr import ( | 86 | from lp.services.database.stormexpr import ( |
108 | 88 | ArrayAgg, | 87 | ArrayAgg, |
109 | 89 | ArrayContains, | 88 | ArrayContains, |
110 | 90 | ArrayIntersects, | 89 | ArrayIntersects, |
111 | 91 | ) | 90 | ) |
112 | 91 | from lp.services.propertycache import cachedproperty | ||
113 | 92 | 92 | ||
114 | 93 | 93 | ||
115 | 94 | class StructuralSubscription(Storm): | 94 | class StructuralSubscription(Storm): |
116 | 95 | 95 | ||
117 | === modified file 'lib/lp/bugs/model/tests/test_bug.py' | |||
118 | --- lib/lp/bugs/model/tests/test_bug.py 2012-06-04 09:41:48 +0000 | |||
119 | +++ lib/lp/bugs/model/tests/test_bug.py 2012-06-14 05:34:29 +0000 | |||
120 | @@ -30,12 +30,12 @@ | |||
121 | 30 | BugSubscriptionInfo, | 30 | BugSubscriptionInfo, |
122 | 31 | ) | 31 | ) |
123 | 32 | from lp.bugs.model.bugnotification import BugNotificationRecipient | 32 | from lp.bugs.model.bugnotification import BugNotificationRecipient |
124 | 33 | from lp.registry.enums import InformationType | ||
125 | 33 | from lp.registry.interfaces.accesspolicy import ( | 34 | from lp.registry.interfaces.accesspolicy import ( |
126 | 34 | IAccessArtifactSource, | 35 | IAccessArtifactSource, |
127 | 36 | IAccessPolicyArtifactSource, | ||
128 | 35 | IAccessPolicySource, | 37 | IAccessPolicySource, |
129 | 36 | IAccessPolicyArtifactSource, | ||
130 | 37 | ) | 38 | ) |
131 | 38 | from lp.registry.enums import InformationType | ||
132 | 39 | from lp.registry.interfaces.person import PersonVisibility | 39 | from lp.registry.interfaces.person import PersonVisibility |
133 | 40 | from lp.registry.tests.test_accesspolicy import get_policies_for_artifact | 40 | from lp.registry.tests.test_accesspolicy import get_policies_for_artifact |
134 | 41 | from lp.testing import ( | 41 | from lp.testing import ( |
135 | 42 | 42 | ||
136 | === modified file 'lib/lp/bugs/model/tests/test_bugtask.py' | |||
137 | --- lib/lp/bugs/model/tests/test_bugtask.py 2012-06-07 05:59:10 +0000 | |||
138 | +++ lib/lp/bugs/model/tests/test_bugtask.py 2012-06-14 05:34:29 +0000 | |||
139 | @@ -61,7 +61,8 @@ | |||
140 | 61 | ) | 61 | ) |
141 | 62 | from lp.bugs.model.tests.test_bug import LEGACY_ACCESS_TRIGGERS | 62 | from lp.bugs.model.tests.test_bug import LEGACY_ACCESS_TRIGGERS |
142 | 63 | from lp.bugs.scripts.bugtasktargetnamecaches import ( | 63 | from lp.bugs.scripts.bugtasktargetnamecaches import ( |
144 | 64 | BugTaskTargetNameCacheUpdater) | 64 | BugTaskTargetNameCacheUpdater, |
145 | 65 | ) | ||
146 | 65 | from lp.bugs.tests.bug import create_old_bug | 66 | from lp.bugs.tests.bug import create_old_bug |
147 | 66 | from lp.hardwaredb.interfaces.hwdb import ( | 67 | from lp.hardwaredb.interfaces.hwdb import ( |
148 | 67 | HWBus, | 68 | HWBus, |
149 | @@ -69,16 +70,15 @@ | |||
150 | 69 | ) | 70 | ) |
151 | 70 | from lp.registry.enums import InformationType | 71 | from lp.registry.enums import InformationType |
152 | 71 | from lp.registry.interfaces.accesspolicy import ( | 72 | from lp.registry.interfaces.accesspolicy import ( |
153 | 73 | IAccessArtifactGrantSource, | ||
154 | 74 | IAccessArtifactSource, | ||
155 | 72 | IAccessPolicyGrantSource, | 75 | IAccessPolicyGrantSource, |
156 | 73 | IAccessPolicySource, | 76 | IAccessPolicySource, |
157 | 74 | IAccessArtifactGrantSource, | ||
158 | 75 | IAccessArtifactSource, | ||
159 | 76 | ) | 77 | ) |
160 | 77 | from lp.registry.interfaces.distribution import IDistributionSet | 78 | from lp.registry.interfaces.distribution import IDistributionSet |
161 | 78 | from lp.registry.interfaces.distributionsourcepackage import ( | 79 | from lp.registry.interfaces.distributionsourcepackage import ( |
165 | 79 | IDistributionSourcePackage | 80 | IDistributionSourcePackage, |
166 | 80 | ) | 81 | ) |
164 | 81 | |||
167 | 82 | from lp.registry.interfaces.distroseries import IDistroSeriesSet | 82 | from lp.registry.interfaces.distroseries import IDistroSeriesSet |
168 | 83 | from lp.registry.interfaces.person import ( | 83 | from lp.registry.interfaces.person import ( |
169 | 84 | IPerson, | 84 | IPerson, |
170 | @@ -92,8 +92,8 @@ | |||
171 | 92 | from lp.registry.tests.test_accesspolicy import get_policies_for_artifact | 92 | from lp.registry.tests.test_accesspolicy import get_policies_for_artifact |
172 | 93 | from lp.services.database.sqlbase import ( | 93 | from lp.services.database.sqlbase import ( |
173 | 94 | convert_storm_clause_to_string, | 94 | convert_storm_clause_to_string, |
174 | 95 | flush_database_caches, | ||
175 | 95 | flush_database_updates, | 96 | flush_database_updates, |
176 | 96 | flush_database_caches, | ||
177 | 97 | ) | 97 | ) |
178 | 98 | from lp.services.features.testing import FeatureFixture | 98 | from lp.services.features.testing import FeatureFixture |
179 | 99 | from lp.services.job.tests import block_on_job | 99 | from lp.services.job.tests import block_on_job |
180 | 100 | 100 | ||
181 | === modified file 'lib/lp/bugs/scripts/tests/test_bugnotification.py' | |||
182 | --- lib/lp/bugs/scripts/tests/test_bugnotification.py 2012-05-08 17:04:43 +0000 | |||
183 | +++ lib/lp/bugs/scripts/tests/test_bugnotification.py 2012-06-14 05:34:29 +0000 | |||
184 | @@ -4,13 +4,13 @@ | |||
185 | 4 | 4 | ||
186 | 5 | __metaclass__ = type | 5 | __metaclass__ = type |
187 | 6 | 6 | ||
188 | 7 | import StringIO | ||
189 | 8 | from datetime import ( | 7 | from datetime import ( |
190 | 9 | datetime, | 8 | datetime, |
191 | 10 | timedelta, | 9 | timedelta, |
192 | 11 | ) | 10 | ) |
193 | 12 | import logging | 11 | import logging |
194 | 13 | import re | 12 | import re |
195 | 13 | import StringIO | ||
196 | 14 | import unittest | 14 | import unittest |
197 | 15 | 15 | ||
198 | 16 | import pytz | 16 | import pytz |
199 | 17 | 17 | ||
200 | === modified file 'lib/lp/bugs/tests/test_bugtaskset.py' | |||
201 | --- lib/lp/bugs/tests/test_bugtaskset.py 2012-05-14 20:19:39 +0000 | |||
202 | +++ lib/lp/bugs/tests/test_bugtaskset.py 2012-06-14 05:34:29 +0000 | |||
203 | @@ -6,12 +6,9 @@ | |||
204 | 6 | __metaclass__ = type | 6 | __metaclass__ = type |
205 | 7 | 7 | ||
206 | 8 | from zope.component import getUtility | 8 | from zope.component import getUtility |
213 | 9 | from lp.bugs.interfaces.bugtask import ( | 9 | |
214 | 10 | IBugTaskSet, | 10 | from lp.bugs.interfaces.bug import IBugSet |
215 | 11 | ) | 11 | from lp.bugs.interfaces.bugtask import IBugTaskSet |
210 | 12 | from lp.bugs.interfaces.bug import ( | ||
211 | 13 | IBugSet, | ||
212 | 14 | ) | ||
216 | 15 | from lp.registry.interfaces.person import IPersonSet | 12 | from lp.registry.interfaces.person import IPersonSet |
217 | 16 | from lp.registry.interfaces.product import IProductSet | 13 | from lp.registry.interfaces.product import IProductSet |
218 | 17 | from lp.services.webapp.interfaces import ILaunchBag | 14 | from lp.services.webapp.interfaces import ILaunchBag |
219 | 18 | 15 | ||
220 | === modified file 'lib/lp/code/mail/codehandler.py' | |||
221 | --- lib/lp/code/mail/codehandler.py 2012-04-27 18:50:49 +0000 | |||
222 | +++ lib/lp/code/mail/codehandler.py 2012-06-14 05:34:29 +0000 | |||
223 | @@ -14,15 +14,9 @@ | |||
224 | 14 | from zope.interface import implements | 14 | from zope.interface import implements |
225 | 15 | from zope.security.interfaces import Unauthorized | 15 | from zope.security.interfaces import Unauthorized |
226 | 16 | 16 | ||
236 | 17 | from lp.code.enums import ( | 17 | from lp.code.enums import CodeReviewVote |
237 | 18 | CodeReviewVote, | 18 | from lp.code.errors import UserNotBranchReviewer |
238 | 19 | ) | 19 | from lp.code.interfaces.branchmergeproposal import IBranchMergeProposalGetter |
230 | 20 | from lp.code.errors import ( | ||
231 | 21 | UserNotBranchReviewer, | ||
232 | 22 | ) | ||
233 | 23 | from lp.code.interfaces.branchmergeproposal import ( | ||
234 | 24 | IBranchMergeProposalGetter, | ||
235 | 25 | ) | ||
239 | 26 | from lp.services.config import config | 20 | from lp.services.config import config |
240 | 27 | from lp.services.mail.commands import ( | 21 | from lp.services.mail.commands import ( |
241 | 28 | EmailCommand, | 22 | EmailCommand, |
242 | 29 | 23 | ||
243 | === modified file 'lib/lp/code/mail/tests/test_codehandler.py' | |||
244 | --- lib/lp/code/mail/tests/test_codehandler.py 2012-04-27 19:03:32 +0000 | |||
245 | +++ lib/lp/code/mail/tests/test_codehandler.py 2012-06-14 05:34:29 +0000 | |||
246 | @@ -35,9 +35,7 @@ | |||
247 | 35 | from lp.code.tests.helpers import make_merge_proposal_without_reviewers | 35 | from lp.code.tests.helpers import make_merge_proposal_without_reviewers |
248 | 36 | from lp.services.config import config | 36 | from lp.services.config import config |
249 | 37 | from lp.services.mail.handlers import mail_handlers | 37 | from lp.services.mail.handlers import mail_handlers |
253 | 38 | from lp.services.mail.interfaces import ( | 38 | from lp.services.mail.interfaces import EmailProcessingError |
251 | 39 | EmailProcessingError, | ||
252 | 40 | ) | ||
254 | 41 | from lp.services.messages.model.message import MessageSet | 39 | from lp.services.messages.model.message import MessageSet |
255 | 42 | from lp.services.webapp.authorization import LaunchpadSecurityPolicy | 40 | from lp.services.webapp.authorization import LaunchpadSecurityPolicy |
256 | 43 | from lp.testing import ( | 41 | from lp.testing import ( |
257 | 44 | 42 | ||
258 | === modified file 'lib/lp/code/model/branchjob.py' | |||
259 | --- lib/lp/code/model/branchjob.py 2012-04-19 18:59:21 +0000 | |||
260 | +++ lib/lp/code/model/branchjob.py 2012-06-14 05:34:29 +0000 | |||
261 | @@ -94,13 +94,13 @@ | |||
262 | 94 | from lp.scripts.helpers import TransactionFreeOperation | 94 | from lp.scripts.helpers import TransactionFreeOperation |
263 | 95 | from lp.services.config import config | 95 | from lp.services.config import config |
264 | 96 | from lp.services.database.enumcol import EnumCol | 96 | from lp.services.database.enumcol import EnumCol |
265 | 97 | from lp.services.database.lpstorm import IStore | ||
266 | 98 | from lp.services.database.sqlbase import SQLBase | ||
267 | 99 | from lp.services.database.locking import ( | 97 | from lp.services.database.locking import ( |
268 | 100 | AdvisoryLockHeld, | 98 | AdvisoryLockHeld, |
269 | 101 | LockType, | 99 | LockType, |
270 | 102 | try_advisory_lock, | 100 | try_advisory_lock, |
271 | 103 | ) | 101 | ) |
272 | 102 | from lp.services.database.lpstorm import IStore | ||
273 | 103 | from lp.services.database.sqlbase import SQLBase | ||
274 | 104 | from lp.services.job.interfaces.job import JobStatus | 104 | from lp.services.job.interfaces.job import JobStatus |
275 | 105 | from lp.services.job.model.job import ( | 105 | from lp.services.job.model.job import ( |
276 | 106 | EnumeratedSubclass, | 106 | EnumeratedSubclass, |
277 | 107 | 107 | ||
278 | === modified file 'lib/lp/code/model/branchmergeproposaljob.py' | |||
279 | --- lib/lp/code/model/branchmergeproposaljob.py 2012-04-27 19:03:32 +0000 | |||
280 | +++ lib/lp/code/model/branchmergeproposaljob.py 2012-06-14 05:34:29 +0000 | |||
281 | @@ -85,9 +85,7 @@ | |||
282 | 85 | from lp.code.model.branchmergeproposal import BranchMergeProposal | 85 | from lp.code.model.branchmergeproposal import BranchMergeProposal |
283 | 86 | from lp.code.model.diff import PreviewDiff | 86 | from lp.code.model.diff import PreviewDiff |
284 | 87 | from lp.codehosting.bzrutils import server | 87 | from lp.codehosting.bzrutils import server |
288 | 88 | from lp.codehosting.vfs import ( | 88 | from lp.codehosting.vfs import get_ro_server |
286 | 89 | get_ro_server, | ||
287 | 90 | ) | ||
289 | 91 | from lp.registry.interfaces.person import IPersonSet | 89 | from lp.registry.interfaces.person import IPersonSet |
290 | 92 | from lp.services.config import config | 90 | from lp.services.config import config |
291 | 93 | from lp.services.database.enumcol import EnumCol | 91 | from lp.services.database.enumcol import EnumCol |
292 | 94 | 92 | ||
293 | === modified file 'lib/lp/code/model/tests/test_branchjob.py' | |||
294 | --- lib/lp/code/model/tests/test_branchjob.py 2012-04-26 17:18:47 +0000 | |||
295 | +++ lib/lp/code/model/tests/test_branchjob.py 2012-06-14 05:34:29 +0000 | |||
296 | @@ -61,8 +61,8 @@ | |||
297 | 61 | ) | 61 | ) |
298 | 62 | from lp.code.model.branchrevision import BranchRevision | 62 | from lp.code.model.branchrevision import BranchRevision |
299 | 63 | from lp.code.model.directbranchcommit import DirectBranchCommit | 63 | from lp.code.model.directbranchcommit import DirectBranchCommit |
300 | 64 | from lp.code.model.revision import RevisionSet | ||
301 | 64 | from lp.code.model.tests.test_branch import create_knit | 65 | from lp.code.model.tests.test_branch import create_knit |
302 | 65 | from lp.code.model.revision import RevisionSet | ||
303 | 66 | from lp.codehosting.vfs import branch_id_to_path | 66 | from lp.codehosting.vfs import branch_id_to_path |
304 | 67 | from lp.scripts.helpers import TransactionFreeOperation | 67 | from lp.scripts.helpers import TransactionFreeOperation |
305 | 68 | from lp.services.config import config | 68 | from lp.services.config import config |
306 | @@ -73,9 +73,7 @@ | |||
307 | 73 | from lp.services.job.interfaces.job import JobStatus | 73 | from lp.services.job.interfaces.job import JobStatus |
308 | 74 | from lp.services.job.model.job import Job | 74 | from lp.services.job.model.job import Job |
309 | 75 | from lp.services.job.runner import JobRunner | 75 | from lp.services.job.runner import JobRunner |
313 | 76 | from lp.services.job.tests import ( | 76 | from lp.services.job.tests import block_on_job |
311 | 77 | block_on_job, | ||
312 | 78 | ) | ||
314 | 79 | from lp.services.osutils import override_environ | 77 | from lp.services.osutils import override_environ |
315 | 80 | from lp.services.webapp import canonical_url | 78 | from lp.services.webapp import canonical_url |
316 | 81 | from lp.testing import ( | 79 | from lp.testing import ( |
317 | 82 | 80 | ||
318 | === modified file 'lib/lp/codehosting/bzrutils.py' | |||
319 | --- lib/lp/codehosting/bzrutils.py 2012-03-22 16:20:58 +0000 | |||
320 | +++ lib/lp/codehosting/bzrutils.py 2012-06-14 05:34:29 +0000 | |||
321 | @@ -34,9 +34,9 @@ | |||
322 | 34 | ) | 34 | ) |
323 | 35 | from bzrlib.errors import ( | 35 | from bzrlib.errors import ( |
324 | 36 | NotStacked, | 36 | NotStacked, |
325 | 37 | UnsupportedProtocol, | ||
326 | 38 | UnstackableBranchFormat, | 37 | UnstackableBranchFormat, |
327 | 39 | UnstackableRepositoryFormat, | 38 | UnstackableRepositoryFormat, |
328 | 39 | UnsupportedProtocol, | ||
329 | 40 | ) | 40 | ) |
330 | 41 | from bzrlib.remote import ( | 41 | from bzrlib.remote import ( |
331 | 42 | RemoteBranch, | 42 | RemoteBranch, |
332 | 43 | 43 | ||
333 | === modified file 'lib/lp/codehosting/scanner/tests/test_email.py' | |||
334 | --- lib/lp/codehosting/scanner/tests/test_email.py 2012-04-24 18:36:17 +0000 | |||
335 | +++ lib/lp/codehosting/scanner/tests/test_email.py 2012-06-14 05:34:29 +0000 | |||
336 | @@ -6,9 +6,9 @@ | |||
337 | 6 | __metaclass__ = type | 6 | __metaclass__ = type |
338 | 7 | 7 | ||
339 | 8 | import email | 8 | import email |
340 | 9 | import os | ||
341 | 9 | 10 | ||
342 | 10 | from bzrlib.uncommit import uncommit | 11 | from bzrlib.uncommit import uncommit |
343 | 11 | import os | ||
344 | 12 | from zope.component import getUtility | 12 | from zope.component import getUtility |
345 | 13 | from zope.event import notify | 13 | from zope.event import notify |
346 | 14 | 14 | ||
347 | @@ -22,18 +22,18 @@ | |||
348 | 22 | IRevisionsAddedJobSource, | 22 | IRevisionsAddedJobSource, |
349 | 23 | ) | 23 | ) |
350 | 24 | from lp.code.model.branchjob import RevisionMailJob | 24 | from lp.code.model.branchjob import RevisionMailJob |
351 | 25 | from lp.codehosting.scanner import events | ||
352 | 25 | from lp.codehosting.scanner.bzrsync import BzrSync | 26 | from lp.codehosting.scanner.bzrsync import BzrSync |
353 | 26 | from lp.codehosting.scanner import events | ||
354 | 27 | from lp.codehosting.scanner.tests.test_bzrsync import BzrSyncTestCase | 27 | from lp.codehosting.scanner.tests.test_bzrsync import BzrSyncTestCase |
355 | 28 | from lp.registry.interfaces.person import IPersonSet | 28 | from lp.registry.interfaces.person import IPersonSet |
356 | 29 | from lp.services.config import config | 29 | from lp.services.config import config |
357 | 30 | from lp.services.features.testing import FeatureFixture | 30 | from lp.services.features.testing import FeatureFixture |
358 | 31 | from lp.services.job.runner import JobRunner | 31 | from lp.services.job.runner import JobRunner |
359 | 32 | from lp.services.mail import stub | ||
360 | 33 | from lp.services.job.tests import ( | 32 | from lp.services.job.tests import ( |
361 | 34 | block_on_job, | 33 | block_on_job, |
362 | 35 | pop_remote_notifications, | 34 | pop_remote_notifications, |
363 | 36 | ) | 35 | ) |
364 | 36 | from lp.services.mail import stub | ||
365 | 37 | from lp.testing import TestCaseWithFactory | 37 | from lp.testing import TestCaseWithFactory |
366 | 38 | from lp.testing.dbuser import switch_dbuser | 38 | from lp.testing.dbuser import switch_dbuser |
367 | 39 | from lp.testing.layers import ( | 39 | from lp.testing.layers import ( |
368 | 40 | 40 | ||
369 | === modified file 'lib/lp/codehosting/tests/test_upgrade.py' | |||
370 | --- lib/lp/codehosting/tests/test_upgrade.py 2012-03-26 22:45:24 +0000 | |||
371 | +++ lib/lp/codehosting/tests/test_upgrade.py 2012-06-14 05:34:29 +0000 | |||
372 | @@ -1,3 +1,6 @@ | |||
373 | 1 | # Copyright 2012 Canonical Ltd. This software is licensed under the | ||
374 | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). | ||
375 | 3 | |||
376 | 1 | __metaclass__ = type | 4 | __metaclass__ = type |
377 | 2 | 5 | ||
378 | 3 | 6 | ||
379 | 4 | 7 | ||
380 | === modified file 'lib/lp/registry/browser/distribution.py' | |||
381 | --- lib/lp/registry/browser/distribution.py 2012-06-05 11:41:23 +0000 | |||
382 | +++ lib/lp/registry/browser/distribution.py 2012-06-14 05:34:29 +0000 | |||
383 | @@ -57,12 +57,12 @@ | |||
384 | 57 | QuestionTargetFacetMixin, | 57 | QuestionTargetFacetMixin, |
385 | 58 | QuestionTargetTraversalMixin, | 58 | QuestionTargetTraversalMixin, |
386 | 59 | ) | 59 | ) |
387 | 60 | from lp.app.browser.lazrjs import InlinePersonEditPickerWidget | ||
388 | 61 | from lp.app.browser.launchpadform import ( | 60 | from lp.app.browser.launchpadform import ( |
389 | 62 | action, | 61 | action, |
390 | 63 | custom_widget, | 62 | custom_widget, |
391 | 64 | LaunchpadFormView, | 63 | LaunchpadFormView, |
392 | 65 | ) | 64 | ) |
393 | 65 | from lp.app.browser.lazrjs import InlinePersonEditPickerWidget | ||
394 | 66 | from lp.app.browser.tales import format_link | 66 | from lp.app.browser.tales import format_link |
395 | 67 | from lp.app.errors import NotFoundError | 67 | from lp.app.errors import NotFoundError |
396 | 68 | from lp.app.widgets.image import ImageChangeWidget | 68 | from lp.app.widgets.image import ImageChangeWidget |
397 | 69 | 69 | ||
398 | === modified file 'lib/lp/registry/browser/person.py' | |||
399 | --- lib/lp/registry/browser/person.py 2012-06-12 16:25:42 +0000 | |||
400 | +++ lib/lp/registry/browser/person.py 2012-06-14 05:34:29 +0000 | |||
401 | @@ -147,9 +147,7 @@ | |||
402 | 147 | LaunchpadRadioWidget, | 147 | LaunchpadRadioWidget, |
403 | 148 | LaunchpadRadioWidgetWithDescription, | 148 | LaunchpadRadioWidgetWithDescription, |
404 | 149 | ) | 149 | ) |
408 | 150 | from lp.blueprints.enums import ( | 150 | from lp.blueprints.enums import SpecificationWorkItemStatus |
406 | 151 | SpecificationWorkItemStatus, | ||
407 | 152 | ) | ||
409 | 153 | from lp.bugs.interfaces.bugtask import ( | 151 | from lp.bugs.interfaces.bugtask import ( |
410 | 154 | BugTaskSearchParams, | 152 | BugTaskSearchParams, |
411 | 155 | BugTaskStatus, | 153 | BugTaskStatus, |
412 | 156 | 154 | ||
413 | === modified file 'lib/lp/registry/browser/tests/test_breadcrumbs.py' | |||
414 | --- lib/lp/registry/browser/tests/test_breadcrumbs.py 2012-04-27 19:52:37 +0000 | |||
415 | +++ lib/lp/registry/browser/tests/test_breadcrumbs.py 2012-06-14 05:34:29 +0000 | |||
416 | @@ -6,10 +6,10 @@ | |||
417 | 6 | from zope.component import getUtility | 6 | from zope.component import getUtility |
418 | 7 | 7 | ||
419 | 8 | from lp.app.interfaces.launchpad import ILaunchpadCelebrities | 8 | from lp.app.interfaces.launchpad import ILaunchpadCelebrities |
420 | 9 | from lp.registry.browser.tests.test_pillar_sharing import SharingBaseTestCase | ||
421 | 9 | from lp.services.webapp.publisher import canonical_url | 10 | from lp.services.webapp.publisher import canonical_url |
422 | 10 | from lp.testing import login_person | 11 | from lp.testing import login_person |
423 | 11 | from lp.testing.breadcrumbs import BaseBreadcrumbTestCase | 12 | from lp.testing.breadcrumbs import BaseBreadcrumbTestCase |
424 | 12 | from lp.registry.browser.tests.test_pillar_sharing import SharingBaseTestCase | ||
425 | 13 | 13 | ||
426 | 14 | 14 | ||
427 | 15 | class TestPillarSharingBreadcrumb(BaseBreadcrumbTestCase, SharingBaseTestCase): | 15 | class TestPillarSharingBreadcrumb(BaseBreadcrumbTestCase, SharingBaseTestCase): |
428 | 16 | 16 | ||
429 | === modified file 'lib/lp/registry/browser/tests/test_distribution.py' | |||
430 | --- lib/lp/registry/browser/tests/test_distribution.py 2012-06-04 16:13:51 +0000 | |||
431 | +++ lib/lp/registry/browser/tests/test_distribution.py 2012-06-14 05:34:29 +0000 | |||
432 | @@ -1,3 +1,4 @@ | |||
433 | 1 | # Copyright 2011-2012 Canonical Ltd. This software is licensed under the | ||
434 | 1 | # GNU Affero General Public License version 3 (see the file LICENSE). | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). |
435 | 2 | 3 | ||
436 | 3 | """Tests for Distribution page.""" | 4 | """Tests for Distribution page.""" |
437 | 4 | 5 | ||
438 | === modified file 'lib/lp/registry/browser/tests/test_person.py' | |||
439 | --- lib/lp/registry/browser/tests/test_person.py 2012-05-01 06:49:04 +0000 | |||
440 | +++ lib/lp/registry/browser/tests/test_person.py 2012-06-14 05:34:29 +0000 | |||
441 | @@ -3,8 +3,8 @@ | |||
442 | 3 | 3 | ||
443 | 4 | __metaclass__ = type | 4 | __metaclass__ = type |
444 | 5 | 5 | ||
445 | 6 | import doctest | ||
446 | 6 | import email | 7 | import email |
447 | 7 | import doctest | ||
448 | 8 | from textwrap import dedent | 8 | from textwrap import dedent |
449 | 9 | 9 | ||
450 | 10 | import soupmatchers | 10 | import soupmatchers |
451 | 11 | 11 | ||
452 | === modified file 'lib/lp/registry/browser/tests/test_sshkey.py' | |||
453 | --- lib/lp/registry/browser/tests/test_sshkey.py 2012-04-11 14:40:02 +0000 | |||
454 | +++ lib/lp/registry/browser/tests/test_sshkey.py 2012-06-14 05:34:29 +0000 | |||
455 | @@ -10,8 +10,8 @@ | |||
456 | 10 | from lp.registry.interfaces.ssh import ISSHKeySet | 10 | from lp.registry.interfaces.ssh import ISSHKeySet |
457 | 11 | from lp.services.webapp import canonical_url | 11 | from lp.services.webapp import canonical_url |
458 | 12 | from lp.testing import ( | 12 | from lp.testing import ( |
459 | 13 | person_logged_in, | ||
460 | 13 | TestCaseWithFactory, | 14 | TestCaseWithFactory, |
461 | 14 | person_logged_in, | ||
462 | 15 | ) | 15 | ) |
463 | 16 | from lp.testing.layers import DatabaseFunctionalLayer | 16 | from lp.testing.layers import DatabaseFunctionalLayer |
464 | 17 | from lp.testing.pages import ( | 17 | from lp.testing.pages import ( |
465 | 18 | 18 | ||
466 | === modified file 'lib/lp/registry/model/accesspolicy.py' | |||
467 | --- lib/lp/registry/model/accesspolicy.py 2012-06-05 02:03:44 +0000 | |||
468 | +++ lib/lp/registry/model/accesspolicy.py 2012-06-14 05:34:29 +0000 | |||
469 | @@ -41,9 +41,9 @@ | |||
470 | 41 | ) | 41 | ) |
471 | 42 | from lp.registry.interfaces.accesspolicy import ( | 42 | from lp.registry.interfaces.accesspolicy import ( |
472 | 43 | IAccessArtifact, | 43 | IAccessArtifact, |
473 | 44 | IAccessArtifactSource, | ||
474 | 45 | IAccessArtifactGrant, | 44 | IAccessArtifactGrant, |
475 | 46 | IAccessArtifactGrantSource, | 45 | IAccessArtifactGrantSource, |
476 | 46 | IAccessArtifactSource, | ||
477 | 47 | IAccessPolicy, | 47 | IAccessPolicy, |
478 | 48 | IAccessPolicyArtifact, | 48 | IAccessPolicyArtifact, |
479 | 49 | IAccessPolicyArtifactSource, | 49 | IAccessPolicyArtifactSource, |
480 | 50 | 50 | ||
481 | === modified file 'lib/lp/registry/model/productjob.py' | |||
482 | --- lib/lp/registry/model/productjob.py 2012-06-08 17:11:46 +0000 | |||
483 | +++ lib/lp/registry/model/productjob.py 2012-06-14 05:34:29 +0000 | |||
484 | @@ -16,8 +16,9 @@ | |||
485 | 16 | datetime, | 16 | datetime, |
486 | 17 | timedelta, | 17 | timedelta, |
487 | 18 | ) | 18 | ) |
488 | 19 | |||
489 | 20 | from lazr.delegates import delegates | ||
490 | 19 | from pytz import utc | 21 | from pytz import utc |
491 | 20 | from lazr.delegates import delegates | ||
492 | 21 | import simplejson | 22 | import simplejson |
493 | 22 | from storm.expr import ( | 23 | from storm.expr import ( |
494 | 23 | And, | 24 | And, |
495 | @@ -44,12 +45,12 @@ | |||
496 | 44 | License, | 45 | License, |
497 | 45 | ) | 46 | ) |
498 | 46 | from lp.registry.interfaces.productjob import ( | 47 | from lp.registry.interfaces.productjob import ( |
499 | 48 | ICommercialExpiredJob, | ||
500 | 49 | ICommercialExpiredJobSource, | ||
501 | 47 | IProductJob, | 50 | IProductJob, |
502 | 48 | IProductJobSource, | 51 | IProductJobSource, |
503 | 49 | IProductNotificationJob, | 52 | IProductNotificationJob, |
504 | 50 | IProductNotificationJobSource, | 53 | IProductNotificationJobSource, |
505 | 51 | ICommercialExpiredJob, | ||
506 | 52 | ICommercialExpiredJobSource, | ||
507 | 53 | ISevenDayCommercialExpirationJob, | 54 | ISevenDayCommercialExpirationJob, |
508 | 54 | ISevenDayCommercialExpirationJobSource, | 55 | ISevenDayCommercialExpirationJobSource, |
509 | 55 | IThirtyDayCommercialExpirationJob, | 56 | IThirtyDayCommercialExpirationJob, |
510 | @@ -65,19 +66,17 @@ | |||
511 | 65 | IStore, | 66 | IStore, |
512 | 66 | ) | 67 | ) |
513 | 67 | from lp.services.database.stormbase import StormBase | 68 | from lp.services.database.stormbase import StormBase |
514 | 68 | from lp.services.propertycache import cachedproperty | ||
515 | 69 | from lp.services.job.model.job import Job | 69 | from lp.services.job.model.job import Job |
516 | 70 | from lp.services.job.runner import BaseRunnableJob | 70 | from lp.services.job.runner import BaseRunnableJob |
520 | 71 | from lp.services.mail.helpers import ( | 71 | from lp.services.mail.helpers import get_email_template |
521 | 72 | get_email_template, | 72 | from lp.services.mail.mailwrapper import MailWrapper |
519 | 73 | ) | ||
522 | 74 | from lp.services.mail.notificationrecipientset import NotificationRecipientSet | 73 | from lp.services.mail.notificationrecipientset import NotificationRecipientSet |
523 | 75 | from lp.services.mail.mailwrapper import MailWrapper | ||
524 | 76 | from lp.services.mail.sendmail import ( | 74 | from lp.services.mail.sendmail import ( |
525 | 77 | format_address, | 75 | format_address, |
526 | 78 | format_address_for_person, | 76 | format_address_for_person, |
527 | 79 | simple_sendmail, | 77 | simple_sendmail, |
528 | 80 | ) | 78 | ) |
529 | 79 | from lp.services.propertycache import cachedproperty | ||
530 | 81 | from lp.services.webapp.publisher import canonical_url | 80 | from lp.services.webapp.publisher import canonical_url |
531 | 82 | 81 | ||
532 | 83 | 82 | ||
533 | 84 | 83 | ||
534 | === modified file 'lib/lp/registry/model/sharingjob.py' | |||
535 | --- lib/lp/registry/model/sharingjob.py 2012-05-24 01:43:42 +0000 | |||
536 | +++ lib/lp/registry/model/sharingjob.py 2012-06-14 05:34:29 +0000 | |||
537 | @@ -78,9 +78,7 @@ | |||
538 | 78 | EnumeratedSubclass, | 78 | EnumeratedSubclass, |
539 | 79 | Job, | 79 | Job, |
540 | 80 | ) | 80 | ) |
544 | 81 | from lp.services.job.runner import ( | 81 | from lp.services.job.runner import BaseRunnableJob |
542 | 82 | BaseRunnableJob, | ||
543 | 83 | ) | ||
545 | 84 | from lp.services.mail.sendmail import format_address_for_person | 82 | from lp.services.mail.sendmail import format_address_for_person |
546 | 85 | from lp.services.webapp import errorlog | 83 | from lp.services.webapp import errorlog |
547 | 86 | 84 | ||
548 | 87 | 85 | ||
549 | === modified file 'lib/lp/registry/subscribers.py' | |||
550 | --- lib/lp/registry/subscribers.py 2012-05-25 21:18:48 +0000 | |||
551 | +++ lib/lp/registry/subscribers.py 2012-06-14 05:34:29 +0000 | |||
552 | @@ -14,9 +14,7 @@ | |||
553 | 14 | import pytz | 14 | import pytz |
554 | 15 | from zope.security.proxy import removeSecurityProxy | 15 | from zope.security.proxy import removeSecurityProxy |
555 | 16 | 16 | ||
559 | 17 | from lp.registry.interfaces.person import ( | 17 | from lp.registry.interfaces.person import IPerson |
557 | 18 | IPerson, | ||
558 | 19 | ) | ||
560 | 20 | from lp.registry.interfaces.product import License | 18 | from lp.registry.interfaces.product import License |
561 | 21 | from lp.services.config import config | 19 | from lp.services.config import config |
562 | 22 | from lp.services.mail.helpers import get_email_template | 20 | from lp.services.mail.helpers import get_email_template |
563 | 23 | 21 | ||
564 | === modified file 'lib/lp/registry/tests/test_distribution.py' | |||
565 | --- lib/lp/registry/tests/test_distribution.py 2012-06-06 16:05:23 +0000 | |||
566 | +++ lib/lp/registry/tests/test_distribution.py 2012-06-14 05:34:29 +0000 | |||
567 | @@ -43,9 +43,7 @@ | |||
568 | 43 | OPEN_TEAM_POLICY, | 43 | OPEN_TEAM_POLICY, |
569 | 44 | ) | 44 | ) |
570 | 45 | from lp.registry.interfaces.series import SeriesStatus | 45 | from lp.registry.interfaces.series import SeriesStatus |
574 | 46 | from lp.registry.tests.test_distroseries import ( | 46 | from lp.registry.tests.test_distroseries import CurrentSourceReleasesMixin |
572 | 47 | CurrentSourceReleasesMixin, | ||
573 | 48 | ) | ||
575 | 49 | from lp.services.database.constants import UTC_NOW | 47 | from lp.services.database.constants import UTC_NOW |
576 | 50 | from lp.services.propertycache import get_property_cache | 48 | from lp.services.propertycache import get_property_cache |
577 | 51 | from lp.services.webapp import canonical_url | 49 | from lp.services.webapp import canonical_url |
578 | 52 | 50 | ||
579 | === modified file 'lib/lp/registry/tests/test_productjob.py' | |||
580 | --- lib/lp/registry/tests/test_productjob.py 2012-06-08 17:29:07 +0000 | |||
581 | +++ lib/lp/registry/tests/test_productjob.py 2012-06-14 05:34:29 +0000 | |||
582 | @@ -9,8 +9,9 @@ | |||
583 | 9 | datetime, | 9 | datetime, |
584 | 10 | timedelta, | 10 | timedelta, |
585 | 11 | ) | 11 | ) |
586 | 12 | |||
587 | 13 | import pytz | ||
588 | 12 | import transaction | 14 | import transaction |
589 | 13 | import pytz | ||
590 | 14 | from zope.component import getUtility | 15 | from zope.component import getUtility |
591 | 15 | from zope.interface import ( | 16 | from zope.interface import ( |
592 | 16 | classProvides, | 17 | classProvides, |
593 | @@ -46,6 +47,10 @@ | |||
594 | 46 | SevenDayCommercialExpirationJob, | 47 | SevenDayCommercialExpirationJob, |
595 | 47 | ThirtyDayCommercialExpirationJob, | 48 | ThirtyDayCommercialExpirationJob, |
596 | 48 | ) | 49 | ) |
597 | 50 | from lp.services.log.logger import BufferLogger | ||
598 | 51 | from lp.services.propertycache import clear_property_cache | ||
599 | 52 | from lp.services.scripts.tests import run_script | ||
600 | 53 | from lp.services.webapp.publisher import canonical_url | ||
601 | 49 | from lp.testing import ( | 54 | from lp.testing import ( |
602 | 50 | person_logged_in, | 55 | person_logged_in, |
603 | 51 | TestCaseWithFactory, | 56 | TestCaseWithFactory, |
604 | @@ -56,10 +61,6 @@ | |||
605 | 56 | ZopelessAppServerLayer, | 61 | ZopelessAppServerLayer, |
606 | 57 | ) | 62 | ) |
607 | 58 | from lp.testing.mail_helpers import pop_notifications | 63 | from lp.testing.mail_helpers import pop_notifications |
608 | 59 | from lp.services.log.logger import BufferLogger | ||
609 | 60 | from lp.services.propertycache import clear_property_cache | ||
610 | 61 | from lp.services.scripts.tests import run_script | ||
611 | 62 | from lp.services.webapp.publisher import canonical_url | ||
612 | 63 | 64 | ||
613 | 64 | 65 | ||
614 | 65 | class CommercialHelpers: | 66 | class CommercialHelpers: |
615 | 66 | 67 | ||
616 | === modified file 'lib/lp/registry/tests/test_sharingjob.py' | |||
617 | --- lib/lp/registry/tests/test_sharingjob.py 2012-06-05 02:03:44 +0000 | |||
618 | +++ lib/lp/registry/tests/test_sharingjob.py 2012-06-14 05:34:29 +0000 | |||
619 | @@ -5,10 +5,9 @@ | |||
620 | 5 | 5 | ||
621 | 6 | __metaclass__ = type | 6 | __metaclass__ = type |
622 | 7 | 7 | ||
623 | 8 | import transaction | ||
624 | 9 | |||
625 | 10 | from testtools.content import Content | 8 | from testtools.content import Content |
626 | 11 | from testtools.content_type import UTF8_TEXT | 9 | from testtools.content_type import UTF8_TEXT |
627 | 10 | import transaction | ||
628 | 12 | from zope.component import getUtility | 11 | from zope.component import getUtility |
629 | 13 | from zope.security.proxy import removeSecurityProxy | 12 | from zope.security.proxy import removeSecurityProxy |
630 | 14 | 13 | ||
631 | @@ -18,8 +17,8 @@ | |||
632 | 18 | ) | 17 | ) |
633 | 19 | from lp.registry.enums import InformationType | 18 | from lp.registry.enums import InformationType |
634 | 20 | from lp.registry.interfaces.accesspolicy import ( | 19 | from lp.registry.interfaces.accesspolicy import ( |
635 | 20 | IAccessArtifactGrantSource, | ||
636 | 21 | IAccessArtifactSource, | 21 | IAccessArtifactSource, |
637 | 22 | IAccessArtifactGrantSource, | ||
638 | 23 | IAccessPolicySource, | 22 | IAccessPolicySource, |
639 | 24 | ) | 23 | ) |
640 | 25 | from lp.registry.interfaces.person import TeamSubscriptionPolicy | 24 | from lp.registry.interfaces.person import TeamSubscriptionPolicy |
641 | 26 | 25 | ||
642 | === modified file 'lib/lp/registry/tests/test_teammembership.py' | |||
643 | --- lib/lp/registry/tests/test_teammembership.py 2012-06-07 05:59:10 +0000 | |||
644 | +++ lib/lp/registry/tests/test_teammembership.py 2012-06-14 05:34:29 +0000 | |||
645 | @@ -25,8 +25,8 @@ | |||
646 | 25 | from lp.app.interfaces.launchpad import ILaunchpadCelebrities | 25 | from lp.app.interfaces.launchpad import ILaunchpadCelebrities |
647 | 26 | from lp.registry.enums import InformationType | 26 | from lp.registry.enums import InformationType |
648 | 27 | from lp.registry.interfaces.accesspolicy import ( | 27 | from lp.registry.interfaces.accesspolicy import ( |
649 | 28 | IAccessArtifactGrantSource, | ||
650 | 28 | IAccessArtifactSource, | 29 | IAccessArtifactSource, |
651 | 29 | IAccessArtifactGrantSource, | ||
652 | 30 | ) | 30 | ) |
653 | 31 | from lp.registry.interfaces.person import ( | 31 | from lp.registry.interfaces.person import ( |
654 | 32 | IPersonSet, | 32 | IPersonSet, |
655 | @@ -59,8 +59,8 @@ | |||
656 | 59 | sqlvalues, | 59 | sqlvalues, |
657 | 60 | ) | 60 | ) |
658 | 61 | from lp.services.features.testing import FeatureFixture | 61 | from lp.services.features.testing import FeatureFixture |
659 | 62 | from lp.services.job.tests import block_on_job | ||
660 | 62 | from lp.services.log.logger import BufferLogger | 63 | from lp.services.log.logger import BufferLogger |
661 | 63 | from lp.services.job.tests import block_on_job | ||
662 | 64 | from lp.testing import ( | 64 | from lp.testing import ( |
663 | 65 | login, | 65 | login, |
664 | 66 | login_celebrity, | 66 | login_celebrity, |
665 | 67 | 67 | ||
666 | === modified file 'lib/lp/scripts/utilities/js/combo.py' | |||
667 | --- lib/lp/scripts/utilities/js/combo.py 2011-12-19 23:38:16 +0000 | |||
668 | +++ lib/lp/scripts/utilities/js/combo.py 2012-06-14 05:34:29 +0000 | |||
669 | @@ -1,3 +1,8 @@ | |||
670 | 1 | # Copyright 2011-2012 Canonical Ltd. This software is licensed under the | ||
671 | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). | ||
672 | 3 | |||
673 | 4 | __metaclass__ = type | ||
674 | 5 | |||
675 | 1 | import cgi | 6 | import cgi |
676 | 2 | import os | 7 | import os |
677 | 3 | import urlparse | 8 | import urlparse |
678 | 4 | 9 | ||
679 | === modified file 'lib/lp/scripts/utilities/js/jsbuild.py' | |||
680 | --- lib/lp/scripts/utilities/js/jsbuild.py 2011-12-19 23:38:16 +0000 | |||
681 | +++ lib/lp/scripts/utilities/js/jsbuild.py 2012-06-14 05:34:29 +0000 | |||
682 | @@ -1,3 +1,6 @@ | |||
683 | 1 | # Copyright 2011-2012 Canonical Ltd. This software is licensed under the | ||
684 | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). | ||
685 | 3 | |||
686 | 1 | """build.py - Minifies and creates the JS build directory.""" | 4 | """build.py - Minifies and creates the JS build directory.""" |
687 | 2 | 5 | ||
688 | 3 | __metaclass__ = type | 6 | __metaclass__ = type |
689 | 4 | 7 | ||
690 | === modified file 'lib/lp/scripts/utilities/js/tests/test_combo.py' | |||
691 | --- lib/lp/scripts/utilities/js/tests/test_combo.py 2011-12-19 23:38:16 +0000 | |||
692 | +++ lib/lp/scripts/utilities/js/tests/test_combo.py 2012-06-14 05:34:29 +0000 | |||
693 | @@ -1,3 +1,8 @@ | |||
694 | 1 | # Copyright 2011-2012 Canonical Ltd. This software is licensed under the | ||
695 | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). | ||
696 | 3 | |||
697 | 4 | __metaclass__ = type | ||
698 | 5 | |||
699 | 1 | import os | 6 | import os |
700 | 2 | import shutil | 7 | import shutil |
701 | 3 | import tempfile | 8 | import tempfile |
702 | 4 | 9 | ||
703 | === modified file 'lib/lp/services/authserver/tests/test_authserver.py' | |||
704 | --- lib/lp/services/authserver/tests/test_authserver.py 2012-04-11 14:40:02 +0000 | |||
705 | +++ lib/lp/services/authserver/tests/test_authserver.py 2012-06-14 05:34:29 +0000 | |||
706 | @@ -10,8 +10,8 @@ | |||
707 | 10 | 10 | ||
708 | 11 | from lp.services.authserver.xmlrpc import AuthServerAPIView | 11 | from lp.services.authserver.xmlrpc import AuthServerAPIView |
709 | 12 | from lp.testing import ( | 12 | from lp.testing import ( |
710 | 13 | person_logged_in, | ||
711 | 13 | TestCaseWithFactory, | 14 | TestCaseWithFactory, |
712 | 14 | person_logged_in, | ||
713 | 15 | ) | 15 | ) |
714 | 16 | from lp.testing.layers import DatabaseFunctionalLayer | 16 | from lp.testing.layers import DatabaseFunctionalLayer |
715 | 17 | from lp.xmlrpc import faults | 17 | from lp.xmlrpc import faults |
716 | 18 | 18 | ||
717 | === modified file 'lib/lp/services/comments/browser/tests/test_comment.py' | |||
718 | --- lib/lp/services/comments/browser/tests/test_comment.py 2012-02-28 04:24:19 +0000 | |||
719 | +++ lib/lp/services/comments/browser/tests/test_comment.py 2012-06-14 05:34:29 +0000 | |||
720 | @@ -1,3 +1,8 @@ | |||
721 | 1 | # Copyright 2012 Canonical Ltd. This software is licensed under the | ||
722 | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). | ||
723 | 3 | |||
724 | 4 | __metaclass__ = type | ||
725 | 5 | |||
726 | 1 | from lp.services.comments.browser.comment import CommentBodyDownloadView | 6 | from lp.services.comments.browser.comment import CommentBodyDownloadView |
727 | 2 | from lp.services.webapp.servers import LaunchpadTestRequest | 7 | from lp.services.webapp.servers import LaunchpadTestRequest |
728 | 3 | from lp.testing import ( | 8 | from lp.testing import ( |
729 | 4 | 9 | ||
730 | === modified file 'lib/lp/services/database/locking.py' | |||
731 | --- lib/lp/services/database/locking.py 2012-04-20 19:38:28 +0000 | |||
732 | +++ lib/lp/services/database/locking.py 2012-06-14 05:34:29 +0000 | |||
733 | @@ -1,8 +1,13 @@ | |||
735 | 1 | # Copyright 2011 Canonical Ltd. This software is licensed under the | 1 | # Copyright 2011-2012 Canonical Ltd. This software is licensed under the |
736 | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). |
737 | 3 | 3 | ||
738 | 4 | __metaclass__ = type | 4 | __metaclass__ = type |
739 | 5 | 5 | ||
740 | 6 | __all__ = [ | ||
741 | 7 | 'AdvisoryLockHeld', | ||
742 | 8 | 'LockType', | ||
743 | 9 | 'try_advisory_lock', | ||
744 | 10 | ] | ||
745 | 6 | 11 | ||
746 | 7 | from contextlib import contextmanager | 12 | from contextlib import contextmanager |
747 | 8 | 13 | ||
748 | @@ -17,12 +22,6 @@ | |||
749 | 17 | TryAdvisoryLock, | 22 | TryAdvisoryLock, |
750 | 18 | ) | 23 | ) |
751 | 19 | 24 | ||
752 | 20 | __all__ = [ | ||
753 | 21 | 'AdvisoryLockHeld', | ||
754 | 22 | 'LockType', | ||
755 | 23 | 'try_advisory_lock', | ||
756 | 24 | ] | ||
757 | 25 | |||
758 | 26 | 25 | ||
759 | 27 | class AdvisoryLockHeld(Exception): | 26 | class AdvisoryLockHeld(Exception): |
760 | 28 | """An attempt to acquire an advisory lock failed; it is already held.""" | 27 | """An attempt to acquire an advisory lock failed; it is already held.""" |
761 | 29 | 28 | ||
762 | === modified file 'lib/lp/services/database/stormexpr.py' | |||
763 | --- lib/lp/services/database/stormexpr.py 2012-05-17 08:36:19 +0000 | |||
764 | +++ lib/lp/services/database/stormexpr.py 2012-06-14 05:34:29 +0000 | |||
765 | @@ -20,8 +20,8 @@ | |||
766 | 20 | from storm.expr import ( | 20 | from storm.expr import ( |
767 | 21 | BinaryOper, | 21 | BinaryOper, |
768 | 22 | ComparableExpr, | 22 | ComparableExpr, |
769 | 23 | compile, | ||
770 | 23 | CompoundOper, | 24 | CompoundOper, |
771 | 24 | compile, | ||
772 | 25 | EXPR, | 25 | EXPR, |
773 | 26 | Expr, | 26 | Expr, |
774 | 27 | In, | 27 | In, |
775 | 28 | 28 | ||
776 | === modified file 'lib/lp/services/identity/model/emailaddress.py' | |||
777 | --- lib/lp/services/identity/model/emailaddress.py 2012-04-16 15:38:07 +0000 | |||
778 | +++ lib/lp/services/identity/model/emailaddress.py 2012-06-14 05:34:29 +0000 | |||
779 | @@ -19,7 +19,6 @@ | |||
780 | 19 | ForeignKey, | 19 | ForeignKey, |
781 | 20 | StringCol, | 20 | StringCol, |
782 | 21 | ) | 21 | ) |
783 | 22 | |||
784 | 23 | from zope.interface import implements | 22 | from zope.interface import implements |
785 | 24 | 23 | ||
786 | 25 | from lp.app.validators.email import valid_email | 24 | from lp.app.validators.email import valid_email |
787 | 26 | 25 | ||
788 | === modified file 'lib/lp/services/job/celeryconfig.py' | |||
789 | --- lib/lp/services/job/celeryconfig.py 2012-05-14 20:33:32 +0000 | |||
790 | +++ lib/lp/services/job/celeryconfig.py 2012-06-14 05:34:29 +0000 | |||
791 | @@ -1,10 +1,11 @@ | |||
792 | 1 | # Copyright 2012 Canonical Ltd. This software is licensed under the | 1 | # Copyright 2012 Canonical Ltd. This software is licensed under the |
793 | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). |
794 | 3 | 3 | ||
795 | 4 | import argparse | ||
796 | 5 | from datetime import timedelta | 4 | from datetime import timedelta |
797 | 6 | import sys | 5 | import sys |
798 | 7 | 6 | ||
799 | 7 | import argparse | ||
800 | 8 | |||
801 | 8 | from lp.services.config import config | 9 | from lp.services.config import config |
802 | 9 | 10 | ||
803 | 10 | 11 | ||
804 | 11 | 12 | ||
805 | === modified file 'lib/lp/services/job/celeryjob.py' | |||
806 | --- lib/lp/services/job/celeryjob.py 2012-05-24 20:04:02 +0000 | |||
807 | +++ lib/lp/services/job/celeryjob.py 2012-06-14 05:34:29 +0000 | |||
808 | @@ -17,6 +17,7 @@ | |||
809 | 17 | from logging import info | 17 | from logging import info |
810 | 18 | import os | 18 | import os |
811 | 19 | 19 | ||
812 | 20 | |||
813 | 20 | os.environ.setdefault('CELERY_CONFIG_MODULE', 'lp.services.job.celeryconfig') | 21 | os.environ.setdefault('CELERY_CONFIG_MODULE', 'lp.services.job.celeryconfig') |
814 | 21 | from celery.task import task | 22 | from celery.task import task |
815 | 22 | from lazr.jobrunner.celerytask import RunJob | 23 | from lazr.jobrunner.celerytask import RunJob |
816 | 23 | 24 | ||
817 | === modified file 'lib/lp/services/job/model/job.py' | |||
818 | --- lib/lp/services/job/model/job.py 2012-05-20 23:49:27 +0000 | |||
819 | +++ lib/lp/services/job/model/job.py 2012-06-14 05:34:29 +0000 | |||
820 | @@ -18,7 +18,6 @@ | |||
821 | 18 | import time | 18 | import time |
822 | 19 | 19 | ||
823 | 20 | from lazr.jobrunner.jobrunner import LeaseHeld | 20 | from lazr.jobrunner.jobrunner import LeaseHeld |
824 | 21 | |||
825 | 22 | import pytz | 21 | import pytz |
826 | 23 | from sqlobject import ( | 22 | from sqlobject import ( |
827 | 24 | IntCol, | 23 | IntCol, |
828 | 25 | 24 | ||
829 | === modified file 'lib/lp/services/job/runner.py' | |||
830 | --- lib/lp/services/job/runner.py 2012-05-18 00:04:30 +0000 | |||
831 | +++ lib/lp/services/job/runner.py 2012-06-14 05:34:29 +0000 | |||
832 | @@ -19,11 +19,11 @@ | |||
833 | 19 | 19 | ||
834 | 20 | from calendar import timegm | 20 | from calendar import timegm |
835 | 21 | from collections import defaultdict | 21 | from collections import defaultdict |
836 | 22 | import contextlib | ||
837 | 22 | from datetime import ( | 23 | from datetime import ( |
838 | 23 | datetime, | 24 | datetime, |
839 | 24 | timedelta, | 25 | timedelta, |
840 | 25 | ) | 26 | ) |
841 | 26 | import contextlib | ||
842 | 27 | import logging | 27 | import logging |
843 | 28 | import os | 28 | import os |
844 | 29 | from resource import ( | 29 | from resource import ( |
845 | 30 | 30 | ||
846 | === modified file 'lib/lp/services/job/tests/__init__.py' | |||
847 | --- lib/lp/services/job/tests/__init__.py 2012-05-14 20:06:58 +0000 | |||
848 | +++ lib/lp/services/job/tests/__init__.py 2012-06-14 05:34:29 +0000 | |||
849 | @@ -15,8 +15,8 @@ | |||
850 | 15 | 15 | ||
851 | 16 | from testtools.content import text_content | 16 | from testtools.content import text_content |
852 | 17 | 17 | ||
853 | 18 | from lp.services.job.runner import BaseRunnableJob | ||
854 | 18 | from lp.testing.fixture import CaptureOops | 19 | from lp.testing.fixture import CaptureOops |
855 | 19 | from lp.services.job.runner import BaseRunnableJob | ||
856 | 20 | 20 | ||
857 | 21 | 21 | ||
858 | 22 | def celeryd(queue, cwd=None): | 22 | def celeryd(queue, cwd=None): |
859 | 23 | 23 | ||
860 | === modified file 'lib/lp/services/job/tests/celery_helpers.py' | |||
861 | --- lib/lp/services/job/tests/celery_helpers.py 2012-04-05 19:05:16 +0000 | |||
862 | +++ lib/lp/services/job/tests/celery_helpers.py 2012-06-14 05:34:29 +0000 | |||
863 | @@ -7,6 +7,7 @@ | |||
864 | 7 | 7 | ||
865 | 8 | # Force the correct celeryconfig to be used. | 8 | # Force the correct celeryconfig to be used. |
866 | 9 | import lp.services.job.celeryjob | 9 | import lp.services.job.celeryjob |
867 | 10 | |||
868 | 10 | # Quiet lint unused import warning. | 11 | # Quiet lint unused import warning. |
869 | 11 | lp.services.job.celeryjob | 12 | lp.services.job.celeryjob |
870 | 12 | 13 | ||
871 | 13 | 14 | ||
872 | === modified file 'lib/lp/services/job/tests/test_job.py' | |||
873 | --- lib/lp/services/job/tests/test_job.py 2012-05-14 14:57:15 +0000 | |||
874 | +++ lib/lp/services/job/tests/test_job.py 2012-06-14 05:34:29 +0000 | |||
875 | @@ -6,15 +6,13 @@ | |||
876 | 6 | from datetime import datetime | 6 | from datetime import datetime |
877 | 7 | import time | 7 | import time |
878 | 8 | 8 | ||
879 | 9 | from lazr.jobrunner.jobrunner import LeaseHeld | ||
880 | 9 | import pytz | 10 | import pytz |
881 | 10 | from lazr.jobrunner.jobrunner import LeaseHeld | ||
882 | 11 | from storm.locals import Store | 11 | from storm.locals import Store |
883 | 12 | from testtools.matchers import Equals | 12 | from testtools.matchers import Equals |
884 | 13 | import transaction | 13 | import transaction |
885 | 14 | 14 | ||
889 | 15 | from lp.code.model.branchmergeproposaljob import ( | 15 | from lp.code.model.branchmergeproposaljob import CodeReviewCommentEmailJob |
887 | 16 | CodeReviewCommentEmailJob, | ||
888 | 17 | ) | ||
890 | 18 | from lp.services.database.constants import UTC_NOW | 16 | from lp.services.database.constants import UTC_NOW |
891 | 19 | from lp.services.database.lpstorm import IStore | 17 | from lp.services.database.lpstorm import IStore |
892 | 20 | from lp.services.job.interfaces.job import ( | 18 | from lp.services.job.interfaces.job import ( |
893 | 21 | 19 | ||
894 | === modified file 'lib/lp/services/job/tests/test_retry_jobs_with_celery.py' | |||
895 | --- lib/lp/services/job/tests/test_retry_jobs_with_celery.py 2012-06-04 16:15:49 +0000 | |||
896 | +++ lib/lp/services/job/tests/test_retry_jobs_with_celery.py 2012-06-14 05:34:29 +0000 | |||
897 | @@ -4,14 +4,11 @@ | |||
898 | 4 | """Tests for running jobs via Celery.""" | 4 | """Tests for running jobs via Celery.""" |
899 | 5 | 5 | ||
900 | 6 | 6 | ||
907 | 7 | from datetime import ( | 7 | from datetime import timedelta |
908 | 8 | timedelta, | 8 | from time import sleep |
909 | 9 | ) | 9 | |
910 | 10 | from time import ( | 10 | from lazr.delegates import delegates |
905 | 11 | sleep, | ||
906 | 12 | ) | ||
911 | 13 | import transaction | 11 | import transaction |
912 | 14 | from lazr.delegates import delegates | ||
913 | 15 | from zope.interface import implements | 12 | from zope.interface import implements |
914 | 16 | 13 | ||
915 | 17 | from lp.services.config import config | 14 | from lp.services.config import config |
916 | @@ -20,8 +17,8 @@ | |||
917 | 20 | from lp.services.job.interfaces.job import ( | 17 | from lp.services.job.interfaces.job import ( |
918 | 21 | IJob, | 18 | IJob, |
919 | 22 | IRunnableJob, | 19 | IRunnableJob, |
920 | 20 | JobStatus, | ||
921 | 23 | ) | 21 | ) |
922 | 24 | from lp.services.job.interfaces.job import JobStatus | ||
923 | 25 | from lp.services.job.model.job import Job | 22 | from lp.services.job.model.job import Job |
924 | 26 | from lp.services.job.runner import BaseRunnableJob | 23 | from lp.services.job.runner import BaseRunnableJob |
925 | 27 | from lp.services.job.tests import block_on_job | 24 | from lp.services.job.tests import block_on_job |
926 | 28 | 25 | ||
927 | === modified file 'lib/lp/services/messages/tests/test_message.py' | |||
928 | --- lib/lp/services/messages/tests/test_message.py 2012-04-27 19:03:32 +0000 | |||
929 | +++ lib/lp/services/messages/tests/test_message.py 2012-06-14 05:34:29 +0000 | |||
930 | @@ -14,9 +14,7 @@ | |||
931 | 14 | 14 | ||
932 | 15 | import transaction | 15 | import transaction |
933 | 16 | 16 | ||
937 | 17 | from lp.services.messages.model.message import ( | 17 | from lp.services.messages.model.message import MessageSet |
935 | 18 | MessageSet, | ||
936 | 19 | ) | ||
938 | 20 | from lp.testing import ( | 18 | from lp.testing import ( |
939 | 21 | login, | 19 | login, |
940 | 22 | TestCase, | 20 | TestCase, |
941 | 23 | 21 | ||
942 | === modified file 'lib/lp/services/testing/tests/test_customresult.py' | |||
943 | --- lib/lp/services/testing/tests/test_customresult.py 2012-06-07 10:03:44 +0000 | |||
944 | +++ lib/lp/services/testing/tests/test_customresult.py 2012-06-14 05:34:29 +0000 | |||
945 | @@ -7,8 +7,9 @@ | |||
946 | 7 | 7 | ||
947 | 8 | import string | 8 | import string |
948 | 9 | import tempfile | 9 | import tempfile |
949 | 10 | import unittest | ||
950 | 11 | |||
951 | 10 | from testtools import TestCase | 12 | from testtools import TestCase |
952 | 11 | import unittest | ||
953 | 12 | 13 | ||
954 | 13 | from lp.services.testing.customresult import filter_tests | 14 | from lp.services.testing.customresult import filter_tests |
955 | 14 | from lp.testing.layers import BaseLayer | 15 | from lp.testing.layers import BaseLayer |
956 | 15 | 16 | ||
957 | === modified file 'lib/lp/services/verification/browser/tests/test_logintoken.py' | |||
958 | --- lib/lp/services/verification/browser/tests/test_logintoken.py 2012-04-11 14:40:02 +0000 | |||
959 | +++ lib/lp/services/verification/browser/tests/test_logintoken.py 2012-06-14 05:34:29 +0000 | |||
960 | @@ -13,8 +13,8 @@ | |||
961 | 13 | from lp.services.verification.interfaces.authtoken import LoginTokenType | 13 | from lp.services.verification.interfaces.authtoken import LoginTokenType |
962 | 14 | from lp.services.verification.interfaces.logintoken import ILoginTokenSet | 14 | from lp.services.verification.interfaces.logintoken import ILoginTokenSet |
963 | 15 | from lp.testing import ( | 15 | from lp.testing import ( |
964 | 16 | person_logged_in, | ||
965 | 16 | TestCaseWithFactory, | 17 | TestCaseWithFactory, |
966 | 17 | person_logged_in, | ||
967 | 18 | ) | 18 | ) |
968 | 19 | from lp.testing.deprecated import LaunchpadFormHarness | 19 | from lp.testing.deprecated import LaunchpadFormHarness |
969 | 20 | from lp.testing.layers import DatabaseFunctionalLayer | 20 | from lp.testing.layers import DatabaseFunctionalLayer |
970 | 21 | 21 | ||
971 | === modified file 'lib/lp/services/webapp/publisher.py' | |||
972 | --- lib/lp/services/webapp/publisher.py 2012-05-22 17:00:08 +0000 | |||
973 | +++ lib/lp/services/webapp/publisher.py 2012-06-14 05:34:29 +0000 | |||
974 | @@ -47,12 +47,12 @@ | |||
975 | 47 | queryMultiAdapter, | 47 | queryMultiAdapter, |
976 | 48 | ) | 48 | ) |
977 | 49 | from zope.component.interfaces import ComponentLookupError | 49 | from zope.component.interfaces import ComponentLookupError |
978 | 50 | from zope.i18nmessageid import Message | ||
979 | 50 | from zope.interface import ( | 51 | from zope.interface import ( |
980 | 51 | directlyProvides, | 52 | directlyProvides, |
981 | 52 | implements, | 53 | implements, |
982 | 53 | ) | 54 | ) |
983 | 54 | from zope.interface.advice import addClassAdvisor | 55 | from zope.interface.advice import addClassAdvisor |
984 | 55 | from zope.i18nmessageid import Message | ||
985 | 56 | from zope.publisher.interfaces import NotFound | 56 | from zope.publisher.interfaces import NotFound |
986 | 57 | from zope.publisher.interfaces.browser import ( | 57 | from zope.publisher.interfaces.browser import ( |
987 | 58 | IBrowserPublisher, | 58 | IBrowserPublisher, |
988 | 59 | 59 | ||
989 | === modified file 'lib/lp/services/webapp/tests/test_error.py' | |||
990 | --- lib/lp/services/webapp/tests/test_error.py 2012-06-12 09:26:39 +0000 | |||
991 | +++ lib/lp/services/webapp/tests/test_error.py 2012-06-14 05:34:29 +0000 | |||
992 | @@ -5,13 +5,14 @@ | |||
993 | 5 | 5 | ||
994 | 6 | 6 | ||
995 | 7 | import httplib | 7 | import httplib |
996 | 8 | import time | ||
997 | 9 | import urllib2 | ||
998 | 10 | |||
999 | 8 | from storm.exceptions import ( | 11 | from storm.exceptions import ( |
1000 | 9 | DisconnectionError, | 12 | DisconnectionError, |
1001 | 10 | OperationalError, | 13 | OperationalError, |
1002 | 11 | ) | 14 | ) |
1003 | 12 | import time | ||
1004 | 13 | import transaction | 15 | import transaction |
1005 | 14 | import urllib2 | ||
1006 | 15 | 16 | ||
1007 | 16 | from lp.services.webapp.error import ( | 17 | from lp.services.webapp.error import ( |
1008 | 17 | DisconnectionErrorView, | 18 | DisconnectionErrorView, |
1009 | 18 | 19 | ||
1010 | === modified file 'lib/lp/soyuz/model/packagecopyjob.py' | |||
1011 | --- lib/lp/soyuz/model/packagecopyjob.py 2012-05-21 07:34:15 +0000 | |||
1012 | +++ lib/lp/soyuz/model/packagecopyjob.py 2012-06-14 05:34:29 +0000 | |||
1013 | @@ -49,9 +49,7 @@ | |||
1014 | 49 | IStore, | 49 | IStore, |
1015 | 50 | ) | 50 | ) |
1016 | 51 | from lp.services.database.stormbase import StormBase | 51 | from lp.services.database.stormbase import StormBase |
1020 | 52 | from lp.services.job.interfaces.job import ( | 52 | from lp.services.job.interfaces.job import JobStatus |
1018 | 53 | JobStatus, | ||
1019 | 54 | ) | ||
1021 | 55 | from lp.services.job.model.job import ( | 53 | from lp.services.job.model.job import ( |
1022 | 56 | EnumeratedSubclass, | 54 | EnumeratedSubclass, |
1023 | 57 | Job, | 55 | Job, |
1024 | 58 | 56 | ||
1025 | === modified file 'lib/lp/soyuz/tests/test_packagecopyjob.py' | |||
1026 | --- lib/lp/soyuz/tests/test_packagecopyjob.py 2012-05-21 07:34:15 +0000 | |||
1027 | +++ lib/lp/soyuz/tests/test_packagecopyjob.py 2012-06-14 05:34:29 +0000 | |||
1028 | @@ -24,9 +24,7 @@ | |||
1029 | 24 | from lp.services.config import config | 24 | from lp.services.config import config |
1030 | 25 | from lp.services.database.lpstorm import IStore | 25 | from lp.services.database.lpstorm import IStore |
1031 | 26 | from lp.services.features.testing import FeatureFixture | 26 | from lp.services.features.testing import FeatureFixture |
1035 | 27 | from lp.services.job.interfaces.job import ( | 27 | from lp.services.job.interfaces.job import JobStatus |
1033 | 28 | JobStatus, | ||
1034 | 29 | ) | ||
1036 | 30 | from lp.services.job.tests import ( | 28 | from lp.services.job.tests import ( |
1037 | 31 | block_on_job, | 29 | block_on_job, |
1038 | 32 | pop_remote_notifications, | 30 | pop_remote_notifications, |
1039 | 33 | 31 | ||
1040 | === modified file 'lib/lp/soyuz/tests/test_person_createppa.py' | |||
1041 | --- lib/lp/soyuz/tests/test_person_createppa.py 2012-06-11 09:16:11 +0000 | |||
1042 | +++ lib/lp/soyuz/tests/test_person_createppa.py 2012-06-14 05:34:29 +0000 | |||
1043 | @@ -6,6 +6,7 @@ | |||
1044 | 6 | __metaclass__ = type | 6 | __metaclass__ = type |
1045 | 7 | 7 | ||
1046 | 8 | from zope.security.interfaces import Unauthorized | 8 | from zope.security.interfaces import Unauthorized |
1047 | 9 | |||
1048 | 9 | from lp.registry.errors import PPACreationError | 10 | from lp.registry.errors import PPACreationError |
1049 | 10 | from lp.registry.interfaces.person import ( | 11 | from lp.registry.interfaces.person import ( |
1050 | 11 | PersonVisibility, | 12 | PersonVisibility, |
1051 | 12 | 13 | ||
1052 | === modified file 'lib/lp/testing/fixture.py' | |||
1053 | --- lib/lp/testing/fixture.py 2012-05-16 03:56:28 +0000 | |||
1054 | +++ lib/lp/testing/fixture.py 2012-06-14 05:34:29 +0000 | |||
1055 | @@ -60,8 +60,8 @@ | |||
1056 | 60 | from lp.services.webapp.errorlog import ErrorReportEvent | 60 | from lp.services.webapp.errorlog import ErrorReportEvent |
1057 | 61 | from lp.services.webapp.interfaces import ( | 61 | from lp.services.webapp.interfaces import ( |
1058 | 62 | DEFAULT_FLAVOR, | 62 | DEFAULT_FLAVOR, |
1059 | 63 | IStoreSelector, | ||
1060 | 63 | MAIN_STORE, | 64 | MAIN_STORE, |
1061 | 64 | IStoreSelector, | ||
1062 | 65 | ) | 65 | ) |
1063 | 66 | from lp.testing.dbuser import dbuser | 66 | from lp.testing.dbuser import dbuser |
1064 | 67 | 67 | ||
1065 | 68 | 68 | ||
1066 | === modified file 'lib/lp/testing/layers.py' | |||
1067 | --- lib/lp/testing/layers.py 2012-04-12 19:34:59 +0000 | |||
1068 | +++ lib/lp/testing/layers.py 2012-06-14 05:34:29 +0000 | |||
1069 | @@ -111,10 +111,10 @@ | |||
1070 | 111 | ConfigUseFixture, | 111 | ConfigUseFixture, |
1071 | 112 | ) | 112 | ) |
1072 | 113 | from lp.services.database.sqlbase import session_store | 113 | from lp.services.database.sqlbase import session_store |
1073 | 114 | from lp.services.job.tests import celeryd | ||
1074 | 115 | from lp.services.googlesearch.tests.googleserviceharness import ( | 114 | from lp.services.googlesearch.tests.googleserviceharness import ( |
1075 | 116 | GoogleServiceTestSetup, | 115 | GoogleServiceTestSetup, |
1076 | 117 | ) | 116 | ) |
1077 | 117 | from lp.services.job.tests import celeryd | ||
1078 | 118 | from lp.services.librarianserver.testing.server import LibrarianServerFixture | 118 | from lp.services.librarianserver.testing.server import LibrarianServerFixture |
1079 | 119 | from lp.services.mail.mailbox import ( | 119 | from lp.services.mail.mailbox import ( |
1080 | 120 | IMailBox, | 120 | IMailBox, |
1081 | 121 | 121 | ||
1082 | === modified file 'lib/lp/translations/interfaces/translationpackagingjob.py' | |||
1083 | --- lib/lp/translations/interfaces/translationpackagingjob.py 2011-12-19 23:38:16 +0000 | |||
1084 | +++ lib/lp/translations/interfaces/translationpackagingjob.py 2012-06-14 05:34:29 +0000 | |||
1085 | @@ -1,3 +1,8 @@ | |||
1086 | 1 | # Copyright 2011-2012 Canonical Ltd. This software is licensed under the | ||
1087 | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). | ||
1088 | 3 | |||
1089 | 4 | __metaclass__ = type | ||
1090 | 5 | |||
1091 | 1 | from lp.services.job.interfaces.job import IJobSource | 6 | from lp.services.job.interfaces.job import IJobSource |
1092 | 2 | 7 | ||
1093 | 3 | 8 | ||
1094 | 4 | 9 | ||
1095 | === modified file 'lib/lp/translations/tests/test_distroseries_translations_copy.py' | |||
1096 | --- lib/lp/translations/tests/test_distroseries_translations_copy.py 2012-05-08 03:10:09 +0000 | |||
1097 | +++ lib/lp/translations/tests/test_distroseries_translations_copy.py 2012-06-14 05:34:29 +0000 | |||
1098 | @@ -6,10 +6,10 @@ | |||
1099 | 6 | __metaclass__ = type | 6 | __metaclass__ = type |
1100 | 7 | 7 | ||
1101 | 8 | from lp.services.database.multitablecopy import MultiTableCopy | 8 | from lp.services.database.multitablecopy import MultiTableCopy |
1102 | 9 | from lp.services.log.logger import DevNullLogger | ||
1103 | 9 | from lp.testing import TestCaseWithFactory | 10 | from lp.testing import TestCaseWithFactory |
1104 | 10 | from lp.testing.faketransaction import FakeTransaction | 11 | from lp.testing.faketransaction import FakeTransaction |
1105 | 11 | from lp.testing.layers import ZopelessDatabaseLayer | 12 | from lp.testing.layers import ZopelessDatabaseLayer |
1106 | 12 | from lp.services.log.logger import DevNullLogger | ||
1107 | 13 | from lp.translations.model.distroseries_translations_copy import ( | 13 | from lp.translations.model.distroseries_translations_copy import ( |
1108 | 14 | copy_active_translations, | 14 | copy_active_translations, |
1109 | 15 | ) | 15 | ) |
1110 | 16 | 16 | ||
1111 | === modified file 'lib/lp/translations/tests/test_pofilestatsjob.py' | |||
1112 | --- lib/lp/translations/tests/test_pofilestatsjob.py 2012-04-24 20:57:27 +0000 | |||
1113 | +++ lib/lp/translations/tests/test_pofilestatsjob.py 2012-06-14 05:34:29 +0000 | |||
1114 | @@ -15,9 +15,7 @@ | |||
1115 | 15 | IJobSource, | 15 | IJobSource, |
1116 | 16 | IRunnableJob, | 16 | IRunnableJob, |
1117 | 17 | ) | 17 | ) |
1121 | 18 | from lp.services.job.tests import ( | 18 | from lp.services.job.tests import block_on_job |
1119 | 19 | block_on_job | ||
1120 | 20 | ) | ||
1122 | 21 | from lp.services.webapp.testing import verifyObject | 19 | from lp.services.webapp.testing import verifyObject |
1123 | 22 | from lp.testing import TestCaseWithFactory | 20 | from lp.testing import TestCaseWithFactory |
1124 | 23 | from lp.testing.dbuser import dbuser | 21 | from lp.testing.dbuser import dbuser |