Merge lp:~nataliabidart/magicicada-client/magicicadaclient-namespace into lp:magicicada-client
- magicicadaclient-namespace
- Merge into trunk
Proposed by
Natalia Bidart
Status: | Merged |
---|---|
Approved by: | Natalia Bidart |
Approved revision: | 1445 |
Merged at revision: | 1445 |
Proposed branch: | lp:~nataliabidart/magicicada-client/magicicadaclient-namespace |
Merge into: | lp:magicicada-client |
Diff against target: |
2961 lines (+436/-447) 124 files modified
bin/u1sdtool (+3/-2) bin/ubuntuone-launch (+5/-7) bin/ubuntuone-syncdaemon (+11/-19) contrib/__init__.py (+1/-2) contrib/dbus-docs (+9/-11) contrib/dbus_util.py (+2/-1) contrib/draw-fsm (+3/-2) contrib/dump_metadata.py (+21/-17) magicicadaclient/keyring.py (+3/-3) magicicadaclient/networkstate/__init__.py (+3/-3) magicicadaclient/networkstate/darwin.py (+2/-2) magicicadaclient/networkstate/linux.py (+2/-2) magicicadaclient/networkstate/tests/test_darwin.py (+4/-4) magicicadaclient/networkstate/tests/test_linux.py (+4/-4) magicicadaclient/networkstate/tests/test_windows.py (+3/-3) magicicadaclient/networkstate/windows.py (+2/-2) magicicadaclient/platform/__init__.py (+3/-3) magicicadaclient/platform/filesystem_notifications/__init__.py (+1/-1) magicicadaclient/platform/filesystem_notifications/monitor/__init__.py (+4/-4) magicicadaclient/platform/filesystem_notifications/monitor/common.py (+6/-6) magicicadaclient/platform/filesystem_notifications/monitor/darwin/__init__.py (+1/-1) magicicadaclient/platform/filesystem_notifications/monitor/darwin/fsevents_client.py (+1/-1) magicicadaclient/platform/filesystem_notifications/monitor/darwin/fsevents_daemon.py (+5/-5) magicicadaclient/platform/filesystem_notifications/monitor/linux.py (+2/-2) magicicadaclient/platform/filesystem_notifications/monitor/windows.py (+2/-2) magicicadaclient/platform/filesystem_notifications/notify_processor/__init__.py (+2/-2) magicicadaclient/platform/filesystem_notifications/notify_processor/common.py (+3/-3) magicicadaclient/platform/filesystem_notifications/notify_processor/linux.py (+1/-1) magicicadaclient/platform/ipc/__init__.py (+2/-2) magicicadaclient/platform/ipc/ipc_client.py (+1/-1) magicicadaclient/platform/ipc/linux.py (+1/-1) magicicadaclient/platform/ipc/perspective_broker.py (+4/-4) magicicadaclient/platform/launcher/__init__.py (+2/-2) magicicadaclient/platform/launcher/linux.py (+1/-1) magicicadaclient/platform/launcher/windows.py (+1/-1) magicicadaclient/platform/logger/__init__.py (+3/-3) magicicadaclient/platform/os_helper/__init__.py (+3/-3) magicicadaclient/platform/os_helper/darwin.py (+2/-2) magicicadaclient/platform/os_helper/linux.py (+1/-1) magicicadaclient/platform/session/__init__.py (+3/-3) magicicadaclient/platform/session/linux.py (+1/-1) magicicadaclient/platform/tests/__init__.py (+2/-2) magicicadaclient/platform/tests/filesystem_notifications/__init__.py (+3/-3) magicicadaclient/platform/tests/filesystem_notifications/common.py (+6/-6) magicicadaclient/platform/tests/filesystem_notifications/test_darwin.py (+7/-7) magicicadaclient/platform/tests/filesystem_notifications/test_filesystem_notifications.py (+5/-5) magicicadaclient/platform/tests/filesystem_notifications/test_fsevents_daemon.py (+4/-4) magicicadaclient/platform/tests/filesystem_notifications/test_linux.py (+5/-5) magicicadaclient/platform/tests/filesystem_notifications/test_pyinotify_agnostic.py (+1/-1) magicicadaclient/platform/tests/filesystem_notifications/test_windows.py (+5/-5) magicicadaclient/platform/tests/ipc/test_external_interface.py (+1/-1) magicicadaclient/platform/tests/ipc/test_linux.py (+4/-4) magicicadaclient/platform/tests/ipc/test_perspective_broker.py (+8/-8) magicicadaclient/platform/tests/ipc/test_unix.py (+1/-1) magicicadaclient/platform/tests/ipc/test_windows.py (+1/-1) magicicadaclient/platform/tests/launcher/test_linux.py (+5/-8) magicicadaclient/platform/tests/linux/test_vm.py (+3/-3) magicicadaclient/platform/tests/os_helper/test_darwin.py (+3/-3) magicicadaclient/platform/tests/os_helper/test_linux.py (+3/-3) magicicadaclient/platform/tests/os_helper/test_os_helper.py (+2/-2) magicicadaclient/platform/tests/os_helper/test_windows.py (+4/-4) magicicadaclient/platform/tests/session/test_common.py (+1/-1) magicicadaclient/platform/tests/session/test_linux.py (+1/-1) magicicadaclient/platform/tests/test_logger.py (+2/-3) magicicadaclient/platform/tests/test_platform.py (+1/-1) magicicadaclient/platform/tests/test_tools.py (+4/-4) magicicadaclient/platform/tests/test_u1sdtool.py (+5/-5) magicicadaclient/platform/tests/tools/test_tools.py (+1/-1) magicicadaclient/platform/tests/windows/run_sdtool.py (+1/-1) magicicadaclient/platform/tools/__init__.py (+3/-3) magicicadaclient/platform/tools/linux.py (+1/-1) magicicadaclient/platform/tools/perspective_broker.py (+4/-4) magicicadaclient/syncdaemon/action_queue.py (+5/-5) magicicadaclient/syncdaemon/config.py (+2/-2) magicicadaclient/syncdaemon/event_queue.py (+2/-2) magicicadaclient/syncdaemon/file_shelf.py (+1/-1) magicicadaclient/syncdaemon/filesystem_manager.py (+8/-8) magicicadaclient/syncdaemon/filesystem_notifications.py (+3/-3) magicicadaclient/syncdaemon/fsm/fsm.py (+2/-2) magicicadaclient/syncdaemon/hash_queue.py (+2/-2) magicicadaclient/syncdaemon/interaction_interfaces.py (+8/-8) magicicadaclient/syncdaemon/local_rescan.py (+5/-5) magicicadaclient/syncdaemon/logger.py (+4/-4) magicicadaclient/syncdaemon/main.py (+4/-4) magicicadaclient/syncdaemon/marker.py (+1/-1) magicicadaclient/syncdaemon/sync.py (+7/-7) magicicadaclient/syncdaemon/tests/fsm/test_fsm.py (+1/-1) magicicadaclient/syncdaemon/tests/fsm/test_fsm_run.py (+1/-1) magicicadaclient/syncdaemon/tests/test_action_queue.py (+10/-10) magicicadaclient/syncdaemon/tests/test_config.py (+4/-4) magicicadaclient/syncdaemon/tests/test_eq_inotify.py (+4/-4) magicicadaclient/syncdaemon/tests/test_eventqueue.py (+3/-3) magicicadaclient/syncdaemon/tests/test_eventsnanny.py (+2/-2) magicicadaclient/syncdaemon/tests/test_fileshelf.py (+3/-3) magicicadaclient/syncdaemon/tests/test_fsm.py (+13/-13) magicicadaclient/syncdaemon/tests/test_hashqueue.py (+4/-4) magicicadaclient/syncdaemon/tests/test_interaction_interfaces.py (+8/-8) magicicadaclient/syncdaemon/tests/test_localrescan.py (+6/-6) magicicadaclient/syncdaemon/tests/test_logger.py (+1/-1) magicicadaclient/syncdaemon/tests/test_main.py (+6/-6) magicicadaclient/syncdaemon/tests/test_mutefilter.py (+1/-1) magicicadaclient/syncdaemon/tests/test_offloadqueue.py (+3/-3) magicicadaclient/syncdaemon/tests/test_pathlockingtree.py (+1/-1) magicicadaclient/syncdaemon/tests/test_states.py (+3/-3) magicicadaclient/syncdaemon/tests/test_sync.py (+9/-9) magicicadaclient/syncdaemon/tests/test_tritcask.py (+3/-3) magicicadaclient/syncdaemon/tests/test_u1fsfsm.py (+1/-1) magicicadaclient/syncdaemon/tests/test_utils.py (+13/-13) magicicadaclient/syncdaemon/tests/test_vm.py (+8/-8) magicicadaclient/syncdaemon/tests/test_vm_helper.py (+5/-5) magicicadaclient/syncdaemon/tritcask.py (+1/-1) magicicadaclient/syncdaemon/vm_helper.py (+3/-3) magicicadaclient/syncdaemon/volume_manager.py (+13/-13) magicicadaclient/testing/testcase.py (+4/-4) magicicadaclient/tests/test_keyring.py (+1/-1) magicicadaclient/utils/ipc.py (+1/-1) magicicadaclient/utils/tests/test_common.py (+2/-2) magicicadaclient/utils/tests/test_ipc.py (+2/-2) magicicadaclient/utils/tests/test_locale.py (+1/-1) magicicadaclient/utils/tests/test_tcpactivation.py (+2/-2) magicicadaclient/utils/tests/test_translation.py (+4/-4) magicicadaclient/utils/tests/test_txsecrets.py (+1/-1) run-tests (+3/-3) ubuntuone-client.pth (+0/-1) |
To merge this branch: | bzr merge lp:~nataliabidart/magicicada-client/magicicadaclient-namespace |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Facundo Batista | Approve | ||
Review via email:
|
Commit message
- Rename python package to magicicadaclient.
Description of the change
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 'bin/u1sdtool' |
2 | --- bin/u1sdtool 2013-01-28 17:43:24 +0000 |
3 | +++ bin/u1sdtool 2018-05-19 20:49:48 +0000 |
4 | @@ -1,6 +1,7 @@ |
5 | #! /usr/bin/python |
6 | # |
7 | # Copyright 2009-2013 Canonical Ltd. |
8 | +# Copyright 2017-2018 Chicharreros (https://launchpad.net/~chicharreros) |
9 | # |
10 | # This program is free software: you can redistribute it and/or modify it |
11 | # under the terms of the GNU General Public License version 3, as published |
12 | @@ -51,7 +52,8 @@ |
13 | warnings.filterwarnings('ignore', message='.*Config(Option|Section).*', |
14 | category=DeprecationWarning) |
15 | |
16 | -from ubuntuone.platform.tools import ( |
17 | +from magicicadaclient.clientdefs import VERSION |
18 | +from magicicadaclient.platform.tools import ( |
19 | SyncDaemonTool, |
20 | is_already_running, |
21 | show_dirty_nodes, |
22 | @@ -69,7 +71,6 @@ |
23 | show_waiting_content, |
24 | show_waiting_metadata, |
25 | ) |
26 | -from ubuntuone.clientdefs import VERSION |
27 | |
28 | |
29 | @defer.inlineCallbacks |
30 | |
31 | === modified file 'bin/ubuntuone-launch' |
32 | --- bin/ubuntuone-launch 2015-09-29 21:05:26 +0000 |
33 | +++ bin/ubuntuone-launch 2018-05-19 20:49:48 +0000 |
34 | @@ -1,10 +1,9 @@ |
35 | #!/usr/bin/python |
36 | - |
37 | +# |
38 | # Magicicada storage synchronization daemon startup helper |
39 | # |
40 | -# Author: John Lenton <john.lenton@canonical.com> |
41 | -# |
42 | # Copyright 2010-2012 Canonical Ltd. |
43 | +# Copyright 2017-2018 Chicharreros (https://launchpad.net/~chicharreros) |
44 | # |
45 | # This program is free software: you can redistribute it and/or modify it |
46 | # under the terms of the GNU General Public License version 3, as published |
47 | @@ -30,8 +29,7 @@ |
48 | # do not wish to do so, delete this exception statement from your |
49 | # version. If you delete this exception statement from all source |
50 | # files in the program, then also delete it here. |
51 | -""" |
52 | -Storage synchronization daemon (syncdaemon) startup helper. |
53 | +"""Storage synchronization daemon (syncdaemon) startup helper. |
54 | |
55 | This script decides whether to start and connect syncdaemon. |
56 | |
57 | @@ -68,8 +66,8 @@ |
58 | from gi.repository import GLib |
59 | from twisted.internet import defer |
60 | |
61 | -from ubuntuone.syncdaemon.config import get_user_config |
62 | -from ubuntuone.platform.tools import SyncDaemonTool, is_already_running |
63 | +from magicicadaclient.syncdaemon.config import get_user_config |
64 | +from magicicadaclient.platform.tools import SyncDaemonTool, is_already_running |
65 | |
66 | |
67 | @defer.inlineCallbacks |
68 | |
69 | === modified file 'bin/ubuntuone-syncdaemon' |
70 | --- bin/ubuntuone-syncdaemon 2017-02-10 01:15:07 +0000 |
71 | +++ bin/ubuntuone-syncdaemon 2018-05-19 20:49:48 +0000 |
72 | @@ -1,7 +1,7 @@ |
73 | #!/usr/bin/python |
74 | # |
75 | # Copyright 2009-2015 Canonical Ltd. |
76 | -# Copyright 2017 Chicharreros (https://launchpad.net/~chicharreros) |
77 | +# Copyright 2017-2018 Chicharreros (https://launchpad.net/~chicharreros) |
78 | # |
79 | # This program is free software: you can redistribute it and/or modify it |
80 | # under the terms of the GNU General Public License version 3, as published |
81 | @@ -41,9 +41,11 @@ |
82 | import atexit |
83 | import os |
84 | import signal |
85 | -import sys |
86 | - |
87 | -from ubuntuone.platform import ( |
88 | + |
89 | +from twisted.internet import reactor, defer |
90 | +from dirspec.basedir import xdg_cache_home, xdg_data_home |
91 | + |
92 | +from magicicadaclient.platform import ( |
93 | can_write, |
94 | set_dir_readwrite, |
95 | is_already_running, |
96 | @@ -53,22 +55,12 @@ |
97 | recursive_move, |
98 | set_application_name, |
99 | ) |
100 | -from ubuntuone.platform.filesystem_notifications.monitor import ( |
101 | +from magicicadaclient.platform.filesystem_notifications.monitor import ( |
102 | get_filemonitor_class, |
103 | ) |
104 | - |
105 | -from ubuntuone.syncdaemon import logger, config |
106 | -from ubuntuone.syncdaemon.config import ( |
107 | - get_config_files, |
108 | -) |
109 | - |
110 | -from ubuntuone.syncdaemon.main import Main |
111 | - |
112 | -from twisted.internet import reactor, defer |
113 | -from dirspec.basedir import ( |
114 | - xdg_cache_home, |
115 | - xdg_data_home, |
116 | -) |
117 | +from magicicadaclient.syncdaemon import logger, config |
118 | +from magicicadaclient.syncdaemon.main import Main |
119 | + |
120 | |
121 | |
122 | class DeathException(Exception): |
123 | @@ -96,7 +88,7 @@ |
124 | while len(args) > 0 and not args[0].startswith('-'): |
125 | configs.append(args.pop(0)) |
126 | if len(configs) == 0: |
127 | - configs.extend(get_config_files()) |
128 | + configs.extend(config.get_config_files()) |
129 | (parser, options, argv) = config.configglue(file(configs[0]), *configs[1:], |
130 | args=args, usage=usage) |
131 | d = async_main(parser, options, argv) |
132 | |
133 | === modified file 'contrib/__init__.py' |
134 | --- contrib/__init__.py 2012-04-09 20:07:05 +0000 |
135 | +++ contrib/__init__.py 2018-05-19 20:49:48 +0000 |
136 | @@ -1,7 +1,5 @@ |
137 | # contrib - Extra required code to build/install the client |
138 | # |
139 | -# Author: Rodney Dawes <rodney.dawes@canonical.com> |
140 | -# |
141 | # Copyright 2009-2012 Canonical Ltd. |
142 | # |
143 | # This program is free software: you can redistribute it and/or modify it |
144 | @@ -28,4 +26,5 @@ |
145 | # do not wish to do so, delete this exception statement from your |
146 | # version. If you delete this exception statement from all source |
147 | # files in the program, then also delete it here. |
148 | + |
149 | """Extra things we need to build, test, or install the client.""" |
150 | |
151 | === modified file 'contrib/dbus-docs' |
152 | --- contrib/dbus-docs 2013-01-28 17:43:24 +0000 |
153 | +++ contrib/dbus-docs 2018-05-19 20:49:48 +0000 |
154 | @@ -37,18 +37,12 @@ |
155 | import shutil |
156 | |
157 | from xml.etree import ElementTree |
158 | +from twisted.internet import reactor, defer |
159 | |
160 | sys.path.insert(0, os.path.abspath(".")) |
161 | |
162 | from contrib.dbus_util import DBusRunner |
163 | -from contrib.testing.testcase import ( |
164 | - FakeMain, |
165 | - DBusGMainLoop, |
166 | - DBusInterface, |
167 | - FakeNetworkManager, |
168 | -) |
169 | - |
170 | -from ubuntuone.platform.dbus_interface import ( |
171 | +from magicicadaclient.platform.dbus_interface import ( |
172 | DBUS_IFACE_SYNC_NAME, |
173 | DBUS_IFACE_STATUS_NAME, |
174 | DBUS_IFACE_EVENTS_NAME, |
175 | @@ -58,8 +52,13 @@ |
176 | DBUS_IFACE_FOLDERS_NAME, |
177 | DBUS_IFACE_PUBLIC_FILES_NAME, |
178 | ) |
179 | -from ubuntuone.platform.tools import DBusClient |
180 | -from twisted.internet import reactor, defer |
181 | +from magicicadaclient.platform.tools import DBusClient |
182 | +from magicicadaclient.testing.testcase import ( |
183 | + FakeMain, |
184 | + DBusGMainLoop, |
185 | + DBusInterface, |
186 | + FakeNetworkManager, |
187 | +) |
188 | |
189 | |
190 | iface_path = ((DBUS_IFACE_SYNC_NAME, '/'), (DBUS_IFACE_CONFIG_NAME, '/config'), |
191 | @@ -206,4 +205,3 @@ |
192 | for dir in dirs: |
193 | os.chmod(os.path.join(dirpath, dir), 0777) |
194 | shutil.rmtree(tmp_dir) |
195 | - |
196 | |
197 | === modified file 'contrib/dbus_util.py' |
198 | --- contrib/dbus_util.py 2012-04-09 20:07:05 +0000 |
199 | +++ contrib/dbus_util.py 2018-05-19 20:49:48 +0000 |
200 | @@ -37,10 +37,12 @@ |
201 | |
202 | SRCDIR = os.environ.get('SRCDIR', os.getcwd()) |
203 | |
204 | + |
205 | class DBusLaunchError(Exception): |
206 | """Error while launching dbus-daemon""" |
207 | pass |
208 | |
209 | + |
210 | class NotFoundError(Exception): |
211 | """Not found error""" |
212 | pass |
213 | @@ -85,4 +87,3 @@ |
214 | del os.environ["DBUS_SESSION_BUS_ADDRESS"] |
215 | os.kill(self.dbus_pid, signal.SIGKILL) |
216 | self.running = False |
217 | - |
218 | |
219 | === modified file 'contrib/draw-fsm' |
220 | --- contrib/draw-fsm 2016-05-27 23:45:26 +0000 |
221 | +++ contrib/draw-fsm 2018-05-19 20:49:48 +0000 |
222 | @@ -34,11 +34,11 @@ |
223 | import tempfile |
224 | import time |
225 | import sys |
226 | +import xdot |
227 | |
228 | from gi.repository import Gtk as gtk |
229 | |
230 | -import xdot |
231 | -from ubuntuone.syncdaemon.fsm import fsm |
232 | +from magicicadaclient.syncdaemon.fsm import fsm |
233 | |
234 | |
235 | def dict2label(d): |
236 | @@ -114,5 +114,6 @@ |
237 | window.connect('destroy', gtk.main_quit) |
238 | gtk.main() |
239 | |
240 | + |
241 | if __name__ == "__main__": |
242 | main(sys.argv[1], True) |
243 | |
244 | === modified file 'contrib/dump_metadata.py' |
245 | --- contrib/dump_metadata.py 2012-06-21 18:58:50 +0000 |
246 | +++ contrib/dump_metadata.py 2018-05-19 20:49:48 +0000 |
247 | @@ -25,8 +25,8 @@ |
248 | # do not wish to do so, delete this exception statement from your |
249 | # version. If you delete this exception statement from all source |
250 | # files in the program, then also delete it here. |
251 | -""" |
252 | -Dumps all the metadata. |
253 | + |
254 | +"""Dump all the metadata. |
255 | |
256 | Usage: |
257 | |
258 | @@ -39,15 +39,13 @@ |
259 | import os |
260 | import sys |
261 | |
262 | -from ubuntuone.syncdaemon import ( |
263 | +from dirspec.basedir import xdg_cache_home, xdg_data_home |
264 | + |
265 | +from magicicadaclient.syncdaemon import ( |
266 | filesystem_manager, |
267 | tritcask, |
268 | volume_manager, |
269 | ) |
270 | -from dirspec.basedir import ( |
271 | - xdg_cache_home, |
272 | - xdg_data_home, |
273 | -) |
274 | |
275 | |
276 | class FakeVM(object): |
277 | @@ -68,9 +66,12 @@ |
278 | print " found:", repr(version_found) |
279 | exit(-1) |
280 | |
281 | - self.shares = volume_manager.VMTritcaskShelf(volume_manager.SHARE_ROW_TYPE, db) |
282 | - self.shared = volume_manager.VMTritcaskShelf(volume_manager.SHARED_ROW_TYPE, db) |
283 | - self.udfs = volume_manager.VMTritcaskShelf(volume_manager.UDF_ROW_TYPE, db) |
284 | + self.shares = volume_manager.VMTritcaskShelf( |
285 | + volume_manager.SHARE_ROW_TYPE, db) |
286 | + self.shared = volume_manager.VMTritcaskShelf( |
287 | + volume_manager.SHARED_ROW_TYPE, db) |
288 | + self.udfs = volume_manager.VMTritcaskShelf( |
289 | + volume_manager.UDF_ROW_TYPE, db) |
290 | |
291 | def get_volume(self, vol_id): |
292 | """Gets the volume.""" |
293 | @@ -107,12 +108,14 @@ |
294 | |
295 | for mdobj in mdobjs: |
296 | filedir = "DIR " if mdobj.is_dir else "FILE" |
297 | - print " mdid=%r node_id=%r crc32=%s local_hash=%s server_hash=%s %s %r" % ( |
298 | - mdobj.mdid, mdobj.node_id, |
299 | - getattr(mdobj, 'crc32', '**No crc32**'), |
300 | - getattr(mdobj, 'local_hash', '**No local_hash**'), |
301 | - getattr(mdobj, 'server_hash', '**No server_hash**'), |
302 | - filedir, mdobj.path) |
303 | + print ( |
304 | + " mdid=%r node_id=%r crc32=%s local_hash=%s server_hash=%s " |
305 | + "%s %r" % ( |
306 | + mdobj.mdid, mdobj.node_id, |
307 | + getattr(mdobj, 'crc32', '**No crc32**'), |
308 | + getattr(mdobj, 'local_hash', '**No local_hash**'), |
309 | + getattr(mdobj, 'server_hash', '**No server_hash**'), |
310 | + filedir, mdobj.path)) |
311 | |
312 | print "\nShowing Root: %r (id=%r)" % (root.path, root.id) |
313 | show_data(root.id) |
314 | @@ -132,7 +135,8 @@ |
315 | fsm.trash.iteritems(): |
316 | something = True |
317 | print (" mdid=%r volume_id=%r node_id=%r parent_id=%r path=%r " |
318 | - "is_dir=%r" % (mdid, share_id, node_id, parent_id, path, is_dir)) |
319 | + "is_dir=%r" % ( |
320 | + mdid, share_id, node_id, parent_id, path, is_dir)) |
321 | if not something: |
322 | print " (empty)" |
323 | |
324 | |
325 | === renamed directory 'ubuntuone' => 'magicicadaclient' |
326 | === modified file 'magicicadaclient/keyring.py' |
327 | --- ubuntuone/keyring.py 2016-05-31 21:43:25 +0000 |
328 | +++ magicicadaclient/keyring.py 2018-05-19 20:49:48 +0000 |
329 | @@ -44,9 +44,9 @@ |
330 | |
331 | from twisted.internet.defer import inlineCallbacks, returnValue |
332 | |
333 | -from ubuntuone.clientdefs import NAME |
334 | -from ubuntuone.utils import compat |
335 | -from ubuntuone.utils.txsecrets import SecretService |
336 | +from magicicadaclient.clientdefs import NAME |
337 | +from magicicadaclient.utils import compat |
338 | +from magicicadaclient.utils.txsecrets import SecretService |
339 | |
340 | |
341 | logger = logging.getLogger(__name__) |
342 | |
343 | === modified file 'magicicadaclient/networkstate/__init__.py' |
344 | --- ubuntuone/networkstate/__init__.py 2016-05-29 00:50:05 +0000 |
345 | +++ magicicadaclient/networkstate/__init__.py 2018-05-19 20:49:48 +0000 |
346 | @@ -42,13 +42,13 @@ |
347 | |
348 | |
349 | if sys.platform == 'win32': |
350 | - from ubuntuone.networkstate import windows |
351 | + from magicicadaclient.networkstate import windows |
352 | networksource = windows |
353 | elif sys.platform == 'darwin': |
354 | - from ubuntuone.networkstate import darwin |
355 | + from magicicadaclient.networkstate import darwin |
356 | networksource = darwin |
357 | else: |
358 | - from ubuntuone.networkstate import linux |
359 | + from magicicadaclient.networkstate import linux |
360 | networksource = linux |
361 | |
362 | NetworkManagerState = networksource.NetworkManagerState |
363 | |
364 | === modified file 'magicicadaclient/networkstate/darwin.py' |
365 | --- ubuntuone/networkstate/darwin.py 2016-05-31 21:43:25 +0000 |
366 | +++ magicicadaclient/networkstate/darwin.py 2018-05-19 20:49:48 +0000 |
367 | @@ -39,8 +39,8 @@ |
368 | |
369 | from twisted.internet import defer |
370 | |
371 | -from ubuntuone.networkstate import NetworkFailException |
372 | -from ubuntuone.networkstate.networkstates import (ONLINE, OFFLINE, UNKNOWN) |
373 | +from magicicadaclient.networkstate import NetworkFailException |
374 | +from magicicadaclient.networkstate.networkstates import (ONLINE, OFFLINE, UNKNOWN) |
375 | |
376 | |
377 | from ctypes.util import find_library |
378 | |
379 | === modified file 'magicicadaclient/networkstate/linux.py' |
380 | --- ubuntuone/networkstate/linux.py 2016-05-31 21:43:25 +0000 |
381 | +++ magicicadaclient/networkstate/linux.py 2018-05-19 20:49:48 +0000 |
382 | @@ -35,8 +35,8 @@ |
383 | |
384 | from twisted.internet import defer |
385 | |
386 | -from ubuntuone.networkstate import NetworkFailException |
387 | -from ubuntuone.networkstate.networkstates import ( |
388 | +from magicicadaclient.networkstate import NetworkFailException |
389 | +from magicicadaclient.networkstate.networkstates import ( |
390 | ONLINE, OFFLINE, |
391 | NM_STATE_CONNECTING_LIST, |
392 | NM_STATE_CONNECTED_LIST, |
393 | |
394 | === modified file 'magicicadaclient/networkstate/tests/test_darwin.py' |
395 | --- ubuntuone/networkstate/tests/test_darwin.py 2016-06-03 19:52:03 +0000 |
396 | +++ magicicadaclient/networkstate/tests/test_darwin.py 2018-05-19 20:49:48 +0000 |
397 | @@ -32,19 +32,19 @@ |
398 | |
399 | from twisted.internet.defer import inlineCallbacks |
400 | |
401 | -from ubuntuone.networkstate import ( |
402 | +from magicicadaclient.networkstate import ( |
403 | darwin, |
404 | NetworkFailException, |
405 | ) |
406 | -from ubuntuone.networkstate.darwin import ( |
407 | +from magicicadaclient.networkstate.darwin import ( |
408 | NetworkManagerState, |
409 | flags_say_reachable, |
410 | is_machine_connected, |
411 | ) |
412 | -from ubuntuone.networkstate.networkstates import ( |
413 | +from magicicadaclient.networkstate.networkstates import ( |
414 | ONLINE, OFFLINE, UNKNOWN, |
415 | ) |
416 | -from ubuntuone.tests import TestCase |
417 | +from magicicadaclient.tests import TestCase |
418 | |
419 | |
420 | REACHABLE_FLAG = 1 << 1 |
421 | |
422 | === modified file 'magicicadaclient/networkstate/tests/test_linux.py' |
423 | --- ubuntuone/networkstate/tests/test_linux.py 2016-06-03 19:52:03 +0000 |
424 | +++ magicicadaclient/networkstate/tests/test_linux.py 2018-05-19 20:49:48 +0000 |
425 | @@ -35,17 +35,17 @@ |
426 | from twisted.internet.defer import inlineCallbacks |
427 | from mocker import ARGS, KWARGS, ANY, MockerTestCase |
428 | |
429 | -from ubuntuone.networkstate import ( |
430 | +from magicicadaclient.networkstate import ( |
431 | linux, |
432 | NetworkFailException, |
433 | NetworkManagerState, |
434 | ) |
435 | -from ubuntuone.networkstate.linux import ( |
436 | +from magicicadaclient.networkstate.linux import ( |
437 | is_machine_connected, |
438 | NM_DBUS_INTERFACE, |
439 | NM_DBUS_OBJECTPATH, |
440 | ) |
441 | -from ubuntuone.networkstate.networkstates import ( |
442 | +from magicicadaclient.networkstate.networkstates import ( |
443 | ONLINE, OFFLINE, UNKNOWN, |
444 | NM_STATE_ASLEEP, |
445 | NM_STATE_ASLEEP_OLD, |
446 | @@ -59,7 +59,7 @@ |
447 | NM_STATE_DISCONNECTED_OLD, |
448 | NM_STATE_UNKNOWN, |
449 | ) |
450 | -from ubuntuone.tests import TestCase |
451 | +from magicicadaclient.tests import TestCase |
452 | |
453 | |
454 | class TestException(Exception): |
455 | |
456 | === modified file 'magicicadaclient/networkstate/tests/test_windows.py' |
457 | --- ubuntuone/networkstate/tests/test_windows.py 2016-05-29 00:50:05 +0000 |
458 | +++ magicicadaclient/networkstate/tests/test_windows.py 2018-05-19 20:49:48 +0000 |
459 | @@ -34,14 +34,14 @@ |
460 | from mocker import MockerTestCase |
461 | from twisted.internet.defer import inlineCallbacks |
462 | |
463 | -from ubuntuone.networkstate import NetworkFailException |
464 | -from ubuntuone.networkstate.windows import ( |
465 | +from magicicadaclient.networkstate import NetworkFailException |
466 | +from magicicadaclient.networkstate.windows import ( |
467 | is_machine_connected, |
468 | NetworkManager, |
469 | NetworkManagerState, |
470 | ONLINE, |
471 | OFFLINE) |
472 | -from ubuntuone.tests import TestCase |
473 | +from magicicadaclient.tests import TestCase |
474 | |
475 | |
476 | class TestNetworkManager(MockerTestCase): |
477 | |
478 | === modified file 'magicicadaclient/networkstate/windows.py' |
479 | --- ubuntuone/networkstate/windows.py 2016-05-31 21:43:25 +0000 |
480 | +++ magicicadaclient/networkstate/windows.py 2018-05-19 20:49:48 +0000 |
481 | @@ -42,8 +42,8 @@ |
482 | from win32com.server.policy import DesignatedWrapPolicy |
483 | from win32com.client import Dispatch |
484 | |
485 | -from ubuntuone.networkstate import NetworkFailException |
486 | -from ubuntuone.networkstate.networkstates import ONLINE, OFFLINE |
487 | +from magicicadaclient.networkstate import NetworkFailException |
488 | +from magicicadaclient.networkstate.networkstates import ONLINE, OFFLINE |
489 | |
490 | |
491 | logger = logging.getLogger(__name__) |
492 | |
493 | === modified file 'magicicadaclient/platform/__init__.py' |
494 | --- ubuntuone/platform/__init__.py 2016-06-01 18:28:19 +0000 |
495 | +++ magicicadaclient/platform/__init__.py 2018-05-19 20:49:48 +0000 |
496 | @@ -33,9 +33,9 @@ |
497 | |
498 | from dirspec.utils import user_home |
499 | |
500 | -from ubuntuone.platform import ipc |
501 | -from ubuntuone.platform import logger |
502 | -from ubuntuone.platform import os_helper |
503 | +from magicicadaclient.platform import ipc |
504 | +from magicicadaclient.platform import logger |
505 | +from magicicadaclient.platform import os_helper |
506 | |
507 | |
508 | # define a platform string separate from sys.platform to be sent to |
509 | |
510 | === modified file 'magicicadaclient/platform/filesystem_notifications/__init__.py' |
511 | --- ubuntuone/platform/filesystem_notifications/__init__.py 2012-07-31 08:26:30 +0000 |
512 | +++ magicicadaclient/platform/filesystem_notifications/__init__.py 2018-05-19 20:49:48 +0000 |
513 | @@ -28,7 +28,7 @@ |
514 | # files in the program, then also delete it here. |
515 | """File System Notification module.""" |
516 | |
517 | -from ubuntuone.platform.filesystem_notifications import ( |
518 | +from magicicadaclient.platform.filesystem_notifications import ( |
519 | notify_processor, |
520 | ) |
521 | |
522 | |
523 | === modified file 'magicicadaclient/platform/filesystem_notifications/monitor/__init__.py' |
524 | --- ubuntuone/platform/filesystem_notifications/monitor/__init__.py 2015-09-19 23:15:50 +0000 |
525 | +++ magicicadaclient/platform/filesystem_notifications/monitor/__init__.py 2018-05-19 20:49:48 +0000 |
526 | @@ -43,7 +43,7 @@ |
527 | |
528 | |
529 | if sys.platform == 'win32': |
530 | - from ubuntuone.platform.filesystem_notifications.monitor import ( |
531 | + from magicicadaclient.platform.filesystem_notifications.monitor import ( |
532 | common, |
533 | windows, |
534 | ) |
535 | @@ -54,8 +54,8 @@ |
536 | ACTIONS = windows.ACTIONS |
537 | |
538 | elif sys.platform == 'darwin': |
539 | - from ubuntuone.platform.filesystem_notifications.monitor import darwin |
540 | - from ubuntuone.platform.filesystem_notifications.monitor import ( |
541 | + from magicicadaclient.platform.filesystem_notifications.monitor import darwin |
542 | + from magicicadaclient.platform.filesystem_notifications.monitor import ( |
543 | common, |
544 | ) |
545 | |
546 | @@ -65,7 +65,7 @@ |
547 | } |
548 | ACTIONS = darwin.fsevents_client.ACTIONS |
549 | else: |
550 | - from ubuntuone.platform.filesystem_notifications.monitor import ( |
551 | + from magicicadaclient.platform.filesystem_notifications.monitor import ( |
552 | linux, |
553 | ) |
554 | |
555 | |
556 | === modified file 'magicicadaclient/platform/filesystem_notifications/monitor/common.py' |
557 | --- ubuntuone/platform/filesystem_notifications/monitor/common.py 2016-05-31 21:43:25 +0000 |
558 | +++ magicicadaclient/platform/filesystem_notifications/monitor/common.py 2018-05-19 20:49:48 +0000 |
559 | @@ -34,8 +34,8 @@ |
560 | |
561 | from twisted.internet import defer |
562 | |
563 | -from ubuntuone.platform.filesystem_notifications import notify_processor |
564 | -from ubuntuone.platform.filesystem_notifications.pyinotify_agnostic import ( |
565 | +from magicicadaclient.platform.filesystem_notifications import notify_processor |
566 | +from magicicadaclient.platform.filesystem_notifications.pyinotify_agnostic import ( |
567 | Event, |
568 | WatchManagerError, |
569 | IN_CREATE, |
570 | @@ -45,9 +45,9 @@ |
571 | IN_MOVED_TO, |
572 | ) |
573 | |
574 | -from ubuntuone import logger |
575 | +from magicicadaclient import logger |
576 | |
577 | -from ubuntuone.platform.os_helper import ( |
578 | +from magicicadaclient.platform.os_helper import ( |
579 | is_valid_syncdaemon_path, |
580 | is_valid_os_path, |
581 | os_path, |
582 | @@ -55,12 +55,12 @@ |
583 | |
584 | |
585 | if sys.platform == 'darwin': |
586 | - from ubuntuone.platform.filesystem_notifications.monitor.darwin import ( |
587 | + from magicicadaclient.platform.filesystem_notifications.monitor.darwin import ( |
588 | fsevents_client, |
589 | ) |
590 | source = fsevents_client |
591 | elif sys.platform == 'win32': |
592 | - from ubuntuone.platform.filesystem_notifications.monitor import windows |
593 | + from magicicadaclient.platform.filesystem_notifications.monitor import windows |
594 | source = windows |
595 | else: |
596 | raise ImportError('Not supported platform') |
597 | |
598 | === modified file 'magicicadaclient/platform/filesystem_notifications/monitor/darwin/__init__.py' |
599 | --- ubuntuone/platform/filesystem_notifications/monitor/darwin/__init__.py 2012-07-16 15:52:58 +0000 |
600 | +++ magicicadaclient/platform/filesystem_notifications/monitor/darwin/__init__.py 2018-05-19 20:49:48 +0000 |
601 | @@ -28,7 +28,7 @@ |
602 | # files in the program, then also delete it here. |
603 | """Filesystem Notifications module for MAC OS.""" |
604 | |
605 | -from ubuntuone.platform.filesystem_notifications.monitor.darwin import ( |
606 | +from magicicadaclient.platform.filesystem_notifications.monitor.darwin import ( |
607 | fsevents_daemon, |
608 | ) |
609 | |
610 | |
611 | === modified file 'magicicadaclient/platform/filesystem_notifications/monitor/darwin/fsevents_client.py' |
612 | --- ubuntuone/platform/filesystem_notifications/monitor/darwin/fsevents_client.py 2015-09-19 23:15:50 +0000 |
613 | +++ magicicadaclient/platform/filesystem_notifications/monitor/darwin/fsevents_client.py 2018-05-19 20:49:48 +0000 |
614 | @@ -33,7 +33,7 @@ |
615 | import fsevents |
616 | from twisted.internet import defer, reactor |
617 | |
618 | -from ubuntuone.platform.filesystem_notifications.pyinotify_agnostic import ( |
619 | +from magicicadaclient.platform.filesystem_notifications.pyinotify_agnostic import ( |
620 | IN_DELETE, |
621 | IN_CREATE, |
622 | IN_MODIFY, |
623 | |
624 | === modified file 'magicicadaclient/platform/filesystem_notifications/monitor/darwin/fsevents_daemon.py' |
625 | --- ubuntuone/platform/filesystem_notifications/monitor/darwin/fsevents_daemon.py 2016-05-29 00:50:05 +0000 |
626 | +++ magicicadaclient/platform/filesystem_notifications/monitor/darwin/fsevents_daemon.py 2018-05-19 20:49:48 +0000 |
627 | @@ -35,12 +35,12 @@ |
628 | |
629 | from twisted.internet import defer, endpoints, reactor |
630 | |
631 | -from ubuntuone import logger |
632 | -from ubuntuone import fseventsd |
633 | -from ubuntuone.platform.filesystem_notifications.notify_processor import ( |
634 | +from magicicadaclient import logger |
635 | +from magicicadaclient import fseventsd |
636 | +from magicicadaclient.platform.filesystem_notifications.notify_processor import ( |
637 | NotifyProcessor, |
638 | ) |
639 | -from ubuntuone.platform.filesystem_notifications.pyinotify_agnostic import ( |
640 | +from magicicadaclient.platform.filesystem_notifications.pyinotify_agnostic import ( |
641 | Event, |
642 | IN_OPEN, |
643 | IN_CLOSE_NOWRITE, |
644 | @@ -52,7 +52,7 @@ |
645 | IN_MOVED_TO, |
646 | IN_MODIFY, |
647 | ) |
648 | -from ubuntuone.utils.tcpactivation import ( |
649 | +from magicicadaclient.utils.tcpactivation import ( |
650 | ActivationConfig, |
651 | ActivationInstance, |
652 | AlreadyStartedError, |
653 | |
654 | === modified file 'magicicadaclient/platform/filesystem_notifications/monitor/linux.py' |
655 | --- ubuntuone/platform/filesystem_notifications/monitor/linux.py 2016-09-17 14:29:53 +0000 |
656 | +++ magicicadaclient/platform/filesystem_notifications/monitor/linux.py 2018-05-19 20:49:48 +0000 |
657 | @@ -35,8 +35,8 @@ |
658 | import pyinotify |
659 | from twisted.internet import abstract, reactor, defer |
660 | |
661 | -from ubuntuone.platform.os_helper import access |
662 | -from ubuntuone.platform.filesystem_notifications import notify_processor |
663 | +from magicicadaclient.platform.os_helper import access |
664 | +from magicicadaclient.platform.filesystem_notifications import notify_processor |
665 | |
666 | |
667 | # translates quickly the event and it's is_dir state to our standard events |
668 | |
669 | === modified file 'magicicadaclient/platform/filesystem_notifications/monitor/windows.py' |
670 | --- ubuntuone/platform/filesystem_notifications/monitor/windows.py 2015-09-19 23:15:50 +0000 |
671 | +++ magicicadaclient/platform/filesystem_notifications/monitor/windows.py 2018-05-19 20:49:48 +0000 |
672 | @@ -63,11 +63,11 @@ |
673 | WaitForMultipleObjects, |
674 | WAIT_OBJECT_0) |
675 | |
676 | -from ubuntuone.platform.os_helper.windows import ( |
677 | +from magicicadaclient.platform.os_helper.windows import ( |
678 | get_syncdaemon_valid_path, |
679 | ) |
680 | |
681 | -from ubuntuone.platform.filesystem_notifications.pyinotify_agnostic import ( |
682 | +from magicicadaclient.platform.filesystem_notifications.pyinotify_agnostic import ( |
683 | IN_CREATE, |
684 | IN_DELETE, |
685 | IN_MODIFY, |
686 | |
687 | === modified file 'magicicadaclient/platform/filesystem_notifications/notify_processor/__init__.py' |
688 | --- ubuntuone/platform/filesystem_notifications/notify_processor/__init__.py 2012-07-13 11:26:31 +0000 |
689 | +++ magicicadaclient/platform/filesystem_notifications/notify_processor/__init__.py 2018-05-19 20:49:48 +0000 |
690 | @@ -31,13 +31,13 @@ |
691 | import sys |
692 | |
693 | if sys.platform in ('win32', 'darwin'): |
694 | - from ubuntuone.platform.filesystem_notifications.notify_processor import ( |
695 | + from magicicadaclient.platform.filesystem_notifications.notify_processor import ( |
696 | common, |
697 | ) |
698 | # workaround due to pyflakes :( |
699 | source = common |
700 | else: |
701 | - from ubuntuone.platform.filesystem_notifications.notify_processor import ( |
702 | + from magicicadaclient.platform.filesystem_notifications.notify_processor import ( |
703 | linux, |
704 | ) |
705 | # workaround due to pyflakes :( |
706 | |
707 | === modified file 'magicicadaclient/platform/filesystem_notifications/notify_processor/common.py' |
708 | --- ubuntuone/platform/filesystem_notifications/notify_processor/common.py 2015-09-19 23:15:50 +0000 |
709 | +++ magicicadaclient/platform/filesystem_notifications/notify_processor/common.py 2018-05-19 20:49:48 +0000 |
710 | @@ -31,10 +31,10 @@ |
711 | import os |
712 | import sys |
713 | |
714 | -from ubuntuone.syncdaemon.filesystem_notifications import ( |
715 | +from magicicadaclient.syncdaemon.filesystem_notifications import ( |
716 | GeneralINotifyProcessor, |
717 | ) |
718 | -from ubuntuone.platform.filesystem_notifications.pyinotify_agnostic import ( |
719 | +from magicicadaclient.platform.filesystem_notifications.pyinotify_agnostic import ( |
720 | Event, |
721 | ProcessEvent, |
722 | IN_OPEN, |
723 | @@ -48,7 +48,7 @@ |
724 | IN_MOVED_TO, |
725 | ) |
726 | |
727 | -from ubuntuone.platform.os_helper import ( |
728 | +from magicicadaclient.platform.os_helper import ( |
729 | is_valid_syncdaemon_path, |
730 | ) |
731 | |
732 | |
733 | === modified file 'magicicadaclient/platform/filesystem_notifications/notify_processor/linux.py' |
734 | --- ubuntuone/platform/filesystem_notifications/notify_processor/linux.py 2016-06-01 18:28:19 +0000 |
735 | +++ magicicadaclient/platform/filesystem_notifications/notify_processor/linux.py 2018-05-19 20:49:48 +0000 |
736 | @@ -33,7 +33,7 @@ |
737 | import pyinotify |
738 | from twisted.internet import reactor, error |
739 | |
740 | -from ubuntuone.syncdaemon.filesystem_notifications import ( |
741 | +from magicicadaclient.syncdaemon.filesystem_notifications import ( |
742 | GeneralINotifyProcessor, |
743 | ) |
744 | |
745 | |
746 | === modified file 'magicicadaclient/platform/ipc/__init__.py' |
747 | --- ubuntuone/platform/ipc/__init__.py 2012-07-09 22:31:16 +0000 |
748 | +++ magicicadaclient/platform/ipc/__init__.py 2018-05-19 20:49:48 +0000 |
749 | @@ -32,10 +32,10 @@ |
750 | |
751 | |
752 | if sys.platform in ('win32', 'darwin'): |
753 | - from ubuntuone.platform.ipc import perspective_broker as source |
754 | + from magicicadaclient.platform.ipc import perspective_broker as source |
755 | ExternalInterface = source.IPCInterface |
756 | else: |
757 | - from ubuntuone.platform.ipc import linux as source |
758 | + from magicicadaclient.platform.ipc import linux as source |
759 | ExternalInterface = source.DBusInterface |
760 | |
761 | |
762 | |
763 | === modified file 'magicicadaclient/platform/ipc/ipc_client.py' |
764 | --- ubuntuone/platform/ipc/ipc_client.py 2018-04-23 02:21:03 +0000 |
765 | +++ magicicadaclient/platform/ipc/ipc_client.py 2018-05-19 20:49:48 +0000 |
766 | @@ -35,7 +35,7 @@ |
767 | from twisted.internet import defer |
768 | from twisted.spread.pb import Referenceable, PBClientFactory |
769 | |
770 | -from ubuntuone.platform.ipc.perspective_broker import ( |
771 | +from magicicadaclient.platform.ipc.perspective_broker import ( |
772 | RemoteMeta, |
773 | ipc_client_connect, |
774 | ) |
775 | |
776 | === modified file 'magicicadaclient/platform/ipc/linux.py' |
777 | --- ubuntuone/platform/ipc/linux.py 2018-04-23 02:21:03 +0000 |
778 | +++ magicicadaclient/platform/ipc/linux.py 2018-05-19 20:49:48 +0000 |
779 | @@ -38,7 +38,7 @@ |
780 | from twisted.internet import defer |
781 | from xml.etree import ElementTree |
782 | |
783 | -from ubuntuone.platform import launcher |
784 | +from magicicadaclient.platform import launcher |
785 | |
786 | # Disable the "Invalid Name" check here, as we have lots of DBus style names |
787 | |
788 | |
789 | === modified file 'magicicadaclient/platform/ipc/perspective_broker.py' |
790 | --- ubuntuone/platform/ipc/perspective_broker.py 2018-04-23 02:21:03 +0000 |
791 | +++ magicicadaclient/platform/ipc/perspective_broker.py 2018-05-19 20:49:48 +0000 |
792 | @@ -45,8 +45,8 @@ |
793 | Root, |
794 | ) |
795 | |
796 | -from ubuntuone.syncdaemon.utils import get_sd_bin_cmd |
797 | -from ubuntuone.utils.tcpactivation import ( |
798 | +from magicicadaclient.syncdaemon.utils import get_sd_bin_cmd |
799 | +from magicicadaclient.utils.tcpactivation import ( |
800 | ActivationClient, |
801 | ActivationConfig, |
802 | ActivationInstance, |
803 | @@ -55,10 +55,10 @@ |
804 | |
805 | # we do not do from package import as source becauser pyflakes will complain |
806 | if sys.platform == 'win32': |
807 | - from ubuntuone.platform.ipc import windows |
808 | + from magicicadaclient.platform.ipc import windows |
809 | source = windows |
810 | else: |
811 | - from ubuntuone.platform.ipc import unix |
812 | + from magicicadaclient.platform.ipc import unix |
813 | source = unix |
814 | |
815 | DescriptionFactory = source.DescriptionFactory |
816 | |
817 | === modified file 'magicicadaclient/platform/launcher/__init__.py' |
818 | --- ubuntuone/platform/launcher/__init__.py 2016-05-29 00:50:05 +0000 |
819 | +++ magicicadaclient/platform/launcher/__init__.py 2018-05-19 20:49:48 +0000 |
820 | @@ -32,10 +32,10 @@ |
821 | |
822 | |
823 | if sys.platform == "win32": |
824 | - from ubuntuone.platform.launcher import windows |
825 | + from magicicadaclient.platform.launcher import windows |
826 | source = windows |
827 | else: |
828 | - from ubuntuone.platform.launcher import linux |
829 | + from magicicadaclient.platform.launcher import linux |
830 | source = linux |
831 | |
832 | CONTORLPANEL_DOTDESKTOP = source.CONTROLPANEL_DOTDESKTOP |
833 | |
834 | === modified file 'magicicadaclient/platform/launcher/linux.py' |
835 | --- ubuntuone/platform/launcher/linux.py 2016-07-30 19:37:05 +0000 |
836 | +++ magicicadaclient/platform/launcher/linux.py 2018-05-19 20:49:48 +0000 |
837 | @@ -1,4 +1,4 @@ |
838 | -# ubuntuone.platform.launcher.linux |
839 | +# magicicadaclient.platform.launcher.linux |
840 | # |
841 | # Author: Alejandro J. Cura <alecu@canonical.com> |
842 | # |
843 | |
844 | === modified file 'magicicadaclient/platform/launcher/windows.py' |
845 | --- ubuntuone/platform/launcher/windows.py 2016-05-29 00:50:05 +0000 |
846 | +++ magicicadaclient/platform/launcher/windows.py 2018-05-19 20:49:48 +0000 |
847 | @@ -1,4 +1,4 @@ |
848 | -# ubuntuone.platform.launcher.windows |
849 | +# magicicadaclient.platform.launcher.windows |
850 | # |
851 | # Author: Alejandro J. Cura <alecu@canonical.com> |
852 | # |
853 | |
854 | === modified file 'magicicadaclient/platform/logger/__init__.py' |
855 | --- ubuntuone/platform/logger/__init__.py 2012-06-21 18:58:50 +0000 |
856 | +++ magicicadaclient/platform/logger/__init__.py 2018-05-19 20:49:48 +0000 |
857 | @@ -34,13 +34,13 @@ |
858 | from dirspec.basedir import xdg_cache_home |
859 | |
860 | if sys.platform == "win32": |
861 | - from ubuntuone.platform.logger import windows |
862 | + from magicicadaclient.platform.logger import windows |
863 | source = windows |
864 | elif sys.platform == "darwin": |
865 | - from ubuntuone.platform.logger import darwin |
866 | + from magicicadaclient.platform.logger import darwin |
867 | source = darwin |
868 | else: |
869 | - from ubuntuone.platform.logger import linux |
870 | + from magicicadaclient.platform.logger import linux |
871 | source = linux |
872 | |
873 | |
874 | |
875 | === modified file 'magicicadaclient/platform/os_helper/__init__.py' |
876 | --- ubuntuone/platform/os_helper/__init__.py 2013-02-10 22:54:07 +0000 |
877 | +++ magicicadaclient/platform/os_helper/__init__.py 2018-05-19 20:49:48 +0000 |
878 | @@ -32,13 +32,13 @@ |
879 | |
880 | |
881 | if sys.platform == "win32": |
882 | - from ubuntuone.platform.os_helper import windows |
883 | + from magicicadaclient.platform.os_helper import windows |
884 | source = windows |
885 | elif sys.platform == "darwin": |
886 | - from ubuntuone.platform.os_helper import darwin |
887 | + from magicicadaclient.platform.os_helper import darwin |
888 | source = darwin |
889 | else: |
890 | - from ubuntuone.platform.os_helper import linux |
891 | + from magicicadaclient.platform.os_helper import linux |
892 | source = linux |
893 | |
894 | set_no_rights = source.set_no_rights |
895 | |
896 | === modified file 'magicicadaclient/platform/os_helper/darwin.py' |
897 | --- ubuntuone/platform/os_helper/darwin.py 2013-02-10 22:54:07 +0000 |
898 | +++ magicicadaclient/platform/os_helper/darwin.py 2018-05-19 20:49:48 +0000 |
899 | @@ -1,4 +1,4 @@ |
900 | -# ubuntuone.platform.os_helper - darwin platform imports |
901 | +# magicicadaclient.platform.os_helper - darwin platform imports |
902 | # |
903 | # Copyright 2012 Canonical Ltd. |
904 | # |
905 | @@ -39,7 +39,7 @@ |
906 | import shutil |
907 | import unicodedata |
908 | |
909 | -from ubuntuone.platform.os_helper import unix |
910 | +from magicicadaclient.platform.os_helper import unix |
911 | |
912 | platform = "darwin" |
913 | |
914 | |
915 | === modified file 'magicicadaclient/platform/os_helper/linux.py' |
916 | --- ubuntuone/platform/os_helper/linux.py 2018-03-18 11:59:08 +0000 |
917 | +++ magicicadaclient/platform/os_helper/linux.py 2018-05-19 20:49:48 +0000 |
918 | @@ -43,7 +43,7 @@ |
919 | has_gi = False |
920 | from send2trash import send2trash |
921 | |
922 | -from ubuntuone.platform.os_helper import unix |
923 | +from magicicadaclient.platform.os_helper import unix |
924 | |
925 | platform = "linux2" |
926 | |
927 | |
928 | === modified file 'magicicadaclient/platform/session/__init__.py' |
929 | --- ubuntuone/platform/session/__init__.py 2016-05-29 00:50:05 +0000 |
930 | +++ magicicadaclient/platform/session/__init__.py 2018-05-19 20:49:48 +0000 |
931 | @@ -39,13 +39,13 @@ |
932 | |
933 | |
934 | if sys.platform == "win32": |
935 | - from ubuntuone.platform.session import windows |
936 | + from magicicadaclient.platform.session import windows |
937 | source = windows |
938 | elif sys.platform == "darwin": |
939 | - from ubuntuone.platform.session import darwin |
940 | + from magicicadaclient.platform.session import darwin |
941 | source = darwin |
942 | else: |
943 | - from ubuntuone.platform.session import linux |
944 | + from magicicadaclient.platform.session import linux |
945 | source = linux |
946 | SESSION_MANAGER_BUSNAME = source.SESSION_MANAGER_BUSNAME |
947 | SESSION_MANAGER_IFACE = source.SESSION_MANAGER_IFACE |
948 | |
949 | === modified file 'magicicadaclient/platform/session/linux.py' |
950 | --- ubuntuone/platform/session/linux.py 2016-05-29 00:50:05 +0000 |
951 | +++ magicicadaclient/platform/session/linux.py 2018-05-19 20:49:48 +0000 |
952 | @@ -32,7 +32,7 @@ |
953 | |
954 | from twisted.internet import defer |
955 | |
956 | -from ubuntuone.clientdefs import NAME |
957 | +from magicicadaclient.clientdefs import NAME |
958 | |
959 | SESSION_MANAGER_BUSNAME = "org.gnome.SessionManager" |
960 | SESSION_MANAGER_IFACE = "org.gnome.SessionManager" |
961 | |
962 | === modified file 'magicicadaclient/platform/tests/__init__.py' |
963 | --- ubuntuone/platform/tests/__init__.py 2016-05-29 19:15:01 +0000 |
964 | +++ magicicadaclient/platform/tests/__init__.py 2018-05-19 20:49:48 +0000 |
965 | @@ -28,10 +28,10 @@ |
966 | import sys |
967 | |
968 | if sys.platform.startswith('linux'): |
969 | - from ubuntuone.platform.tests.ipc import test_linux |
970 | + from magicicadaclient.platform.tests.ipc import test_linux |
971 | ipc_source = test_linux |
972 | else: |
973 | - from ubuntuone.platform.tests.ipc import test_perspective_broker |
974 | + from magicicadaclient.platform.tests.ipc import test_perspective_broker |
975 | ipc_source = test_perspective_broker |
976 | |
977 | IPCTestCase = ipc_source.IPCTestCase |
978 | |
979 | === modified file 'magicicadaclient/platform/tests/filesystem_notifications/__init__.py' |
980 | --- ubuntuone/platform/tests/filesystem_notifications/__init__.py 2016-09-17 14:29:53 +0000 |
981 | +++ magicicadaclient/platform/tests/filesystem_notifications/__init__.py 2018-05-19 20:49:48 +0000 |
982 | @@ -30,10 +30,10 @@ |
983 | |
984 | from twisted.internet import defer, reactor |
985 | |
986 | -from contrib.testing import testcase |
987 | +from magicicadaclient.testing import testcase |
988 | from ubuntuone.devtools.handlers import MementoHandler |
989 | -from ubuntuone.syncdaemon import event_queue, filesystem_manager |
990 | -from ubuntuone.syncdaemon.tritcask import Tritcask |
991 | +from magicicadaclient.syncdaemon import event_queue, filesystem_manager |
992 | +from magicicadaclient.syncdaemon.tritcask import Tritcask |
993 | |
994 | |
995 | class BaseFSMonitorTestCase(testcase.BaseTwistedTestCase): |
996 | |
997 | === modified file 'magicicadaclient/platform/tests/filesystem_notifications/common.py' |
998 | --- ubuntuone/platform/tests/filesystem_notifications/common.py 2016-06-01 18:28:19 +0000 |
999 | +++ magicicadaclient/platform/tests/filesystem_notifications/common.py 2018-05-19 20:49:48 +0000 |
1000 | @@ -38,9 +38,9 @@ |
1001 | import itertools |
1002 | |
1003 | from twisted.internet import defer |
1004 | -from contrib.testing.testcase import BaseTwistedTestCase |
1005 | +from magicicadaclient.testing.testcase import BaseTwistedTestCase |
1006 | from ubuntuone.devtools.handlers import MementoHandler |
1007 | -from ubuntuone.platform.filesystem_notifications.pyinotify_agnostic import ( |
1008 | +from magicicadaclient.platform.filesystem_notifications.pyinotify_agnostic import ( |
1009 | EventsCodes, |
1010 | ProcessEvent, |
1011 | IN_CLOSE_WRITE, |
1012 | @@ -48,14 +48,14 @@ |
1013 | IN_DELETE, |
1014 | IN_OPEN, |
1015 | ) |
1016 | -from ubuntuone.platform.filesystem_notifications import notify_processor |
1017 | -from ubuntuone.platform.filesystem_notifications.monitor.common import ( |
1018 | +from magicicadaclient.platform.filesystem_notifications import notify_processor |
1019 | +from magicicadaclient.platform.filesystem_notifications.monitor.common import ( |
1020 | FilesystemMonitor, |
1021 | Watch, |
1022 | WatchManager, |
1023 | ) |
1024 | -from ubuntuone.platform.filesystem_notifications.monitor import ACTIONS |
1025 | -from ubuntuone.platform.os_helper import get_os_valid_path |
1026 | +from magicicadaclient.platform.filesystem_notifications.monitor import ACTIONS |
1027 | +from magicicadaclient.platform.os_helper import get_os_valid_path |
1028 | |
1029 | OP_FLAGS = EventsCodes.FLAG_COLLECTIONS['OP_FLAGS'] |
1030 | IS_DIR = EventsCodes.FLAG_COLLECTIONS['SPECIAL_FLAGS']['IN_ISDIR'] |
1031 | |
1032 | === modified file 'magicicadaclient/platform/tests/filesystem_notifications/test_darwin.py' |
1033 | --- ubuntuone/platform/tests/filesystem_notifications/test_darwin.py 2016-06-01 18:28:19 +0000 |
1034 | +++ magicicadaclient/platform/tests/filesystem_notifications/test_darwin.py 2018-05-19 20:49:48 +0000 |
1035 | @@ -38,28 +38,28 @@ |
1036 | |
1037 | import fsevents |
1038 | |
1039 | -from contrib.testing.testcase import BaseTwistedTestCase |
1040 | +from magicicadaclient.testing.testcase import BaseTwistedTestCase |
1041 | |
1042 | from ubuntuone.devtools.handlers import MementoHandler |
1043 | -from ubuntuone.platform.filesystem_notifications.monitor import ( |
1044 | +from magicicadaclient.platform.filesystem_notifications.monitor import ( |
1045 | common, |
1046 | ) |
1047 | -from ubuntuone.platform.filesystem_notifications.monitor.darwin import ( |
1048 | +from magicicadaclient.platform.filesystem_notifications.monitor.darwin import ( |
1049 | fsevents_client as filesystem_notifications, |
1050 | ) |
1051 | -from ubuntuone.platform.filesystem_notifications import notify_processor |
1052 | -from ubuntuone.platform.filesystem_notifications.monitor.common import ( |
1053 | +from magicicadaclient.platform.filesystem_notifications import notify_processor |
1054 | +from magicicadaclient.platform.filesystem_notifications.monitor.common import ( |
1055 | Watch, |
1056 | WatchManager, |
1057 | ) |
1058 | -from ubuntuone.platform.filesystem_notifications.pyinotify_agnostic import ( |
1059 | +from magicicadaclient.platform.filesystem_notifications.pyinotify_agnostic import ( |
1060 | ProcessEvent, |
1061 | IN_CLOSE_WRITE, |
1062 | IN_CREATE, |
1063 | IN_DELETE, |
1064 | IN_OPEN, |
1065 | ) |
1066 | -from ubuntuone.platform.tests.filesystem_notifications import ( |
1067 | +from magicicadaclient.platform.tests.filesystem_notifications import ( |
1068 | BaseFSMonitorTestCase, |
1069 | common as common_tests, |
1070 | ) |
1071 | |
1072 | === modified file 'magicicadaclient/platform/tests/filesystem_notifications/test_filesystem_notifications.py' |
1073 | --- ubuntuone/platform/tests/filesystem_notifications/test_filesystem_notifications.py 2016-06-03 19:52:03 +0000 |
1074 | +++ magicicadaclient/platform/tests/filesystem_notifications/test_filesystem_notifications.py 2018-05-19 20:49:48 +0000 |
1075 | @@ -35,20 +35,20 @@ |
1076 | from twisted.trial import unittest |
1077 | from ubuntuone.devtools.handlers import MementoHandler |
1078 | |
1079 | -from contrib.testing.testcase import ( |
1080 | +from magicicadaclient.testing.testcase import ( |
1081 | BaseTwistedTestCase, |
1082 | FakeVolumeManager, |
1083 | skip_if_win32_missing_fs_event, |
1084 | skip_if_darwin_missing_fs_event, |
1085 | ) |
1086 | -from ubuntuone.platform import ( |
1087 | +from magicicadaclient.platform import ( |
1088 | remove_file, |
1089 | remove_dir, |
1090 | rename, |
1091 | ) |
1092 | -from ubuntuone.platform.filesystem_notifications import notify_processor |
1093 | -from ubuntuone.syncdaemon.tritcask import Tritcask |
1094 | -from ubuntuone.syncdaemon import ( |
1095 | +from magicicadaclient.platform.filesystem_notifications import notify_processor |
1096 | +from magicicadaclient.syncdaemon.tritcask import Tritcask |
1097 | +from magicicadaclient.syncdaemon import ( |
1098 | event_queue, |
1099 | filesystem_manager, |
1100 | filesystem_notifications, |
1101 | |
1102 | === modified file 'magicicadaclient/platform/tests/filesystem_notifications/test_fsevents_daemon.py' |
1103 | --- ubuntuone/platform/tests/filesystem_notifications/test_fsevents_daemon.py 2016-06-01 18:28:19 +0000 |
1104 | +++ magicicadaclient/platform/tests/filesystem_notifications/test_fsevents_daemon.py 2018-05-19 20:49:48 +0000 |
1105 | @@ -32,18 +32,18 @@ |
1106 | |
1107 | from twisted.internet import defer, protocol |
1108 | |
1109 | -from contrib.testing.testcase import BaseTwistedTestCase |
1110 | -from ubuntuone import fseventsd |
1111 | +from magicicadaclient.testing.testcase import BaseTwistedTestCase |
1112 | +from magicicadaclient import fseventsd |
1113 | try: |
1114 | from ubuntuone.devtools.testcases import skipIf |
1115 | from ubuntuone.devtools.testcases.txsocketserver import TidyUnixServer |
1116 | except ImportError: |
1117 | from ubuntuone.devtools.testcase import skipIf |
1118 | TidyUnixServer = None |
1119 | -from ubuntuone.platform.filesystem_notifications.monitor.darwin import ( |
1120 | +from magicicadaclient.platform.filesystem_notifications.monitor.darwin import ( |
1121 | fsevents_daemon, |
1122 | ) |
1123 | -from ubuntuone.platform.filesystem_notifications.pyinotify_agnostic import ( |
1124 | +from magicicadaclient.platform.filesystem_notifications.pyinotify_agnostic import ( |
1125 | IN_CREATE, |
1126 | IN_DELETE, |
1127 | IN_MODIFY, |
1128 | |
1129 | === modified file 'magicicadaclient/platform/tests/filesystem_notifications/test_linux.py' |
1130 | --- ubuntuone/platform/tests/filesystem_notifications/test_linux.py 2016-06-01 18:28:19 +0000 |
1131 | +++ magicicadaclient/platform/tests/filesystem_notifications/test_linux.py 2018-05-19 20:49:48 +0000 |
1132 | @@ -35,13 +35,13 @@ |
1133 | from twisted.internet import defer, reactor |
1134 | from twisted.trial.unittest import TestCase as PlainTestCase |
1135 | |
1136 | -from contrib.testing import testcase |
1137 | -from ubuntuone.syncdaemon import volume_manager |
1138 | -from ubuntuone.platform.filesystem_notifications import notify_processor |
1139 | -from ubuntuone.platform.filesystem_notifications.monitor import ( |
1140 | +from magicicadaclient.testing import testcase |
1141 | +from magicicadaclient.syncdaemon import volume_manager |
1142 | +from magicicadaclient.platform.filesystem_notifications import notify_processor |
1143 | +from magicicadaclient.platform.filesystem_notifications.monitor import ( |
1144 | linux as filesystem_notifications, |
1145 | ) |
1146 | -from ubuntuone.platform.tests.filesystem_notifications import ( |
1147 | +from magicicadaclient.platform.tests.filesystem_notifications import ( |
1148 | BaseFSMonitorTestCase, |
1149 | ) |
1150 | |
1151 | |
1152 | === modified file 'magicicadaclient/platform/tests/filesystem_notifications/test_pyinotify_agnostic.py' |
1153 | --- ubuntuone/platform/tests/filesystem_notifications/test_pyinotify_agnostic.py 2012-06-14 18:22:16 +0000 |
1154 | +++ magicicadaclient/platform/tests/filesystem_notifications/test_pyinotify_agnostic.py 2018-05-19 20:49:48 +0000 |
1155 | @@ -35,7 +35,7 @@ |
1156 | from twisted.internet import defer |
1157 | from twisted.trial.unittest import TestCase |
1158 | |
1159 | -from ubuntuone.platform.filesystem_notifications.pyinotify_agnostic import ( |
1160 | +from magicicadaclient.platform.filesystem_notifications.pyinotify_agnostic import ( |
1161 | RawOutputFormat) |
1162 | |
1163 | |
1164 | |
1165 | === modified file 'magicicadaclient/platform/tests/filesystem_notifications/test_windows.py' |
1166 | --- ubuntuone/platform/tests/filesystem_notifications/test_windows.py 2016-06-01 18:28:19 +0000 |
1167 | +++ magicicadaclient/platform/tests/filesystem_notifications/test_windows.py 2018-05-19 20:49:48 +0000 |
1168 | @@ -35,18 +35,18 @@ |
1169 | from twisted.internet import defer |
1170 | from win32file import FILE_NOTIFY_INFORMATION |
1171 | |
1172 | -from contrib.testing.testcase import BaseTwistedTestCase |
1173 | +from magicicadaclient.testing.testcase import BaseTwistedTestCase |
1174 | |
1175 | -from ubuntuone.platform.filesystem_notifications.monitor import ( |
1176 | +from magicicadaclient.platform.filesystem_notifications.monitor import ( |
1177 | common, |
1178 | windows as filesystem_notifications, |
1179 | ) |
1180 | -from ubuntuone.platform.filesystem_notifications.monitor.common import ( |
1181 | +from magicicadaclient.platform.filesystem_notifications.monitor.common import ( |
1182 | FilesystemMonitor, |
1183 | Watch, |
1184 | WatchManager, |
1185 | ) |
1186 | -from ubuntuone.platform.filesystem_notifications.monitor.windows import ( |
1187 | +from magicicadaclient.platform.filesystem_notifications.monitor.windows import ( |
1188 | FILE_NOTIFY_CHANGE_FILE_NAME, |
1189 | FILE_NOTIFY_CHANGE_DIR_NAME, |
1190 | FILE_NOTIFY_CHANGE_ATTRIBUTES, |
1191 | @@ -55,7 +55,7 @@ |
1192 | FILE_NOTIFY_CHANGE_SECURITY, |
1193 | FILE_NOTIFY_CHANGE_LAST_ACCESS, |
1194 | ) |
1195 | -from ubuntuone.platform.tests.filesystem_notifications import ( |
1196 | +from magicicadaclient.platform.tests.filesystem_notifications import ( |
1197 | common as common_tests, |
1198 | ) |
1199 | |
1200 | |
1201 | === modified file 'magicicadaclient/platform/tests/ipc/test_external_interface.py' |
1202 | --- ubuntuone/platform/tests/ipc/test_external_interface.py 2018-04-23 02:21:03 +0000 |
1203 | +++ magicicadaclient/platform/tests/ipc/test_external_interface.py 2018-05-19 20:49:48 +0000 |
1204 | @@ -31,7 +31,7 @@ |
1205 | |
1206 | from twisted.internet import defer |
1207 | |
1208 | -from ubuntuone.platform.tests import ( |
1209 | +from magicicadaclient.platform.tests import ( |
1210 | ConfigTestCase, |
1211 | EventsTestCase, |
1212 | FileSystemTestCase, |
1213 | |
1214 | === modified file 'magicicadaclient/platform/tests/ipc/test_linux.py' |
1215 | --- ubuntuone/platform/tests/ipc/test_linux.py 2016-07-30 21:58:48 +0000 |
1216 | +++ magicicadaclient/platform/tests/ipc/test_linux.py 2018-05-19 20:49:48 +0000 |
1217 | @@ -38,13 +38,13 @@ |
1218 | except ImportError: |
1219 | from ubuntuone.devtools.testcase import DBusTestCase |
1220 | |
1221 | -from contrib.testing.testcase import ( |
1222 | +from magicicadaclient.testing.testcase import ( |
1223 | FakeMainTestCase, |
1224 | FakedService, |
1225 | FakedObject, |
1226 | ) |
1227 | -from ubuntuone.platform.ipc import linux as dbus_interface |
1228 | -from ubuntuone.platform.ipc.linux import ( |
1229 | +from magicicadaclient.platform.ipc import linux as dbus_interface |
1230 | +from magicicadaclient.platform.ipc.linux import ( |
1231 | DBusExposedObject, |
1232 | DBUS_IFACE_STATUS_NAME, |
1233 | DBUS_IFACE_EVENTS_NAME, |
1234 | @@ -56,7 +56,7 @@ |
1235 | DBUS_IFACE_PUBLIC_FILES_NAME, |
1236 | DBUS_IFACE_LAUNCHER_NAME, |
1237 | ) |
1238 | -from ubuntuone.platform.tools.linux import DBusClient |
1239 | +from magicicadaclient.platform.tools.linux import DBusClient |
1240 | |
1241 | |
1242 | class FakeNetworkManager(DBusExposedObject): |
1243 | |
1244 | === modified file 'magicicadaclient/platform/tests/ipc/test_perspective_broker.py' |
1245 | --- ubuntuone/platform/tests/ipc/test_perspective_broker.py 2018-03-08 19:39:13 +0000 |
1246 | +++ magicicadaclient/platform/tests/ipc/test_perspective_broker.py 2018-05-19 20:49:48 +0000 |
1247 | @@ -41,7 +41,7 @@ |
1248 | ) |
1249 | from twisted.trial.unittest import TestCase |
1250 | |
1251 | -from contrib.testing.testcase import ( |
1252 | +from magicicadaclient.testing.testcase import ( |
1253 | FakedService, |
1254 | FakeMainTestCase, |
1255 | ) |
1256 | @@ -49,8 +49,8 @@ |
1257 | from ubuntuone.devtools.testcases import skipIf, skipIfOS |
1258 | except ImportError: |
1259 | from ubuntuone.devtools.testcase import skipIf, skipIfOS |
1260 | -from ubuntuone.platform.ipc import perspective_broker as ipc |
1261 | -from ubuntuone.platform.ipc.perspective_broker import ( |
1262 | +from magicicadaclient.platform.ipc import perspective_broker as ipc |
1263 | +from magicicadaclient.platform.ipc.perspective_broker import ( |
1264 | Config, |
1265 | Events, |
1266 | Folders, |
1267 | @@ -62,8 +62,8 @@ |
1268 | Status, |
1269 | SyncDaemon, |
1270 | ) |
1271 | -from ubuntuone.platform.ipc import ipc_client |
1272 | -from ubuntuone.platform.ipc.ipc_client import ( |
1273 | +from magicicadaclient.platform.ipc import ipc_client |
1274 | +from magicicadaclient.platform.ipc.ipc_client import ( |
1275 | signal, |
1276 | ConfigClient, |
1277 | EventsClient, |
1278 | @@ -75,11 +75,11 @@ |
1279 | SyncDaemonClient, |
1280 | SharesClient, |
1281 | ) |
1282 | -from ubuntuone.syncdaemon import interaction_interfaces |
1283 | +from magicicadaclient.syncdaemon import interaction_interfaces |
1284 | try: |
1285 | - from ubuntuone.networkstate.networkstates import ONLINE |
1286 | + from magicicadaclient.networkstate.networkstates import ONLINE |
1287 | except ImportError: |
1288 | - from ubuntuone.networkstate import ONLINE |
1289 | + from magicicadaclient.networkstate import ONLINE |
1290 | |
1291 | |
1292 | class NoTestCase(object): |
1293 | |
1294 | === modified file 'magicicadaclient/platform/tests/ipc/test_unix.py' |
1295 | --- ubuntuone/platform/tests/ipc/test_unix.py 2016-06-01 18:28:19 +0000 |
1296 | +++ magicicadaclient/platform/tests/ipc/test_unix.py 2018-05-19 20:49:48 +0000 |
1297 | @@ -30,7 +30,7 @@ |
1298 | |
1299 | from twisted.trial.unittest import TestCase |
1300 | |
1301 | -from ubuntuone.platform.ipc import unix |
1302 | +from magicicadaclient.platform.ipc import unix |
1303 | |
1304 | |
1305 | class DescriptionFactoryTestCase(TestCase): |
1306 | |
1307 | === modified file 'magicicadaclient/platform/tests/ipc/test_windows.py' |
1308 | --- ubuntuone/platform/tests/ipc/test_windows.py 2016-07-30 21:58:48 +0000 |
1309 | +++ magicicadaclient/platform/tests/ipc/test_windows.py 2018-05-19 20:49:48 +0000 |
1310 | @@ -30,7 +30,7 @@ |
1311 | |
1312 | from twisted.trial.unittest import TestCase |
1313 | |
1314 | -from ubuntuone.platform.ipc import windows |
1315 | +from magicicadaclient.platform.ipc import windows |
1316 | |
1317 | |
1318 | class IPCPortTestCase(TestCase): |
1319 | |
1320 | === modified file 'magicicadaclient/platform/tests/launcher/test_linux.py' |
1321 | --- ubuntuone/platform/tests/launcher/test_linux.py 2016-05-29 16:05:27 +0000 |
1322 | +++ magicicadaclient/platform/tests/launcher/test_linux.py 2018-05-19 20:49:48 +0000 |
1323 | @@ -1,8 +1,5 @@ |
1324 | -# tests.platform.linux.test_launcher |
1325 | -# |
1326 | -# Author: Alejandro J. Cura <alecu@canonical.com> |
1327 | -# |
1328 | # Copyright 2011-2012 Canonical Ltd. |
1329 | +# Copyright 2017-2018 Chicharreros (https://launchpad.net/~chicharreros) |
1330 | # |
1331 | # This program is free software: you can redistribute it and/or modify it |
1332 | # under the terms of the GNU General Public License version 3, as published |
1333 | @@ -33,7 +30,7 @@ |
1334 | from twisted.internet import defer |
1335 | from twisted.trial.unittest import TestCase |
1336 | |
1337 | -from ubuntuone.platform import launcher |
1338 | +from magicicadaclient.platform import launcher |
1339 | |
1340 | |
1341 | class FakeLauncherEntryProps(object): |
1342 | @@ -66,15 +63,15 @@ |
1343 | class LauncherTestCase(TestCase): |
1344 | """Test the Launcher interface.""" |
1345 | |
1346 | - from ubuntuone.platform.launcher.linux import use_libunity |
1347 | + from magicicadaclient.platform.launcher.linux import use_libunity |
1348 | skip = None if use_libunity else "libunity not installed." |
1349 | |
1350 | @defer.inlineCallbacks |
1351 | def setUp(self): |
1352 | """Initialize this test instance.""" |
1353 | yield super(LauncherTestCase, self).setUp() |
1354 | - import ubuntuone.platform.launcher.linux |
1355 | - self.patch(ubuntuone.platform.launcher.linux.Unity, |
1356 | + import magicicadaclient.platform.launcher.linux |
1357 | + self.patch(magicicadaclient.platform.launcher.linux.Unity, |
1358 | "LauncherEntry", FakeLauncherEntry) |
1359 | self.launcher = launcher.Launcher() |
1360 | |
1361 | |
1362 | === modified file 'magicicadaclient/platform/tests/linux/test_vm.py' |
1363 | --- ubuntuone/platform/tests/linux/test_vm.py 2018-04-14 23:34:20 +0000 |
1364 | +++ magicicadaclient/platform/tests/linux/test_vm.py 2018-05-19 20:49:48 +0000 |
1365 | @@ -35,12 +35,12 @@ |
1366 | from magicicadaprotocol import request |
1367 | from twisted.internet import defer |
1368 | |
1369 | -from contrib.testing.testcase import FakeMain |
1370 | -from ubuntuone.syncdaemon.tests.test_vm import ( |
1371 | +from magicicadaclient.testing.testcase import FakeMain |
1372 | +from magicicadaclient.syncdaemon.tests.test_vm import ( |
1373 | MetadataTestCase, |
1374 | BaseVolumeManagerTests, |
1375 | ) |
1376 | -from ubuntuone.syncdaemon.volume_manager import ( |
1377 | +from magicicadaclient.syncdaemon.volume_manager import ( |
1378 | ACCESS_LEVEL_RO, |
1379 | ACCESS_LEVEL_RW, |
1380 | get_udf_path, |
1381 | |
1382 | === modified file 'magicicadaclient/platform/tests/os_helper/test_darwin.py' |
1383 | --- ubuntuone/platform/tests/os_helper/test_darwin.py 2016-06-01 18:28:19 +0000 |
1384 | +++ magicicadaclient/platform/tests/os_helper/test_darwin.py 2018-05-19 20:49:48 +0000 |
1385 | @@ -35,13 +35,13 @@ |
1386 | from twisted.internet import defer |
1387 | from ubuntuone.devtools.handlers import MementoHandler |
1388 | |
1389 | -from ubuntuone.platform import ( |
1390 | +from magicicadaclient.platform import ( |
1391 | move_to_trash, |
1392 | open_file, |
1393 | stat_path, |
1394 | ) |
1395 | -from ubuntuone.platform.os_helper import darwin |
1396 | -from ubuntuone.platform.tests.os_helper import test_os_helper |
1397 | +from magicicadaclient.platform.os_helper import darwin |
1398 | +from magicicadaclient.platform.tests.os_helper import test_os_helper |
1399 | |
1400 | DARWIN_TEST_FILE_NAME = u'naïve_test_file' |
1401 | |
1402 | |
1403 | === modified file 'magicicadaclient/platform/tests/os_helper/test_linux.py' |
1404 | --- ubuntuone/platform/tests/os_helper/test_linux.py 2018-03-18 11:59:08 +0000 |
1405 | +++ magicicadaclient/platform/tests/os_helper/test_linux.py 2018-05-19 20:49:48 +0000 |
1406 | @@ -32,9 +32,9 @@ |
1407 | from twisted.internet import defer |
1408 | from ubuntuone.devtools.handlers import MementoHandler |
1409 | |
1410 | -from ubuntuone.platform.tests.os_helper import test_os_helper |
1411 | -from ubuntuone.platform.os_helper import linux |
1412 | -from ubuntuone.platform import ( |
1413 | +from magicicadaclient.platform.tests.os_helper import test_os_helper |
1414 | +from magicicadaclient.platform.os_helper import linux |
1415 | +from magicicadaclient.platform import ( |
1416 | move_to_trash, |
1417 | open_file, |
1418 | stat_path, |
1419 | |
1420 | === modified file 'magicicadaclient/platform/tests/os_helper/test_os_helper.py' |
1421 | --- ubuntuone/platform/tests/os_helper/test_os_helper.py 2018-03-08 19:39:13 +0000 |
1422 | +++ magicicadaclient/platform/tests/os_helper/test_os_helper.py 2018-05-19 20:49:48 +0000 |
1423 | @@ -36,11 +36,11 @@ |
1424 | |
1425 | from twisted.internet import defer |
1426 | |
1427 | -from contrib.testing.testcase import ( |
1428 | +from magicicadaclient.testing.testcase import ( |
1429 | BaseTwistedTestCase, |
1430 | skip_if_win32_and_uses_readonly, |
1431 | ) |
1432 | -from ubuntuone.platform import ( |
1433 | +from magicicadaclient.platform import ( |
1434 | access, |
1435 | allow_writes, |
1436 | can_write, |
1437 | |
1438 | === modified file 'magicicadaclient/platform/tests/os_helper/test_windows.py' |
1439 | --- ubuntuone/platform/tests/os_helper/test_windows.py 2016-06-01 18:28:19 +0000 |
1440 | +++ magicicadaclient/platform/tests/os_helper/test_windows.py 2018-05-19 20:49:48 +0000 |
1441 | @@ -36,7 +36,7 @@ |
1442 | from twisted.internet import defer |
1443 | from twisted.trial.unittest import TestCase |
1444 | |
1445 | -from contrib.testing.testcase import BaseTwistedTestCase |
1446 | +from magicicadaclient.testing.testcase import BaseTwistedTestCase |
1447 | |
1448 | from ntsecuritycon import ( |
1449 | FILE_ALL_ACCESS, |
1450 | @@ -50,8 +50,8 @@ |
1451 | SetFileAttributesW |
1452 | ) |
1453 | |
1454 | -from ubuntuone.platform.os_helper import windows as os_helper |
1455 | -from ubuntuone.platform.os_helper.windows import ( |
1456 | +from magicicadaclient.platform.os_helper import windows as os_helper |
1457 | +from magicicadaclient.platform.os_helper.windows import ( |
1458 | _set_file_attributes, |
1459 | _unicode_to_bytes, |
1460 | EVERYONE_SID, |
1461 | @@ -69,7 +69,7 @@ |
1462 | set_no_rights, |
1463 | WINDOWS_ILLEGAL_CHARS_MAP, |
1464 | ) |
1465 | -from ubuntuone.platform.tests.os_helper.test_os_helper import ( |
1466 | +from magicicadaclient.platform.tests.os_helper.test_os_helper import ( |
1467 | OSWrapperTests, |
1468 | WalkTests, |
1469 | ) |
1470 | |
1471 | === modified file 'magicicadaclient/platform/tests/session/test_common.py' |
1472 | --- ubuntuone/platform/tests/session/test_common.py 2016-06-01 18:28:19 +0000 |
1473 | +++ magicicadaclient/platform/tests/session/test_common.py 2018-05-19 20:49:48 +0000 |
1474 | @@ -31,7 +31,7 @@ |
1475 | from twisted.trial.unittest import TestCase |
1476 | |
1477 | from ubuntuone.devtools.testcases import skipIfOS |
1478 | -from ubuntuone.platform.session import Inhibitor, INHIBIT_LOGOUT_SUSPEND |
1479 | +from magicicadaclient.platform.session import Inhibitor, INHIBIT_LOGOUT_SUSPEND |
1480 | |
1481 | |
1482 | @skipIfOS('linux2', 'Ignored becuase it requires a DBusTestCases.') |
1483 | |
1484 | === modified file 'magicicadaclient/platform/tests/session/test_linux.py' |
1485 | --- ubuntuone/platform/tests/session/test_linux.py 2016-06-01 18:28:19 +0000 |
1486 | +++ magicicadaclient/platform/tests/session/test_linux.py 2018-05-19 20:49:48 +0000 |
1487 | @@ -39,7 +39,7 @@ |
1488 | from ubuntuone.devtools.testcases.dbus import DBusTestCase |
1489 | except ImportError: |
1490 | from ubuntuone.devtools.testcase import DBusTestCase |
1491 | -from ubuntuone.platform import session |
1492 | +from magicicadaclient.platform import session |
1493 | |
1494 | INHIBIT_ALL = (session.INHIBIT_LOGGING_OUT | |
1495 | session.INHIBIT_USER_SWITCHING | |
1496 | |
1497 | === modified file 'magicicadaclient/platform/tests/test_logger.py' |
1498 | --- ubuntuone/platform/tests/test_logger.py 2012-06-21 18:58:50 +0000 |
1499 | +++ magicicadaclient/platform/tests/test_logger.py 2018-05-19 20:49:48 +0000 |
1500 | @@ -33,7 +33,7 @@ |
1501 | from dirspec.basedir import xdg_cache_home |
1502 | from twisted.trial.unittest import TestCase |
1503 | |
1504 | -from ubuntuone.platform.logger import ubuntuone_log_dir |
1505 | +from magicicadaclient.platform.logger import ubuntuone_log_dir |
1506 | |
1507 | |
1508 | class TestBaseDirectory(TestCase): |
1509 | @@ -41,7 +41,6 @@ |
1510 | |
1511 | def test_ubuntuone_log_dir(self): |
1512 | """The ubuntuone_log_dir is correct.""" |
1513 | - expected = os.path.join(xdg_cache_home, |
1514 | - 'ubuntuone', 'log') |
1515 | + expected = os.path.join(xdg_cache_home, 'ubuntuone', 'log') |
1516 | self.assertEqual(expected, ubuntuone_log_dir) |
1517 | self.assertTrue(os.path.exists(expected)) |
1518 | |
1519 | === modified file 'magicicadaclient/platform/tests/test_platform.py' |
1520 | --- ubuntuone/platform/tests/test_platform.py 2012-04-09 20:07:05 +0000 |
1521 | +++ magicicadaclient/platform/tests/test_platform.py 2018-05-19 20:49:48 +0000 |
1522 | @@ -36,5 +36,5 @@ |
1523 | def test_import(self): |
1524 | """Make sure we can import the platform module.""" |
1525 | |
1526 | - import ubuntuone.platform as uplt |
1527 | + import magicicadaclient.platform as uplt |
1528 | self.assertTrue(sys.platform.startswith(uplt.platform)) |
1529 | |
1530 | === modified file 'magicicadaclient/platform/tests/test_tools.py' |
1531 | --- ubuntuone/platform/tests/test_tools.py 2018-04-23 02:21:03 +0000 |
1532 | +++ magicicadaclient/platform/tests/test_tools.py 2018-05-19 20:49:48 +0000 |
1533 | @@ -37,17 +37,17 @@ |
1534 | from ubuntuone.devtools.handlers import MementoHandler |
1535 | from ubuntuone.devtools.testcases import skipTest, skipIfNotOS |
1536 | |
1537 | -from contrib.testing.testcase import FakeCommand |
1538 | +from magicicadaclient.testing.testcase import FakeCommand |
1539 | |
1540 | -from ubuntuone.syncdaemon import ( |
1541 | +from magicicadaclient.syncdaemon import ( |
1542 | action_queue, |
1543 | event_queue, |
1544 | interaction_interfaces, |
1545 | states, |
1546 | volume_manager, |
1547 | ) |
1548 | -from ubuntuone.platform import tools |
1549 | -from ubuntuone.platform.tests import IPCTestCase |
1550 | +from magicicadaclient.platform import tools |
1551 | +from magicicadaclient.platform.tests import IPCTestCase |
1552 | |
1553 | |
1554 | SOME_ERROR = 'CRASH BOOM BANG' |
1555 | |
1556 | === modified file 'magicicadaclient/platform/tests/test_u1sdtool.py' |
1557 | --- ubuntuone/platform/tests/test_u1sdtool.py 2016-06-01 18:28:19 +0000 |
1558 | +++ magicicadaclient/platform/tests/test_u1sdtool.py 2018-05-19 20:49:48 +0000 |
1559 | @@ -35,18 +35,18 @@ |
1560 | |
1561 | from twisted.internet import defer |
1562 | |
1563 | -from contrib.testing.testcase import ( |
1564 | +from magicicadaclient.testing.testcase import ( |
1565 | FakeCommand, |
1566 | FakeDownload, |
1567 | FakeUpload, |
1568 | ) |
1569 | -from ubuntuone.syncdaemon.vm_helper import get_udf_path |
1570 | -from ubuntuone.syncdaemon.volume_manager import ( |
1571 | +from magicicadaclient.syncdaemon.vm_helper import get_udf_path |
1572 | +from magicicadaclient.syncdaemon.volume_manager import ( |
1573 | ACCESS_LEVEL_RO, |
1574 | Share, |
1575 | UDF, |
1576 | ) |
1577 | -from ubuntuone.platform.tools import ( |
1578 | +from magicicadaclient.platform.tools import ( |
1579 | show_dirty_nodes, |
1580 | show_downloads, |
1581 | show_folders, |
1582 | @@ -60,7 +60,7 @@ |
1583 | show_waiting_content, |
1584 | show_waiting_metadata, |
1585 | ) |
1586 | -from ubuntuone.platform.tests.test_tools import TestToolsBase |
1587 | +from magicicadaclient.platform.tests.test_tools import TestToolsBase |
1588 | |
1589 | |
1590 | class U1SDToolTests(TestToolsBase): |
1591 | |
1592 | === modified file 'magicicadaclient/platform/tests/tools/test_tools.py' |
1593 | --- ubuntuone/platform/tests/tools/test_tools.py 2016-07-30 21:58:48 +0000 |
1594 | +++ magicicadaclient/platform/tests/tools/test_tools.py 2018-05-19 20:49:48 +0000 |
1595 | @@ -35,7 +35,7 @@ |
1596 | from twisted.spread import pb |
1597 | from twisted.trial.unittest import TestCase |
1598 | |
1599 | -from ubuntuone.platform.tools import perspective_broker |
1600 | +from magicicadaclient.platform.tools import perspective_broker |
1601 | |
1602 | |
1603 | # ugly trick to stop pylint for complaining about |
1604 | |
1605 | === modified file 'magicicadaclient/platform/tests/windows/run_sdtool.py' |
1606 | --- ubuntuone/platform/tests/windows/run_sdtool.py 2016-09-17 01:06:23 +0000 |
1607 | +++ magicicadaclient/platform/tests/windows/run_sdtool.py 2018-05-19 20:49:48 +0000 |
1608 | @@ -32,7 +32,7 @@ |
1609 | |
1610 | # we use the standard reactor on windows |
1611 | from twisted.internet import reactor, defer |
1612 | -from ubuntuone.platform.windows import tools |
1613 | +from magicicadaclient.platform.windows import tools |
1614 | |
1615 | |
1616 | @defer.inlineCallbacks |
1617 | |
1618 | === modified file 'magicicadaclient/platform/tools/__init__.py' |
1619 | --- ubuntuone/platform/tools/__init__.py 2018-04-23 02:21:03 +0000 |
1620 | +++ magicicadaclient/platform/tools/__init__.py 2018-05-19 20:49:48 +0000 |
1621 | @@ -34,13 +34,13 @@ |
1622 | import warnings |
1623 | |
1624 | from twisted.internet import defer |
1625 | -from ubuntuone.logger import log_call |
1626 | +from magicicadaclient.logger import log_call |
1627 | |
1628 | if sys.platform in ('win32', 'darwin'): |
1629 | - from ubuntuone.platform.tools import perspective_broker |
1630 | + from magicicadaclient.platform.tools import perspective_broker |
1631 | source = perspective_broker |
1632 | else: |
1633 | - from ubuntuone.platform.tools import linux |
1634 | + from magicicadaclient.platform.tools import linux |
1635 | source = linux |
1636 | |
1637 | |
1638 | |
1639 | === modified file 'magicicadaclient/platform/tools/linux.py' |
1640 | --- ubuntuone/platform/tools/linux.py 2012-08-06 13:33:18 +0000 |
1641 | +++ magicicadaclient/platform/tools/linux.py 2018-05-19 20:49:48 +0000 |
1642 | @@ -34,7 +34,7 @@ |
1643 | from dbus.exceptions import DBusException |
1644 | from twisted.internet import defer |
1645 | |
1646 | -from ubuntuone.platform.ipc.linux import ( |
1647 | +from magicicadaclient.platform.ipc.linux import ( |
1648 | is_already_running, |
1649 | DBUS_IFACE_NAME, |
1650 | DBUS_IFACE_STATUS_NAME, |
1651 | |
1652 | === modified file 'magicicadaclient/platform/tools/perspective_broker.py' |
1653 | --- ubuntuone/platform/tools/perspective_broker.py 2016-06-01 18:28:19 +0000 |
1654 | +++ magicicadaclient/platform/tools/perspective_broker.py 2018-05-19 20:49:48 +0000 |
1655 | @@ -35,9 +35,9 @@ |
1656 | from twisted.internet import defer |
1657 | from twisted.spread.pb import (DeadReferenceError, RemoteError) |
1658 | |
1659 | -from ubuntuone.platform.ipc.perspective_broker import is_already_running |
1660 | -from ubuntuone.platform.ipc.ipc_client import UbuntuOneClient |
1661 | -from ubuntuone.syncdaemon.utils import get_sd_bin_cmd |
1662 | +from magicicadaclient.platform.ipc.perspective_broker import is_already_running |
1663 | +from magicicadaclient.platform.ipc.ipc_client import UbuntuOneClient |
1664 | +from magicicadaclient.syncdaemon.utils import get_sd_bin_cmd |
1665 | |
1666 | |
1667 | # make pyflakes happy since we can't disable the warning |
1668 | @@ -120,7 +120,7 @@ |
1669 | |
1670 | def __init__(self, bus=None): |
1671 | self.log = logging.getLogger( |
1672 | - 'ubuntuone.platform.tools.perspective_broker') |
1673 | + 'magicicadaclient.platform.tools.perspective_broker') |
1674 | self.client = UbuntuOneClient() |
1675 | self.connected = None |
1676 | self.connected_signals = defaultdict(set) |
1677 | |
1678 | === modified file 'magicicadaclient/syncdaemon/action_queue.py' |
1679 | --- ubuntuone/syncdaemon/action_queue.py 2018-04-14 23:34:20 +0000 |
1680 | +++ magicicadaclient/syncdaemon/action_queue.py 2018-05-19 20:49:48 +0000 |
1681 | @@ -57,11 +57,11 @@ |
1682 | from twisted.python.failure import Failure, DefaultException |
1683 | from zope.interface import implements |
1684 | |
1685 | -from ubuntuone import clientdefs |
1686 | -from ubuntuone.platform import platform, remove_file |
1687 | -from ubuntuone.syncdaemon.interfaces import IActionQueue, IMarker |
1688 | -from ubuntuone.syncdaemon.logger import mklog, TRACE |
1689 | -from ubuntuone.syncdaemon import config, offload_queue |
1690 | +from magicicadaclient import clientdefs |
1691 | +from magicicadaclient.platform import platform, remove_file |
1692 | +from magicicadaclient.syncdaemon.interfaces import IActionQueue, IMarker |
1693 | +from magicicadaclient.syncdaemon.logger import mklog, TRACE |
1694 | +from magicicadaclient.syncdaemon import config, offload_queue |
1695 | |
1696 | logger = logging.getLogger("ubuntuone.SyncDaemon.ActionQueue") |
1697 | |
1698 | |
1699 | === modified file 'magicicadaclient/syncdaemon/config.py' |
1700 | --- ubuntuone/syncdaemon/config.py 2018-03-14 21:55:27 +0000 |
1701 | +++ magicicadaclient/syncdaemon/config.py 2018-05-19 20:49:48 +0000 |
1702 | @@ -45,7 +45,7 @@ |
1703 | ) |
1704 | from dirspec.utils import unicode_path |
1705 | |
1706 | -from ubuntuone.platform import expand_user |
1707 | +from magicicadaclient.platform import expand_user |
1708 | |
1709 | # the try/except is to work with older versions of configglue (that |
1710 | # had everything that is now configglue.inischema.* as configglue.*). |
1711 | @@ -347,7 +347,7 @@ |
1712 | # because the configglue superclasses do not use them. |
1713 | # Instead, all paths used in this module should be "native", |
1714 | # that is: utf-8 str on linux, or (unicode or mbcs str) on windows |
1715 | - from ubuntuone.platform import native_rename |
1716 | + from magicicadaclient.platform import native_rename |
1717 | |
1718 | # cleanup empty sections |
1719 | for section in [MAIN, THROTTLING]: |
1720 | |
1721 | === modified file 'magicicadaclient/syncdaemon/event_queue.py' |
1722 | --- ubuntuone/syncdaemon/event_queue.py 2017-01-07 14:01:39 +0000 |
1723 | +++ magicicadaclient/syncdaemon/event_queue.py 2018-05-19 20:49:48 +0000 |
1724 | @@ -33,8 +33,8 @@ |
1725 | |
1726 | from twisted.internet import defer |
1727 | |
1728 | -from ubuntuone.platform.os_helper import access |
1729 | -from ubuntuone.platform.filesystem_notifications.monitor import ( |
1730 | +from magicicadaclient.platform.os_helper import access |
1731 | +from magicicadaclient.platform.filesystem_notifications.monitor import ( |
1732 | FilesystemMonitor, |
1733 | ) |
1734 | |
1735 | |
1736 | === modified file 'magicicadaclient/syncdaemon/file_shelf.py' |
1737 | --- ubuntuone/syncdaemon/file_shelf.py 2015-09-19 23:15:50 +0000 |
1738 | +++ magicicadaclient/syncdaemon/file_shelf.py 2018-05-19 20:49:48 +0000 |
1739 | @@ -41,7 +41,7 @@ |
1740 | from collections import deque |
1741 | from UserDict import DictMixin |
1742 | |
1743 | -from ubuntuone.platform import ( |
1744 | +from magicicadaclient.platform import ( |
1745 | make_dir, |
1746 | open_file, |
1747 | path_exists, |
1748 | |
1749 | === modified file 'magicicadaclient/syncdaemon/filesystem_manager.py' |
1750 | --- ubuntuone/syncdaemon/filesystem_manager.py 2016-06-01 21:38:23 +0000 |
1751 | +++ magicicadaclient/syncdaemon/filesystem_manager.py 2018-05-19 20:49:48 +0000 |
1752 | @@ -43,13 +43,13 @@ |
1753 | import stat |
1754 | import uuid |
1755 | |
1756 | -from ubuntuone.clientdefs import NAME |
1757 | -from ubuntuone.syncdaemon import file_shelf, config |
1758 | -from ubuntuone.syncdaemon.volume_manager import VolumeDoesNotExist |
1759 | -from ubuntuone.syncdaemon.interfaces import IMarker |
1760 | -from ubuntuone.syncdaemon.marker import MDMarker |
1761 | -from ubuntuone.syncdaemon.tritcask import TritcaskShelf |
1762 | -from ubuntuone.platform import ( |
1763 | +from magicicadaclient.clientdefs import NAME |
1764 | +from magicicadaclient.syncdaemon import file_shelf, config |
1765 | +from magicicadaclient.syncdaemon.volume_manager import VolumeDoesNotExist |
1766 | +from magicicadaclient.syncdaemon.interfaces import IMarker |
1767 | +from magicicadaclient.syncdaemon.marker import MDMarker |
1768 | +from magicicadaclient.syncdaemon.tritcask import TritcaskShelf |
1769 | +from magicicadaclient.platform import ( |
1770 | listdir, |
1771 | make_dir, |
1772 | normpath, |
1773 | @@ -67,7 +67,7 @@ |
1774 | stat_path, |
1775 | walk, |
1776 | ) |
1777 | -from ubuntuone.platform import open_file as os_open |
1778 | +from magicicadaclient.platform import open_file as os_open |
1779 | |
1780 | METADATA_VERSION = "6" |
1781 | |
1782 | |
1783 | === modified file 'magicicadaclient/syncdaemon/filesystem_notifications.py' |
1784 | --- ubuntuone/syncdaemon/filesystem_notifications.py 2018-03-08 19:39:13 +0000 |
1785 | +++ magicicadaclient/syncdaemon/filesystem_notifications.py 2018-05-19 20:49:48 +0000 |
1786 | @@ -32,9 +32,9 @@ |
1787 | import os |
1788 | import re |
1789 | |
1790 | -from ubuntuone.platform import access, path_exists |
1791 | -from ubuntuone.syncdaemon.mute_filter import MuteFilter |
1792 | -from ubuntuone import logger |
1793 | +from magicicadaclient.platform import access, path_exists |
1794 | +from magicicadaclient.syncdaemon.mute_filter import MuteFilter |
1795 | +from magicicadaclient import logger |
1796 | # our logging level |
1797 | TRACE = logger.TRACE |
1798 | |
1799 | |
1800 | === modified file 'magicicadaclient/syncdaemon/fsm/fsm.py' |
1801 | --- ubuntuone/syncdaemon/fsm/fsm.py 2018-03-08 19:39:13 +0000 |
1802 | +++ magicicadaclient/syncdaemon/fsm/fsm.py 2018-05-19 20:49:48 +0000 |
1803 | @@ -35,7 +35,7 @@ |
1804 | |
1805 | import itertools |
1806 | |
1807 | -from ubuntuone.syncdaemon import logger |
1808 | +from magicicadaclient.syncdaemon import logger |
1809 | |
1810 | |
1811 | def hash_dict(d): |
1812 | @@ -195,7 +195,7 @@ |
1813 | # fsm_parser depends on python-uno for reading ods documents |
1814 | # this shouldnt be called with an .ods file on production |
1815 | # environments |
1816 | - from ubuntuone.syncdaemon.fsm import fsm_parser |
1817 | + from magicicadaclient.syncdaemon.fsm import fsm_parser |
1818 | spec = fsm_parser.parse(input_data) |
1819 | elif input_data.endswith(".py"): |
1820 | result = {} |
1821 | |
1822 | === modified file 'magicicadaclient/syncdaemon/hash_queue.py' |
1823 | --- ubuntuone/syncdaemon/hash_queue.py 2018-04-14 23:34:20 +0000 |
1824 | +++ magicicadaclient/syncdaemon/hash_queue.py 2018-05-19 20:49:48 +0000 |
1825 | @@ -41,11 +41,11 @@ |
1826 | from magicicadaprotocol.content_hash import content_hash_factory, crc32 |
1827 | from twisted.internet import reactor |
1828 | |
1829 | -from ubuntuone.platform import ( |
1830 | +from magicicadaclient.platform import ( |
1831 | open_file, |
1832 | stat_path, |
1833 | ) |
1834 | -from ubuntuone.platform.constants import HASHQUEUE_DELAY |
1835 | +from magicicadaclient.platform.constants import HASHQUEUE_DELAY |
1836 | |
1837 | |
1838 | NO_TIMESTAMP = None |
1839 | |
1840 | === modified file 'magicicadaclient/syncdaemon/interaction_interfaces.py' |
1841 | --- ubuntuone/syncdaemon/interaction_interfaces.py 2018-04-24 23:02:59 +0000 |
1842 | +++ magicicadaclient/syncdaemon/interaction_interfaces.py 2018-05-19 20:49:48 +0000 |
1843 | @@ -48,15 +48,15 @@ |
1844 | from magicicadaprotocol import request |
1845 | from twisted.internet import defer |
1846 | |
1847 | -from ubuntuone.networkstate import NetworkManagerState |
1848 | -from ubuntuone.networkstate.networkstates import ONLINE |
1849 | +from magicicadaclient.networkstate import NetworkManagerState |
1850 | +from magicicadaclient.networkstate.networkstates import ONLINE |
1851 | |
1852 | -from ubuntuone.logger import log_call |
1853 | -from ubuntuone.platform import ExternalInterface |
1854 | -from ubuntuone.syncdaemon import config |
1855 | -from ubuntuone.syncdaemon.action_queue import Download, Upload |
1856 | -from ubuntuone.syncdaemon.interfaces import IMarker |
1857 | -from ubuntuone.syncdaemon.volume_manager import Share, UDF, VolumeDoesNotExist |
1858 | +from magicicadaclient.logger import log_call |
1859 | +from magicicadaclient.platform import ExternalInterface |
1860 | +from magicicadaclient.syncdaemon import config |
1861 | +from magicicadaclient.syncdaemon.action_queue import Download, Upload |
1862 | +from magicicadaclient.syncdaemon.interfaces import IMarker |
1863 | +from magicicadaclient.syncdaemon.volume_manager import Share, UDF, VolumeDoesNotExist |
1864 | |
1865 | |
1866 | logger = logging.getLogger("ubuntuone.SyncDaemon.InteractionInterfaces") |
1867 | |
1868 | === modified file 'magicicadaclient/syncdaemon/local_rescan.py' |
1869 | --- ubuntuone/syncdaemon/local_rescan.py 2018-03-08 19:39:13 +0000 |
1870 | +++ magicicadaclient/syncdaemon/local_rescan.py 2018-05-19 20:49:48 +0000 |
1871 | @@ -35,16 +35,16 @@ |
1872 | import os |
1873 | import stat |
1874 | |
1875 | -from ubuntuone.syncdaemon import volume_manager |
1876 | -from ubuntuone.syncdaemon.volume_manager import ( |
1877 | +from magicicadaclient.syncdaemon import volume_manager |
1878 | +from magicicadaclient.syncdaemon.volume_manager import ( |
1879 | ACCESS_LEVEL_RO, |
1880 | ACCESS_LEVEL_RW, |
1881 | ) |
1882 | -from ubuntuone.syncdaemon.filesystem_manager import get_stat |
1883 | +from magicicadaclient.syncdaemon.filesystem_manager import get_stat |
1884 | from twisted.internet import defer, reactor |
1885 | |
1886 | -from ubuntuone.syncdaemon.interfaces import IMarker |
1887 | -from ubuntuone.platform import ( |
1888 | +from magicicadaclient.syncdaemon.interfaces import IMarker |
1889 | +from magicicadaclient.platform import ( |
1890 | access, |
1891 | is_link, |
1892 | listdir, |
1893 | |
1894 | === modified file 'magicicadaclient/syncdaemon/logger.py' |
1895 | --- ubuntuone/syncdaemon/logger.py 2018-03-08 19:39:13 +0000 |
1896 | +++ magicicadaclient/syncdaemon/logger.py 2018-05-19 20:49:48 +0000 |
1897 | @@ -34,7 +34,7 @@ |
1898 | import os |
1899 | import zlib |
1900 | |
1901 | -from ubuntuone.logger import ( |
1902 | +from magicicadaclient.logger import ( |
1903 | _DEBUG_LOG_LEVEL, |
1904 | basic_formatter, |
1905 | CustomRotatingFileHandler, |
1906 | @@ -42,10 +42,10 @@ |
1907 | Logger, |
1908 | MultiFilter, |
1909 | ) |
1910 | -from ubuntuone.platform.logger import ubuntuone_log_dir |
1911 | +from magicicadaclient.platform.logger import ubuntuone_log_dir |
1912 | # api compatibility imports |
1913 | -from ubuntuone import logger |
1914 | -from ubuntuone.platform import get_filesystem_logger, setup_filesystem_logging |
1915 | +from magicicadaclient import logger |
1916 | +from magicicadaclient.platform import get_filesystem_logger, setup_filesystem_logging |
1917 | DebugCapture = logger.DebugCapture |
1918 | NOTE = logger.NOTE |
1919 | TRACE = logger.TRACE |
1920 | |
1921 | === modified file 'magicicadaclient/syncdaemon/main.py' |
1922 | --- ubuntuone/syncdaemon/main.py 2017-02-10 01:15:07 +0000 |
1923 | +++ magicicadaclient/syncdaemon/main.py 2018-05-19 20:49:48 +0000 |
1924 | @@ -36,7 +36,7 @@ |
1925 | from dirspec.utils import user_home |
1926 | from twisted.internet import defer, reactor, task |
1927 | |
1928 | -from ubuntuone.syncdaemon import ( |
1929 | +from magicicadaclient.syncdaemon import ( |
1930 | action_queue, |
1931 | config, |
1932 | event_queue, |
1933 | @@ -48,9 +48,9 @@ |
1934 | tritcask, |
1935 | volume_manager, |
1936 | ) |
1937 | -from ubuntuone import syncdaemon, clientdefs |
1938 | -from ubuntuone.syncdaemon.interaction_interfaces import SyncdaemonService |
1939 | -from ubuntuone.syncdaemon.states import StateManager, QueueManager |
1940 | +from magicicadaclient import syncdaemon, clientdefs |
1941 | +from magicicadaclient.syncdaemon.interaction_interfaces import SyncdaemonService |
1942 | +from magicicadaclient.syncdaemon.states import StateManager, QueueManager |
1943 | |
1944 | |
1945 | class WaitingHelpingHandler(object): |
1946 | |
1947 | === modified file 'magicicadaclient/syncdaemon/marker.py' |
1948 | --- ubuntuone/syncdaemon/marker.py 2012-04-09 20:07:05 +0000 |
1949 | +++ magicicadaclient/syncdaemon/marker.py 2018-05-19 20:49:48 +0000 |
1950 | @@ -32,7 +32,7 @@ |
1951 | |
1952 | from zope.interface import implements |
1953 | |
1954 | -from ubuntuone.syncdaemon.interfaces import IMarker |
1955 | +from magicicadaclient.syncdaemon.interfaces import IMarker |
1956 | |
1957 | |
1958 | class MDMarker(str): |
1959 | |
1960 | === modified file 'magicicadaclient/syncdaemon/sync.py' |
1961 | --- ubuntuone/syncdaemon/sync.py 2018-04-14 23:34:20 +0000 |
1962 | +++ magicicadaclient/syncdaemon/sync.py 2018-05-19 20:49:48 +0000 |
1963 | @@ -38,16 +38,16 @@ |
1964 | |
1965 | from magicicadaprotocol import delta |
1966 | |
1967 | -from ubuntuone.syncdaemon.marker import MDMarker |
1968 | -from ubuntuone.syncdaemon.fsm.fsm import StateMachineRunner, StateMachine |
1969 | -from ubuntuone.syncdaemon import u1fsfsm |
1970 | -from ubuntuone.syncdaemon.logger import DebugCapture |
1971 | -from ubuntuone.syncdaemon.filesystem_manager import ( |
1972 | +from magicicadaclient.syncdaemon.marker import MDMarker |
1973 | +from magicicadaclient.syncdaemon.fsm.fsm import StateMachineRunner, StateMachine |
1974 | +from magicicadaclient.syncdaemon import u1fsfsm |
1975 | +from magicicadaclient.syncdaemon.logger import DebugCapture |
1976 | +from magicicadaclient.syncdaemon.filesystem_manager import ( |
1977 | DirectoryNotRemovable, |
1978 | InconsistencyError, |
1979 | ) |
1980 | -from ubuntuone.syncdaemon.volume_manager import VolumeDoesNotExist |
1981 | -from ubuntuone.platform import ( |
1982 | +from magicicadaclient.syncdaemon.volume_manager import VolumeDoesNotExist |
1983 | +from magicicadaclient.platform import ( |
1984 | stat_path, |
1985 | ) |
1986 | |
1987 | |
1988 | === modified file 'magicicadaclient/syncdaemon/tests/fsm/test_fsm.py' |
1989 | --- ubuntuone/syncdaemon/tests/fsm/test_fsm.py 2016-07-30 22:03:39 +0000 |
1990 | +++ magicicadaclient/syncdaemon/tests/fsm/test_fsm.py 2018-05-19 20:49:48 +0000 |
1991 | @@ -33,7 +33,7 @@ |
1992 | import os |
1993 | import unittest |
1994 | |
1995 | -from ubuntuone.syncdaemon.fsm import fsm |
1996 | +from magicicadaclient.syncdaemon.fsm import fsm |
1997 | |
1998 | try: |
1999 | import uno |
2000 | |
2001 | === modified file 'magicicadaclient/syncdaemon/tests/fsm/test_fsm_run.py' |
2002 | --- ubuntuone/syncdaemon/tests/fsm/test_fsm_run.py 2018-03-08 19:39:13 +0000 |
2003 | +++ magicicadaclient/syncdaemon/tests/fsm/test_fsm_run.py 2018-05-19 20:49:48 +0000 |
2004 | @@ -33,7 +33,7 @@ |
2005 | import unittest |
2006 | import os |
2007 | |
2008 | -from ubuntuone.syncdaemon.fsm import fsm |
2009 | +from magicicadaclient.syncdaemon.fsm import fsm |
2010 | |
2011 | |
2012 | def p(name): |
2013 | |
2014 | === modified file 'magicicadaclient/syncdaemon/tests/test_action_queue.py' |
2015 | --- ubuntuone/syncdaemon/tests/test_action_queue.py 2018-04-14 23:34:20 +0000 |
2016 | +++ magicicadaclient/syncdaemon/tests/test_action_queue.py 2018-05-19 20:49:48 +0000 |
2017 | @@ -60,7 +60,7 @@ |
2018 | from twisted.trial.unittest import TestCase as TwistedTestCase |
2019 | from zope.interface.verify import verifyObject, verifyClass |
2020 | |
2021 | -from contrib.testing.testcase import ( |
2022 | +from magicicadaclient.testing.testcase import ( |
2023 | BaseTwistedTestCase, |
2024 | DummyClass, |
2025 | FakeActionQueue, |
2026 | @@ -70,11 +70,11 @@ |
2027 | ) |
2028 | from ubuntuone.devtools import handlers |
2029 | from ubuntuone.devtools.testcases import skipTest |
2030 | -from ubuntuone import logger, clientdefs |
2031 | -from ubuntuone.platform import open_file, platform, path_exists |
2032 | -from ubuntuone.syncdaemon import interfaces, config |
2033 | -from ubuntuone.syncdaemon import action_queue |
2034 | -from ubuntuone.syncdaemon.action_queue import ( |
2035 | +from magicicadaclient import logger, clientdefs |
2036 | +from magicicadaclient.platform import open_file, platform, path_exists |
2037 | +from magicicadaclient.syncdaemon import interfaces, config |
2038 | +from magicicadaclient.syncdaemon import action_queue |
2039 | +from magicicadaclient.syncdaemon.action_queue import ( |
2040 | ActionQueue, ActionQueueCommand, ChangePublicAccess, CreateUDF, |
2041 | DeleteVolume, Download, ListVolumes, ActionQueueProtocol, ListShares, |
2042 | RequestQueue, UploadProgressWrapper, Upload, |
2043 | @@ -84,10 +84,10 @@ |
2044 | InterruptibleDeferred, DeferredInterrupted, ConditionsLocker, |
2045 | NamedTemporaryFile, PingManager, |
2046 | ) |
2047 | -from ubuntuone.syncdaemon.event_queue import EventQueue, EVENTS |
2048 | -from ubuntuone.syncdaemon import offload_queue |
2049 | -from ubuntuone.syncdaemon.marker import MDMarker |
2050 | -from ubuntuone.syncdaemon.volume_manager import ACCESS_LEVEL_RO |
2051 | +from magicicadaclient.syncdaemon.event_queue import EventQueue, EVENTS |
2052 | +from magicicadaclient.syncdaemon import offload_queue |
2053 | +from magicicadaclient.syncdaemon.marker import MDMarker |
2054 | +from magicicadaclient.syncdaemon.volume_manager import ACCESS_LEVEL_RO |
2055 | |
2056 | PATH = os.path.join(u'~', u'Documents', u'pdfs', u'moño', u'') |
2057 | NAME = u'UDF-me' |
2058 | |
2059 | === modified file 'magicicadaclient/syncdaemon/tests/test_config.py' |
2060 | --- ubuntuone/syncdaemon/tests/test_config.py 2018-03-14 21:55:27 +0000 |
2061 | +++ magicicadaclient/syncdaemon/tests/test_config.py 2018-05-19 20:49:48 +0000 |
2062 | @@ -42,10 +42,10 @@ |
2063 | xdg_cache_home, |
2064 | ) |
2065 | |
2066 | -from contrib.testing.testcase import BaseTwistedTestCase |
2067 | -from ubuntuone import platform |
2068 | -from ubuntuone.platform import open_file, path_exists |
2069 | -from ubuntuone.syncdaemon import config |
2070 | +from magicicadaclient.testing.testcase import BaseTwistedTestCase |
2071 | +from magicicadaclient import platform |
2072 | +from magicicadaclient.platform import open_file, path_exists |
2073 | +from magicicadaclient.syncdaemon import config |
2074 | |
2075 | |
2076 | class TestConfigBasic(BaseTwistedTestCase): |
2077 | |
2078 | === modified file 'magicicadaclient/syncdaemon/tests/test_eq_inotify.py' |
2079 | --- ubuntuone/syncdaemon/tests/test_eq_inotify.py 2016-09-17 14:29:53 +0000 |
2080 | +++ magicicadaclient/syncdaemon/tests/test_eq_inotify.py 2018-05-19 20:49:48 +0000 |
2081 | @@ -40,15 +40,15 @@ |
2082 | from ubuntuone.devtools.handlers import MementoHandler |
2083 | from ubuntuone.devtools.testcases import skipIfOS, skipIfNotOS |
2084 | |
2085 | -from contrib.testing.testcase import ( |
2086 | +from magicicadaclient.testing.testcase import ( |
2087 | BaseTwistedTestCase, |
2088 | FakeMain, |
2089 | Listener, |
2090 | skip_if_darwin_missing_fs_event, |
2091 | skip_if_win32_missing_fs_event, |
2092 | ) |
2093 | -from ubuntuone.syncdaemon.tests.test_eventqueue import BaseEQTestCase |
2094 | -from ubuntuone.platform import ( |
2095 | +from magicicadaclient.syncdaemon.tests.test_eventqueue import BaseEQTestCase |
2096 | +from magicicadaclient.platform import ( |
2097 | make_link, |
2098 | make_dir, |
2099 | open_file, |
2100 | @@ -60,7 +60,7 @@ |
2101 | set_file_readwrite, |
2102 | set_dir_readwrite, |
2103 | ) |
2104 | -from ubuntuone.syncdaemon import event_queue, volume_manager |
2105 | +from magicicadaclient.syncdaemon import event_queue, volume_manager |
2106 | |
2107 | # our logging level |
2108 | TRACE = logging.getLevelName('TRACE') |
2109 | |
2110 | === modified file 'magicicadaclient/syncdaemon/tests/test_eventqueue.py' |
2111 | --- ubuntuone/syncdaemon/tests/test_eventqueue.py 2018-03-08 19:39:13 +0000 |
2112 | +++ magicicadaclient/syncdaemon/tests/test_eventqueue.py 2018-05-19 20:49:48 +0000 |
2113 | @@ -36,15 +36,15 @@ |
2114 | from twisted.internet import defer |
2115 | from twisted.trial.unittest import TestCase |
2116 | |
2117 | -from contrib.testing.testcase import ( |
2118 | +from magicicadaclient.testing.testcase import ( |
2119 | BaseTwistedTestCase, |
2120 | FakeMonitor, |
2121 | FakeVolumeManager, |
2122 | ) |
2123 | -from ubuntuone.platform.filesystem_notifications.monitor import ( |
2124 | +from magicicadaclient.platform.filesystem_notifications.monitor import ( |
2125 | FilesystemMonitor, |
2126 | ) |
2127 | -from ubuntuone.syncdaemon import ( |
2128 | +from magicicadaclient.syncdaemon import ( |
2129 | event_queue, |
2130 | filesystem_manager, |
2131 | tritcask, |
2132 | |
2133 | === modified file 'magicicadaclient/syncdaemon/tests/test_eventsnanny.py' |
2134 | --- ubuntuone/syncdaemon/tests/test_eventsnanny.py 2016-06-04 21:14:35 +0000 |
2135 | +++ magicicadaclient/syncdaemon/tests/test_eventsnanny.py 2018-05-19 20:49:48 +0000 |
2136 | @@ -37,12 +37,12 @@ |
2137 | |
2138 | from twisted.internet import defer, reactor |
2139 | |
2140 | -from contrib.testing.testcase import ( |
2141 | +from magicicadaclient.testing.testcase import ( |
2142 | BaseTwistedTestCase, |
2143 | FakeVolumeManager, |
2144 | skip_if_win32_missing_fs_event, |
2145 | ) |
2146 | -from ubuntuone.syncdaemon import (filesystem_manager, event_queue, |
2147 | +from magicicadaclient.syncdaemon import (filesystem_manager, event_queue, |
2148 | events_nanny, hash_queue, tritcask) |
2149 | |
2150 | |
2151 | |
2152 | === modified file 'magicicadaclient/syncdaemon/tests/test_fileshelf.py' |
2153 | --- ubuntuone/syncdaemon/tests/test_fileshelf.py 2016-06-04 21:14:35 +0000 |
2154 | +++ magicicadaclient/syncdaemon/tests/test_fileshelf.py 2018-05-19 20:49:48 +0000 |
2155 | @@ -39,12 +39,12 @@ |
2156 | from twisted.internet import defer |
2157 | from ubuntuone.devtools.testcases import skipIfOS |
2158 | |
2159 | -from contrib.testing.testcase import BaseTwistedTestCase |
2160 | -from ubuntuone.platform import ( |
2161 | +from magicicadaclient.testing.testcase import BaseTwistedTestCase |
2162 | +from magicicadaclient.platform import ( |
2163 | open_file, |
2164 | path_exists, |
2165 | ) |
2166 | -from ubuntuone.syncdaemon.file_shelf import ( |
2167 | +from magicicadaclient.syncdaemon.file_shelf import ( |
2168 | FileShelf, |
2169 | CachedFileShelf, |
2170 | LRUCache, |
2171 | |
2172 | === modified file 'magicicadaclient/syncdaemon/tests/test_fsm.py' |
2173 | --- ubuntuone/syncdaemon/tests/test_fsm.py 2016-06-03 19:52:03 +0000 |
2174 | +++ magicicadaclient/syncdaemon/tests/test_fsm.py 2018-05-19 20:49:48 +0000 |
2175 | @@ -37,7 +37,7 @@ |
2176 | from mocker import MockerTestCase, ANY |
2177 | from twisted.internet import defer |
2178 | |
2179 | -from contrib.testing.testcase import ( |
2180 | +from magicicadaclient.testing.testcase import ( |
2181 | BaseTwistedTestCase, |
2182 | FakeVolumeManager, |
2183 | FakeMain, |
2184 | @@ -48,7 +48,7 @@ |
2185 | ) |
2186 | |
2187 | from ubuntuone.devtools.handlers import MementoHandler |
2188 | -from ubuntuone.platform import ( |
2189 | +from magicicadaclient.platform import ( |
2190 | listdir, |
2191 | make_dir, |
2192 | make_link, |
2193 | @@ -60,7 +60,7 @@ |
2194 | set_dir_readwrite, |
2195 | stat_path, |
2196 | ) |
2197 | -from ubuntuone.syncdaemon.filesystem_manager import ( |
2198 | +from magicicadaclient.syncdaemon.filesystem_manager import ( |
2199 | DirectoryNotRemovable, |
2200 | EnableShareWrite, |
2201 | FileSystemManager, |
2202 | @@ -70,13 +70,13 @@ |
2203 | TrashTritcaskShelf, |
2204 | TRASH_ROW_TYPE, |
2205 | ) |
2206 | -from ubuntuone.syncdaemon import filesystem_manager, config, logger |
2207 | -from ubuntuone.syncdaemon.file_shelf import FileShelf |
2208 | -from ubuntuone.syncdaemon.tritcask import Tritcask |
2209 | -from ubuntuone.syncdaemon.event_queue import EventQueue |
2210 | -from ubuntuone.syncdaemon.interfaces import IMarker |
2211 | -from ubuntuone.syncdaemon.marker import MDMarker |
2212 | -from ubuntuone.syncdaemon.volume_manager import ( |
2213 | +from magicicadaclient.syncdaemon import filesystem_manager, config, logger |
2214 | +from magicicadaclient.syncdaemon.file_shelf import FileShelf |
2215 | +from magicicadaclient.syncdaemon.tritcask import Tritcask |
2216 | +from magicicadaclient.syncdaemon.event_queue import EventQueue |
2217 | +from magicicadaclient.syncdaemon.interfaces import IMarker |
2218 | +from magicicadaclient.syncdaemon.marker import MDMarker |
2219 | +from magicicadaclient.syncdaemon.volume_manager import ( |
2220 | ACCESS_LEVEL_RO, |
2221 | ACCESS_LEVEL_RW, |
2222 | allow_writes, |
2223 | @@ -4086,9 +4086,9 @@ |
2224 | def setUp(self): |
2225 | """Set up.""" |
2226 | yield super(OsIntegrationTests, self).setUp() |
2227 | - self.open_file = self.mocker.replace('ubuntuone.platform.open_file') |
2228 | - self.normpath = self.mocker.replace('ubuntuone.platform.normpath') |
2229 | - self.listdir = self.mocker.replace('ubuntuone.platform.listdir') |
2230 | + self.open_file = self.mocker.replace('magicicadaclient.platform.open_file') |
2231 | + self.normpath = self.mocker.replace('magicicadaclient.platform.normpath') |
2232 | + self.listdir = self.mocker.replace('magicicadaclient.platform.listdir') |
2233 | |
2234 | def test_get_partial_for_writing(self): |
2235 | """Test that the get partial does use the correct os_helper method.""" |
2236 | |
2237 | === modified file 'magicicadaclient/syncdaemon/tests/test_hashqueue.py' |
2238 | --- ubuntuone/syncdaemon/tests/test_hashqueue.py 2018-04-14 23:34:20 +0000 |
2239 | +++ magicicadaclient/syncdaemon/tests/test_hashqueue.py 2018-05-19 20:49:48 +0000 |
2240 | @@ -44,10 +44,10 @@ |
2241 | from ubuntuone.devtools.handlers import MementoHandler |
2242 | from ubuntuone.devtools.testcases import skipTest |
2243 | |
2244 | -from contrib.testing.testcase import BaseTwistedTestCase |
2245 | -from ubuntuone.platform import open_file, stat_path |
2246 | -from ubuntuone.syncdaemon import hash_queue |
2247 | -from ubuntuone.syncdaemon.hash_queue import HASHQUEUE_DELAY |
2248 | +from magicicadaclient.testing.testcase import BaseTwistedTestCase |
2249 | +from magicicadaclient.platform import open_file, stat_path |
2250 | +from magicicadaclient.syncdaemon import hash_queue |
2251 | +from magicicadaclient.syncdaemon.hash_queue import HASHQUEUE_DELAY |
2252 | |
2253 | FAKE_TIMESTAMP = 1 |
2254 | |
2255 | |
2256 | === modified file 'magicicadaclient/syncdaemon/tests/test_interaction_interfaces.py' |
2257 | --- ubuntuone/syncdaemon/tests/test_interaction_interfaces.py 2018-04-14 23:34:20 +0000 |
2258 | +++ magicicadaclient/syncdaemon/tests/test_interaction_interfaces.py 2018-05-19 20:49:48 +0000 |
2259 | @@ -36,7 +36,7 @@ |
2260 | from twisted.internet import defer |
2261 | from ubuntuone.devtools.handlers import MementoHandler |
2262 | |
2263 | -from contrib.testing.testcase import ( |
2264 | +from magicicadaclient.testing.testcase import ( |
2265 | FAKED_CREDENTIALS, |
2266 | FakeCommand, |
2267 | FakeDownload, |
2268 | @@ -45,17 +45,17 @@ |
2269 | FakeMainTestCase, |
2270 | skipIfOS, |
2271 | ) |
2272 | -from ubuntuone.networkstate.networkstates import ONLINE |
2273 | -from ubuntuone.platform import make_dir, make_link |
2274 | -from ubuntuone.platform.tests.ipc.test_perspective_broker import ( |
2275 | +from magicicadaclient.networkstate.networkstates import ONLINE |
2276 | +from magicicadaclient.platform import make_dir, make_link |
2277 | +from magicicadaclient.platform.tests.ipc.test_perspective_broker import ( |
2278 | FakeNetworkManagerState, |
2279 | ) |
2280 | -from ubuntuone.syncdaemon import ( |
2281 | +from magicicadaclient.syncdaemon import ( |
2282 | config, |
2283 | interaction_interfaces, |
2284 | states, |
2285 | ) |
2286 | -from ubuntuone.syncdaemon.interaction_interfaces import ( |
2287 | +from magicicadaclient.syncdaemon.interaction_interfaces import ( |
2288 | bool_str, |
2289 | get_share_dict, |
2290 | get_udf_dict, |
2291 | @@ -72,8 +72,8 @@ |
2292 | SyncdaemonShares, |
2293 | SyncdaemonStatus, |
2294 | ) |
2295 | -from ubuntuone.syncdaemon.marker import MDMarker |
2296 | -from ubuntuone.syncdaemon.volume_manager import ( |
2297 | +from magicicadaclient.syncdaemon.marker import MDMarker |
2298 | +from magicicadaclient.syncdaemon.volume_manager import ( |
2299 | ACCESS_LEVEL_RO, |
2300 | ACCESS_LEVEL_RW, |
2301 | get_udf_path, |
2302 | |
2303 | === modified file 'magicicadaclient/syncdaemon/tests/test_localrescan.py' |
2304 | --- ubuntuone/syncdaemon/tests/test_localrescan.py 2018-04-14 23:34:20 +0000 |
2305 | +++ magicicadaclient/syncdaemon/tests/test_localrescan.py 2018-05-19 20:49:48 +0000 |
2306 | @@ -40,12 +40,12 @@ |
2307 | from ubuntuone.devtools.handlers import MementoHandler |
2308 | from ubuntuone.devtools.testcases import skipIfOS |
2309 | |
2310 | -from contrib.testing.testcase import ( |
2311 | +from magicicadaclient.testing.testcase import ( |
2312 | BaseTwistedTestCase, |
2313 | FakeVolumeManager, |
2314 | skip_if_win32_and_uses_readonly, |
2315 | ) |
2316 | -from ubuntuone.platform import ( |
2317 | +from magicicadaclient.platform import ( |
2318 | make_dir, |
2319 | make_link, |
2320 | open_file, |
2321 | @@ -59,12 +59,12 @@ |
2322 | set_no_rights, |
2323 | stat_path, |
2324 | ) |
2325 | -from ubuntuone.syncdaemon import ( |
2326 | +from magicicadaclient.syncdaemon import ( |
2327 | event_queue, filesystem_manager, local_rescan, volume_manager |
2328 | ) |
2329 | -from ubuntuone.syncdaemon.marker import MDMarker |
2330 | -from ubuntuone.syncdaemon.tritcask import Tritcask |
2331 | -from ubuntuone.syncdaemon.volume_manager import ( |
2332 | +from magicicadaclient.syncdaemon.marker import MDMarker |
2333 | +from magicicadaclient.syncdaemon.tritcask import Tritcask |
2334 | +from magicicadaclient.syncdaemon.volume_manager import ( |
2335 | ACCESS_LEVEL_RO, |
2336 | ACCESS_LEVEL_RW, |
2337 | ) |
2338 | |
2339 | === modified file 'magicicadaclient/syncdaemon/tests/test_logger.py' |
2340 | --- ubuntuone/syncdaemon/tests/test_logger.py 2016-06-04 21:14:35 +0000 |
2341 | +++ magicicadaclient/syncdaemon/tests/test_logger.py 2018-05-19 20:49:48 +0000 |
2342 | @@ -40,7 +40,7 @@ |
2343 | from ubuntuone.devtools.handlers import MementoHandler |
2344 | from ubuntuone.devtools.testcases import skipIfOS |
2345 | |
2346 | -from ubuntuone.syncdaemon.logger import ( |
2347 | +from magicicadaclient.syncdaemon.logger import ( |
2348 | DebugCapture, |
2349 | NOTE, |
2350 | TRACE, |
2351 | |
2352 | === modified file 'magicicadaclient/syncdaemon/tests/test_main.py' |
2353 | --- ubuntuone/syncdaemon/tests/test_main.py 2017-02-10 01:15:07 +0000 |
2354 | +++ magicicadaclient/syncdaemon/tests/test_main.py 2018-05-19 20:49:48 +0000 |
2355 | @@ -34,21 +34,21 @@ |
2356 | |
2357 | from twisted.internet import defer, reactor |
2358 | from ubuntuone.devtools.handlers import MementoHandler |
2359 | -from ubuntuone.platform import expand_user |
2360 | +from magicicadaclient.platform import expand_user |
2361 | |
2362 | -from contrib.testing.testcase import ( |
2363 | +from magicicadaclient.testing.testcase import ( |
2364 | BaseTwistedTestCase, FAKED_CREDENTIALS, FakeMonitor |
2365 | ) |
2366 | -from ubuntuone.clientdefs import VERSION |
2367 | -from ubuntuone.logger import NOTE |
2368 | -from ubuntuone.platform import ( |
2369 | +from magicicadaclient.clientdefs import VERSION |
2370 | +from magicicadaclient.logger import NOTE |
2371 | +from magicicadaclient.platform import ( |
2372 | is_link, |
2373 | make_dir, |
2374 | make_link, |
2375 | path_exists, |
2376 | remove_dir, |
2377 | ) |
2378 | -from ubuntuone.syncdaemon import main as main_mod |
2379 | +from magicicadaclient.syncdaemon import main as main_mod |
2380 | |
2381 | |
2382 | class FakeListener(object): |
2383 | |
2384 | === modified file 'magicicadaclient/syncdaemon/tests/test_mutefilter.py' |
2385 | --- ubuntuone/syncdaemon/tests/test_mutefilter.py 2016-06-04 21:14:35 +0000 |
2386 | +++ magicicadaclient/syncdaemon/tests/test_mutefilter.py 2018-05-19 20:49:48 +0000 |
2387 | @@ -32,7 +32,7 @@ |
2388 | |
2389 | import unittest |
2390 | |
2391 | -from ubuntuone.syncdaemon.mute_filter import MuteFilter |
2392 | +from magicicadaclient.syncdaemon.mute_filter import MuteFilter |
2393 | |
2394 | |
2395 | class MuteFilterTests(unittest.TestCase): |
2396 | |
2397 | === modified file 'magicicadaclient/syncdaemon/tests/test_offloadqueue.py' |
2398 | --- ubuntuone/syncdaemon/tests/test_offloadqueue.py 2013-01-16 19:10:28 +0000 |
2399 | +++ magicicadaclient/syncdaemon/tests/test_offloadqueue.py 2018-05-19 20:49:48 +0000 |
2400 | @@ -37,9 +37,9 @@ |
2401 | from twisted.trial.unittest import TestCase as TwistedTestCase |
2402 | |
2403 | from ubuntuone.devtools.handlers import MementoHandler |
2404 | -from ubuntuone.syncdaemon.offload_queue import OffloadQueue, STRUCT_SIZE |
2405 | -from ubuntuone.syncdaemon.interfaces import IMarker |
2406 | -from ubuntuone.syncdaemon.marker import MDMarker |
2407 | +from magicicadaclient.syncdaemon.offload_queue import OffloadQueue, STRUCT_SIZE |
2408 | +from magicicadaclient.syncdaemon.interfaces import IMarker |
2409 | +from magicicadaclient.syncdaemon.marker import MDMarker |
2410 | |
2411 | |
2412 | class OffloadQueueTestCase(TwistedTestCase): |
2413 | |
2414 | === modified file 'magicicadaclient/syncdaemon/tests/test_pathlockingtree.py' |
2415 | --- ubuntuone/syncdaemon/tests/test_pathlockingtree.py 2016-06-04 21:14:35 +0000 |
2416 | +++ magicicadaclient/syncdaemon/tests/test_pathlockingtree.py 2018-05-19 20:49:48 +0000 |
2417 | @@ -36,7 +36,7 @@ |
2418 | from twisted.trial.unittest import TestCase as TwistedTestCase |
2419 | |
2420 | from ubuntuone.devtools.handlers import MementoHandler |
2421 | -from ubuntuone.syncdaemon.action_queue import PathLockingTree |
2422 | +from magicicadaclient.syncdaemon.action_queue import PathLockingTree |
2423 | |
2424 | |
2425 | class InternalDeferredTests(TwistedTestCase): |
2426 | |
2427 | === modified file 'magicicadaclient/syncdaemon/tests/test_states.py' |
2428 | --- ubuntuone/syncdaemon/tests/test_states.py 2018-03-08 18:32:01 +0000 |
2429 | +++ magicicadaclient/syncdaemon/tests/test_states.py 2018-05-19 20:49:48 +0000 |
2430 | @@ -33,9 +33,9 @@ |
2431 | from twisted.internet import defer, reactor |
2432 | from twisted.trial.unittest import TestCase as TwistedTestCase |
2433 | |
2434 | -from contrib.testing.testcase import FakeLogger |
2435 | -from ubuntuone.syncdaemon import states |
2436 | -from ubuntuone.syncdaemon.states import ( |
2437 | +from magicicadaclient.testing.testcase import FakeLogger |
2438 | +from magicicadaclient.syncdaemon import states |
2439 | +from magicicadaclient.syncdaemon.states import ( |
2440 | ConnectionManager, |
2441 | Node, |
2442 | QueueManager, |
2443 | |
2444 | === modified file 'magicicadaclient/syncdaemon/tests/test_sync.py' |
2445 | --- ubuntuone/syncdaemon/tests/test_sync.py 2018-04-14 23:34:20 +0000 |
2446 | +++ magicicadaclient/syncdaemon/tests/test_sync.py 2018-05-19 20:49:48 +0000 |
2447 | @@ -46,25 +46,25 @@ |
2448 | from ubuntuone.devtools.handlers import MementoHandler |
2449 | from ubuntuone.devtools.testcases import skipIfOS |
2450 | |
2451 | -from contrib.testing.testcase import ( |
2452 | +from magicicadaclient.testing.testcase import ( |
2453 | FakeMain, |
2454 | FakeVolumeManager, |
2455 | BaseTwistedTestCase, |
2456 | Listener, |
2457 | ) |
2458 | -from ubuntuone.platform import ( |
2459 | +from magicicadaclient.platform import ( |
2460 | make_dir, |
2461 | open_file, |
2462 | remove_file, |
2463 | stat_path, |
2464 | ) |
2465 | -from ubuntuone.syncdaemon.filesystem_manager import FileSystemManager |
2466 | -from ubuntuone.syncdaemon.tritcask import Tritcask |
2467 | -from ubuntuone.syncdaemon.fsm import fsm as fsm_module |
2468 | -from ubuntuone.syncdaemon.sync import FSKey, Sync, SyncStateMachineRunner |
2469 | -from ubuntuone.syncdaemon.volume_manager import Share |
2470 | -from ubuntuone.syncdaemon.event_queue import EventQueue, EVENTS |
2471 | -from ubuntuone.syncdaemon.marker import MDMarker |
2472 | +from magicicadaclient.syncdaemon.filesystem_manager import FileSystemManager |
2473 | +from magicicadaclient.syncdaemon.tritcask import Tritcask |
2474 | +from magicicadaclient.syncdaemon.fsm import fsm as fsm_module |
2475 | +from magicicadaclient.syncdaemon.sync import FSKey, Sync, SyncStateMachineRunner |
2476 | +from magicicadaclient.syncdaemon.volume_manager import Share |
2477 | +from magicicadaclient.syncdaemon.event_queue import EventQueue, EVENTS |
2478 | +from magicicadaclient.syncdaemon.marker import MDMarker |
2479 | |
2480 | |
2481 | class TestSyncClassAPI(unittest.TestCase): |
2482 | |
2483 | === modified file 'magicicadaclient/syncdaemon/tests/test_tritcask.py' |
2484 | --- ubuntuone/syncdaemon/tests/test_tritcask.py 2016-07-30 21:58:48 +0000 |
2485 | +++ magicicadaclient/syncdaemon/tests/test_tritcask.py 2018-05-19 20:49:48 +0000 |
2486 | @@ -42,10 +42,10 @@ |
2487 | from operator import attrgetter |
2488 | from twisted.internet import defer |
2489 | |
2490 | -from contrib.testing.testcase import BaseTwistedTestCase |
2491 | +from magicicadaclient.testing.testcase import BaseTwistedTestCase |
2492 | from ubuntuone.devtools.handlers import MementoHandler |
2493 | -from ubuntuone.syncdaemon import tritcask |
2494 | -from ubuntuone.syncdaemon.tritcask import ( |
2495 | +from magicicadaclient.syncdaemon import tritcask |
2496 | +from magicicadaclient.syncdaemon.tritcask import ( |
2497 | TOMBSTONE, |
2498 | LIVE, |
2499 | HINT, |
2500 | |
2501 | === modified file 'magicicadaclient/syncdaemon/tests/test_u1fsfsm.py' |
2502 | --- ubuntuone/syncdaemon/tests/test_u1fsfsm.py 2016-06-04 21:14:35 +0000 |
2503 | +++ magicicadaclient/syncdaemon/tests/test_u1fsfsm.py 2018-05-19 20:49:48 +0000 |
2504 | @@ -34,7 +34,7 @@ |
2505 | import os |
2506 | |
2507 | |
2508 | -from ubuntuone.syncdaemon.fsm import fsm |
2509 | +from magicicadaclient.syncdaemon.fsm import fsm |
2510 | |
2511 | |
2512 | def p(name): |
2513 | |
2514 | === modified file 'magicicadaclient/syncdaemon/tests/test_utils.py' |
2515 | --- ubuntuone/syncdaemon/tests/test_utils.py 2012-07-13 16:06:27 +0000 |
2516 | +++ magicicadaclient/syncdaemon/tests/test_utils.py 2018-05-19 20:49:48 +0000 |
2517 | @@ -32,7 +32,7 @@ |
2518 | |
2519 | from twisted.trial.unittest import TestCase |
2520 | |
2521 | -import ubuntuone.syncdaemon.utils |
2522 | +from magicicadaclient.syncdaemon import utils |
2523 | |
2524 | |
2525 | class UtilsTestCase(TestCase): |
2526 | @@ -41,18 +41,18 @@ |
2527 | def test_get_sd_bin_cmd_src_nonlinux(self): |
2528 | """Test that we use the buildout python running from source.""" |
2529 | self.patch(sys, 'platform', 'darwin') |
2530 | - self.patch(ubuntuone.syncdaemon.utils, 'get_program_path', |
2531 | - lambda _, *args, **kwargs: 'test-path') |
2532 | - args = ubuntuone.syncdaemon.utils.get_sd_bin_cmd() |
2533 | + self.patch( |
2534 | + utils, 'get_program_path', lambda _, *args, **kwargs: 'test-path') |
2535 | + args = utils.get_sd_bin_cmd() |
2536 | self.assertEqual(len(args), 2) |
2537 | self.assertEqual(args[0], 'python') |
2538 | |
2539 | def test_get_sd_bin_cmd_src_linux(self): |
2540 | """Test that we DO NOT use the buildout python running from source.""" |
2541 | self.patch(sys, 'platform', 'linux2') |
2542 | - self.patch(ubuntuone.syncdaemon.utils, 'get_program_path', |
2543 | - lambda _, *args, **kwargs: 'test-path') |
2544 | - args = ubuntuone.syncdaemon.utils.get_sd_bin_cmd() |
2545 | + self.patch( |
2546 | + utils, 'get_program_path', lambda _, *args, **kwargs: 'test-path') |
2547 | + args = utils.get_sd_bin_cmd() |
2548 | self.assertEqual(len(args), 1) |
2549 | self.assertEqual(args[0], 'test-path') |
2550 | |
2551 | @@ -61,9 +61,9 @@ |
2552 | sys.frozen = True |
2553 | self.addCleanup(delattr, sys, 'frozen') |
2554 | self.patch(sys, 'platform', 'darwin') |
2555 | - self.patch(ubuntuone.syncdaemon.utils, 'get_program_path', |
2556 | - lambda _, *args, **kwargs: 'test-path') |
2557 | - args = ubuntuone.syncdaemon.utils.get_sd_bin_cmd() |
2558 | + self.patch( |
2559 | + utils, 'get_program_path', lambda _, *args, **kwargs: 'test-path') |
2560 | + args = utils.get_sd_bin_cmd() |
2561 | self.assertEqual(len(args), 1) |
2562 | self.assertEqual(args[0], 'test-path') |
2563 | |
2564 | @@ -72,8 +72,8 @@ |
2565 | sys.frozen = True |
2566 | self.addCleanup(delattr, sys, 'frozen') |
2567 | self.patch(sys, 'platform', 'linux2') |
2568 | - self.patch(ubuntuone.syncdaemon.utils, 'get_program_path', |
2569 | - lambda _, *args, **kwargs: 'test-path') |
2570 | - args = ubuntuone.syncdaemon.utils.get_sd_bin_cmd() |
2571 | + self.patch( |
2572 | + utils, 'get_program_path', lambda _, *args, **kwargs: 'test-path') |
2573 | + args = utils.get_sd_bin_cmd() |
2574 | self.assertEqual(len(args), 1) |
2575 | self.assertEqual(args[0], 'test-path') |
2576 | |
2577 | === modified file 'magicicadaclient/syncdaemon/tests/test_vm.py' |
2578 | --- ubuntuone/syncdaemon/tests/test_vm.py 2018-04-14 23:34:20 +0000 |
2579 | +++ magicicadaclient/syncdaemon/tests/test_vm.py 2018-05-19 20:49:48 +0000 |
2580 | @@ -48,13 +48,13 @@ |
2581 | from ubuntuone.devtools.handlers import MementoHandler |
2582 | from ubuntuone.devtools.testcases import skipIfOS |
2583 | |
2584 | -from contrib.testing.testcase import ( |
2585 | +from magicicadaclient.testing.testcase import ( |
2586 | BaseTwistedTestCase, |
2587 | FakeMain, |
2588 | ) |
2589 | -from ubuntuone import platform |
2590 | -from ubuntuone.syncdaemon import config, event_queue, tritcask, volume_manager |
2591 | -from ubuntuone.syncdaemon.volume_manager import ( |
2592 | +from magicicadaclient import platform |
2593 | +from magicicadaclient.syncdaemon import config, event_queue, tritcask, volume_manager |
2594 | +from magicicadaclient.syncdaemon.volume_manager import ( |
2595 | ACCESS_LEVEL_RO, |
2596 | ACCESS_LEVEL_RW, |
2597 | get_udf_path, |
2598 | @@ -72,7 +72,7 @@ |
2599 | VMTritcaskShelf, |
2600 | VolumeDoesNotExist, |
2601 | ) |
2602 | -from ubuntuone.platform import ( |
2603 | +from magicicadaclient.platform import ( |
2604 | make_link, |
2605 | make_dir, |
2606 | open_file, |
2607 | @@ -1922,7 +1922,7 @@ |
2608 | def test_add_udf_with_content(self): |
2609 | """Test for VolumeManager.add_udf with content on disk.""" |
2610 | # create a sync instance |
2611 | - from ubuntuone.syncdaemon import sync |
2612 | + from magicicadaclient.syncdaemon import sync |
2613 | sync = sync.Sync(self.main) |
2614 | suggested_path = u"~/suggested_path" |
2615 | udf = self._create_udf(suggested_path=suggested_path, |
2616 | @@ -4131,7 +4131,7 @@ |
2617 | files = ['not_yet.partial', ] |
2618 | mocker = Mocker() |
2619 | # ensure that we do use the platform method and not the renamed one |
2620 | - os_helper_rename = mocker.replace('ubuntuone.platform.rename') |
2621 | + os_helper_rename = mocker.replace('magicicadaclient.platform.rename') |
2622 | |
2623 | def is_string(x): |
2624 | return isinstance(x, str) |
2625 | @@ -4148,7 +4148,7 @@ |
2626 | mocker = Mocker() |
2627 | # ensure that we do use the platform method and not the renamed one |
2628 | self.md_upgrader._upgrade_metadata_6 = mocker.mock() |
2629 | - os_helper_rename = mocker.replace('ubuntuone.platform.rename') |
2630 | + os_helper_rename = mocker.replace('magicicadaclient.platform.rename') |
2631 | |
2632 | def is_string(x): |
2633 | return isinstance(x, str) |
2634 | |
2635 | === modified file 'magicicadaclient/syncdaemon/tests/test_vm_helper.py' |
2636 | --- ubuntuone/syncdaemon/tests/test_vm_helper.py 2016-06-03 19:52:03 +0000 |
2637 | +++ magicicadaclient/syncdaemon/tests/test_vm_helper.py 2018-05-19 20:49:48 +0000 |
2638 | @@ -35,11 +35,11 @@ |
2639 | import os |
2640 | import uuid |
2641 | |
2642 | -from contrib.testing.testcase import BaseTwistedTestCase |
2643 | -from ubuntuone.platform import expand_user, os_helper |
2644 | -from ubuntuone.syncdaemon import vm_helper |
2645 | -from ubuntuone.syncdaemon.tests.test_vm import BaseVolumeManagerTests |
2646 | -from ubuntuone.syncdaemon.vm_helper import ( |
2647 | +from magicicadaclient.testing.testcase import BaseTwistedTestCase |
2648 | +from magicicadaclient.platform import expand_user, os_helper |
2649 | +from magicicadaclient.syncdaemon import vm_helper |
2650 | +from magicicadaclient.syncdaemon.tests.test_vm import BaseVolumeManagerTests |
2651 | +from magicicadaclient.syncdaemon.vm_helper import ( |
2652 | create_shares_link, |
2653 | get_share_dir_name, |
2654 | get_udf_path, |
2655 | |
2656 | === modified file 'magicicadaclient/syncdaemon/tritcask.py' |
2657 | --- ubuntuone/syncdaemon/tritcask.py 2015-09-19 23:15:50 +0000 |
2658 | +++ magicicadaclient/syncdaemon/tritcask.py 2018-05-19 20:49:48 +0000 |
2659 | @@ -49,7 +49,7 @@ |
2660 | from collections import namedtuple |
2661 | from UserDict import DictMixin |
2662 | |
2663 | -from ubuntuone.platform import ( |
2664 | +from magicicadaclient.platform import ( |
2665 | is_dir, |
2666 | listdir, |
2667 | make_dir, |
2668 | |
2669 | === modified file 'magicicadaclient/syncdaemon/vm_helper.py' |
2670 | --- ubuntuone/syncdaemon/vm_helper.py 2012-04-09 20:07:05 +0000 |
2671 | +++ magicicadaclient/syncdaemon/vm_helper.py 2018-05-19 20:49:48 +0000 |
2672 | @@ -1,4 +1,4 @@ |
2673 | -# ubuntuone.platform.linux.vm_helper- vm helpers for linux. |
2674 | +# magicicadaclient.platform.linux.vm_helper- vm helpers for linux. |
2675 | # |
2676 | # Authors: Guillermo Gonzalez <guillermo.gonzalez@canonical.com> |
2677 | # Natalia B. Bidart <natalia.bidart@canonical.com> |
2678 | @@ -33,8 +33,8 @@ |
2679 | |
2680 | import os |
2681 | |
2682 | -from ubuntuone.platform import expand_user |
2683 | -from ubuntuone.platform import ( |
2684 | +from magicicadaclient.platform import expand_user |
2685 | +from magicicadaclient.platform import ( |
2686 | is_link, |
2687 | make_link, |
2688 | path_exists, |
2689 | |
2690 | === modified file 'magicicadaclient/syncdaemon/volume_manager.py' |
2691 | --- ubuntuone/syncdaemon/volume_manager.py 2018-04-14 23:34:20 +0000 |
2692 | +++ magicicadaclient/syncdaemon/volume_manager.py 2018-05-19 20:49:48 +0000 |
2693 | @@ -49,19 +49,19 @@ |
2694 | RootVolume, |
2695 | ) |
2696 | from twisted.internet import defer |
2697 | -from ubuntuone.platform import expand_user |
2698 | +from magicicadaclient.platform import expand_user |
2699 | |
2700 | -from ubuntuone.syncdaemon.marker import MDMarker |
2701 | -from ubuntuone.syncdaemon.interfaces import IMarker |
2702 | -from ubuntuone.syncdaemon import file_shelf, config |
2703 | -from ubuntuone.syncdaemon.tritcask import TritcaskShelf |
2704 | -from ubuntuone.syncdaemon.vm_helper import ( |
2705 | +from magicicadaclient.syncdaemon.marker import MDMarker |
2706 | +from magicicadaclient.syncdaemon.interfaces import IMarker |
2707 | +from magicicadaclient.syncdaemon import file_shelf, config |
2708 | +from magicicadaclient.syncdaemon.tritcask import TritcaskShelf |
2709 | +from magicicadaclient.syncdaemon.vm_helper import ( |
2710 | create_shares_link, |
2711 | get_share_dir_name, |
2712 | get_udf_path, |
2713 | get_udf_suggested_path, |
2714 | ) |
2715 | -from ubuntuone.platform import ( |
2716 | +from magicicadaclient.platform import ( |
2717 | allow_writes, |
2718 | get_path_list, |
2719 | is_link, |
2720 | @@ -1589,7 +1589,7 @@ |
2721 | |
2722 | def _upgrade_metadata_None(self, md_version): |
2723 | """Upgrade the shelf layout, for *very* old clients.""" |
2724 | - from ubuntuone.syncdaemon.volume_manager import LegacyShareFileShelf |
2725 | + from magicicadaclient.syncdaemon.volume_manager import LegacyShareFileShelf |
2726 | self.log.debug('Upgrading the share shelf layout') |
2727 | # the shelf already exists, and don't have a .version file |
2728 | # first backup the old data |
2729 | @@ -1630,7 +1630,7 @@ |
2730 | Upgrade all pickled Share to the new package/module layout. |
2731 | |
2732 | """ |
2733 | - from ubuntuone.syncdaemon.volume_manager import LegacyShareFileShelf |
2734 | + from magicicadaclient.syncdaemon.volume_manager import LegacyShareFileShelf |
2735 | self.log.debug('upgrading share shelfs from metadata 1') |
2736 | shares = LegacyShareFileShelf(self._shares_md_dir) |
2737 | for key, share in shares.iteritems(): |
2738 | @@ -1700,7 +1700,7 @@ |
2739 | move "~/<root>/My Files" contents to "~/<root>" |
2740 | |
2741 | """ |
2742 | - from ubuntuone.syncdaemon.volume_manager import LegacyShareFileShelf |
2743 | + from magicicadaclient.syncdaemon.volume_manager import LegacyShareFileShelf |
2744 | self.log.debug('upgrading from metadata 3 (new layout)') |
2745 | old_share_dir = os.path.join(self._root_dir, 'Shared With Me') |
2746 | old_root_dir = os.path.join(self._root_dir, 'My Files') |
2747 | @@ -1783,7 +1783,7 @@ |
2748 | |
2749 | def _upgrade_metadata_5(self, md_version): |
2750 | """Upgrade to version 6 (plain dict storage).""" |
2751 | - from ubuntuone.syncdaemon.volume_manager import ( |
2752 | + from magicicadaclient.syncdaemon.volume_manager import ( |
2753 | VMFileShelf, LegacyShareFileShelf, UDF) |
2754 | self.log.debug('upgrading from metadata 5') |
2755 | bkp_dir = os.path.join(os.path.dirname(self._data_dir), '5.bkp') |
2756 | @@ -1820,7 +1820,7 @@ |
2757 | |
2758 | def _upgrade_share_to_volume(self, share, shared=False): |
2759 | """Upgrade from _Share to new Volume hierarchy.""" |
2760 | - from ubuntuone.syncdaemon.volume_manager import ( |
2761 | + from magicicadaclient.syncdaemon.volume_manager import ( |
2762 | VMFileShelf, Root, Share, Shared) |
2763 | |
2764 | def upgrade_share_dict(share): |
2765 | @@ -1857,7 +1857,7 @@ |
2766 | |
2767 | def _upgrade_metadata_6(self, md_version): |
2768 | """Upgrade to version 7, tritcask!.""" |
2769 | - from ubuntuone.syncdaemon.volume_manager import ( |
2770 | + from magicicadaclient.syncdaemon.volume_manager import ( |
2771 | VMFileShelf, VMTritcaskShelf, |
2772 | SHARE_ROW_TYPE, SHARED_ROW_TYPE, UDF_ROW_TYPE, |
2773 | ) |
2774 | |
2775 | === renamed directory 'contrib/testing' => 'magicicadaclient/testing' |
2776 | === modified file 'magicicadaclient/testing/testcase.py' |
2777 | --- contrib/testing/testcase.py 2018-04-23 02:21:03 +0000 |
2778 | +++ magicicadaclient/testing/testcase.py 2018-05-19 20:49:48 +0000 |
2779 | @@ -47,7 +47,7 @@ |
2780 | from zope.interface import implements |
2781 | from zope.interface.verify import verifyObject |
2782 | |
2783 | -from ubuntuone.syncdaemon import ( |
2784 | +from magicicadaclient.syncdaemon import ( |
2785 | config, |
2786 | action_queue, |
2787 | event_queue, |
2788 | @@ -59,9 +59,9 @@ |
2789 | local_rescan, |
2790 | tritcask, |
2791 | ) |
2792 | -from ubuntuone.syncdaemon import logger |
2793 | -from ubuntuone import platform |
2794 | -from ubuntuone.platform import ( |
2795 | +from magicicadaclient.syncdaemon import logger |
2796 | +from magicicadaclient import platform |
2797 | +from magicicadaclient.platform import ( |
2798 | can_write, |
2799 | make_dir, |
2800 | path_exists, |
2801 | |
2802 | === modified file 'magicicadaclient/tests/test_keyring.py' |
2803 | --- ubuntuone/tests/test_keyring.py 2016-05-29 19:15:01 +0000 |
2804 | +++ magicicadaclient/tests/test_keyring.py 2018-05-19 20:49:48 +0000 |
2805 | @@ -36,7 +36,7 @@ |
2806 | from twisted.internet.defer import inlineCallbacks |
2807 | from twisted.trial.unittest import TestCase |
2808 | |
2809 | -from ubuntuone import keyring |
2810 | +from magicicadaclient import keyring |
2811 | |
2812 | |
2813 | class MockItem(object): |
2814 | |
2815 | === modified file 'magicicadaclient/utils/ipc.py' |
2816 | --- ubuntuone/utils/ipc.py 2016-06-04 21:14:35 +0000 |
2817 | +++ magicicadaclient/utils/ipc.py 2018-05-19 20:49:48 +0000 |
2818 | @@ -45,7 +45,7 @@ |
2819 | Root, |
2820 | ) |
2821 | |
2822 | -from ubuntuone.utils.tcpactivation import ( |
2823 | +from magicicadaclient.utils.tcpactivation import ( |
2824 | ActivationClient, |
2825 | ActivationConfig, |
2826 | ActivationInstance, |
2827 | |
2828 | === modified file 'magicicadaclient/utils/tests/test_common.py' |
2829 | --- ubuntuone/utils/tests/test_common.py 2017-01-07 18:51:07 +0000 |
2830 | +++ magicicadaclient/utils/tests/test_common.py 2018-05-19 20:49:48 +0000 |
2831 | @@ -41,8 +41,8 @@ |
2832 | from ubuntuone.devtools.handlers import MementoHandler |
2833 | from ubuntuone.devtools.testing.txwebserver import HTTPWebServer |
2834 | |
2835 | -from ubuntuone import utils |
2836 | -from ubuntuone.tests import TestCase |
2837 | +from magicicadaclient import utils |
2838 | +from magicicadaclient.tests import TestCase |
2839 | |
2840 | CONSTANTS_MODULE = 'ubuntuone.clientdefs' |
2841 | NOT_DEFINED = object() |
2842 | |
2843 | === modified file 'magicicadaclient/utils/tests/test_ipc.py' |
2844 | --- ubuntuone/utils/tests/test_ipc.py 2016-06-04 21:14:35 +0000 |
2845 | +++ magicicadaclient/utils/tests/test_ipc.py 2018-05-19 20:49:48 +0000 |
2846 | @@ -46,8 +46,8 @@ |
2847 | TCPPbServerTestCase, |
2848 | ) |
2849 | |
2850 | -from ubuntuone.tests import TestCase |
2851 | -from ubuntuone.utils import ipc |
2852 | +from magicicadaclient.tests import TestCase |
2853 | +from magicicadaclient.utils import ipc |
2854 | |
2855 | |
2856 | TEST_SERVICE = 'foo-service' |
2857 | |
2858 | === modified file 'magicicadaclient/utils/tests/test_locale.py' |
2859 | --- ubuntuone/utils/tests/test_locale.py 2016-05-29 00:50:05 +0000 |
2860 | +++ magicicadaclient/utils/tests/test_locale.py 2018-05-19 20:49:48 +0000 |
2861 | @@ -32,7 +32,7 @@ |
2862 | |
2863 | from twisted.trial.unittest import TestCase |
2864 | |
2865 | -from ubuntuone.utils import locale |
2866 | +from magicicadaclient.utils import locale |
2867 | |
2868 | NO_VALUE = object() |
2869 | |
2870 | |
2871 | === modified file 'magicicadaclient/utils/tests/test_tcpactivation.py' |
2872 | --- ubuntuone/utils/tests/test_tcpactivation.py 2018-03-08 19:39:13 +0000 |
2873 | +++ magicicadaclient/utils/tests/test_tcpactivation.py 2018-05-19 20:49:48 +0000 |
2874 | @@ -41,8 +41,8 @@ |
2875 | TidyTCPServer, |
2876 | ) |
2877 | |
2878 | -from ubuntuone.utils import tcpactivation |
2879 | -from ubuntuone.utils.tcpactivation import ( |
2880 | +from magicicadaclient.utils import tcpactivation |
2881 | +from magicicadaclient.utils.tcpactivation import ( |
2882 | ActivationClient, |
2883 | ActivationConfig, |
2884 | ActivationDetector, |
2885 | |
2886 | === modified file 'magicicadaclient/utils/tests/test_translation.py' |
2887 | --- ubuntuone/utils/tests/test_translation.py 2016-06-04 21:14:35 +0000 |
2888 | +++ magicicadaclient/utils/tests/test_translation.py 2018-05-19 20:49:48 +0000 |
2889 | @@ -1,7 +1,7 @@ |
2890 | # -*- coding: utf-8 -*- |
2891 | # |
2892 | # Copyright 2012 Canonical Ltd. |
2893 | -# Copyright 2015-2016 Chicharreros (https://launchpad.net/~chicharreros) |
2894 | +# Copyright 2015-2018 Chicharreros (https://launchpad.net/~chicharreros) |
2895 | # |
2896 | # This program is free software: you can redistribute it and/or modify it |
2897 | # under the terms of the GNU General Public License version 3, as published |
2898 | @@ -36,7 +36,7 @@ |
2899 | from twisted.internet import defer |
2900 | from ubuntuone.devtools.testcases import TestCase, skipIfNotOS |
2901 | |
2902 | -from ubuntuone.utils import translation |
2903 | +from magicicadaclient.utils import translation |
2904 | |
2905 | TEST_DOMAIN = 'test-domain' |
2906 | TEST_LANG_DEFAULTS_EN_FIRST = ['en', 'pt-PT'] |
2907 | @@ -73,8 +73,8 @@ |
2908 | |
2909 | def test_import(self): |
2910 | """Test whether import translation defines _ as a builtin.""" |
2911 | - import ubuntuone.utils.translation |
2912 | - assert ubuntuone.utils.translation |
2913 | + import magicicadaclient.utils.translation |
2914 | + assert magicicadaclient.utils.translation |
2915 | self.assertFalse('_' in __builtins__) |
2916 | |
2917 | @skipIfNotOS('darwin', 'Test requires pyobjc-Cocoa') |
2918 | |
2919 | === modified file 'magicicadaclient/utils/tests/test_txsecrets.py' |
2920 | --- ubuntuone/utils/tests/test_txsecrets.py 2016-06-04 21:14:35 +0000 |
2921 | +++ magicicadaclient/utils/tests/test_txsecrets.py 2018-05-19 20:49:48 +0000 |
2922 | @@ -38,7 +38,7 @@ |
2923 | from twisted.internet.defer import inlineCallbacks, returnValue |
2924 | from ubuntuone.devtools.testcases.dbus import DBusTestCase |
2925 | |
2926 | -from ubuntuone.utils import txsecrets |
2927 | +from magicicadaclient.utils import txsecrets |
2928 | |
2929 | KEY_TYPE_ATTR = {"key-type": "Foo credentials"} |
2930 | ERROR_CREATE_BUT_LOCKED = "Cannot create an item in a locked collection" |
2931 | |
2932 | === modified file 'run-tests' |
2933 | --- run-tests 2018-03-18 11:59:08 +0000 |
2934 | +++ run-tests 2018-05-19 20:49:48 +0000 |
2935 | @@ -34,17 +34,17 @@ |
2936 | MODULE="$@" |
2937 | else |
2938 | # run all tests, useful for tarmac and reviews |
2939 | - MODULE="ubuntuone" |
2940 | + MODULE="magicicadaclient" |
2941 | fi |
2942 | |
2943 | SYSNAME=`uname -s` |
2944 | if [ "$SYSNAME" == "Darwin" ]; then |
2945 | IGNORE_FILES="test_linux.py,test_windows.py" |
2946 | - IGNORE_PATHS="ubuntuone/platform/tests/linux" |
2947 | + IGNORE_PATHS="magicicadaclient/platform/tests/linux" |
2948 | else |
2949 | # Linux |
2950 | IGNORE_FILES="test_darwin.py,test_fsevents_daemon.py,test_windows.py" |
2951 | - IGNORE_PATHS="ubuntuone/platform/tests/windows" |
2952 | + IGNORE_PATHS="magicicadaclient/platform/tests/windows" |
2953 | fi |
2954 | |
2955 | echo "*** Running test suite for ""$MODULE"" ***" |
2956 | |
2957 | === removed file 'ubuntuone-client.pth' |
2958 | --- ubuntuone-client.pth 2013-06-10 19:27:21 +0000 |
2959 | +++ ubuntuone-client.pth 1970-01-01 00:00:00 +0000 |
2960 | @@ -1,1 +0,0 @@ |
2961 | -ubuntuone-client |
Awesome!! Thanks