Merge lp:~nataliabidart/magicicada-client/hook-with-github into lp:magicicada-client
- hook-with-github
- Merge into trunk
Proposed by
Natalia Bidart
Status: | Merged |
---|---|
Approved by: | Natalia Bidart |
Approved revision: | 1408 |
Merged at revision: | 1407 |
Proposed branch: | lp:~nataliabidart/magicicada-client/hook-with-github |
Merge into: | lp:magicicada-client |
Diff against target: |
800 lines (+97/-94) 32 files modified
contrib/testing/__init__.py (+1/-1) dependencies-devel.txt (+2/-0) dependencies.txt (+1/-0) setup.py (+5/-5) tests/platform/credentials/test_ipc_service.py (+1/-1) tests/platform/credentials/test_linux.py (+2/-2) tests/platform/linux/test_vm.py (+1/-1) tests/platform/sync_menu/test_linux.py (+1/-1) tests/platform/test_credentials.py (+1/-1) tests/proxy/__init__.py (+1/-1) tests/syncdaemon/test_fsm.py (+18/-18) tests/syncdaemon/test_vm.py (+1/-1) ubuntuone/platform/credentials/__init__.py (+17/-17) ubuntuone/platform/credentials/dbus_service.py (+9/-9) ubuntuone/platform/credentials/ipc_service.py (+8/-8) ubuntuone/platform/launcher/linux.py (+1/-1) ubuntuone/platform/launcher/windows.py (+1/-1) ubuntuone/platform/notification/linux.py (+1/-1) ubuntuone/platform/notification/windows.py (+1/-1) ubuntuone/platform/session/linux.py (+1/-1) ubuntuone/platform/sync_menu/linux.py (+9/-9) ubuntuone/proxy/__init__.py (+1/-1) ubuntuone/proxy/tunnel_client.py (+1/-1) ubuntuone/proxy/tunnel_server.py (+1/-1) ubuntuone/status/__init__.py (+1/-1) ubuntuone/status/aggregator.py (+2/-2) ubuntuone/status/notification.py (+1/-1) ubuntuone/syncdaemon/__init__.py (+1/-1) ubuntuone/syncdaemon/action_queue.py (+1/-1) ubuntuone/syncdaemon/filesystem_manager.py (+2/-2) ubuntuone/syncdaemon/main.py (+1/-1) ubuntuone/syncdaemon/volume_manager.py (+2/-2) |
To merge this branch: | bzr merge lp:~nataliabidart/magicicada-client/hook-with-github |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Facundo Batista | Approve | ||
Review via email: mp+271416@code.launchpad.net |
Commit message
- Started gathering dependencies.
- Initial search and replace for s/Ubuntu One/Magicicada/
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 'contrib/testing/__init__.py' |
2 | --- contrib/testing/__init__.py 2012-04-09 20:07:05 +0000 |
3 | +++ contrib/testing/__init__.py 2015-09-17 02:36:40 +0000 |
4 | @@ -24,4 +24,4 @@ |
5 | # do not wish to do so, delete this exception statement from your |
6 | # version. If you delete this exception statement from all source |
7 | # files in the program, then also delete it here. |
8 | -"""Testing utilities for Ubuntu One client code.""" |
9 | +"""Testing utilities for Magicicada client code.""" |
10 | |
11 | === added file 'dependencies-devel.txt' |
12 | --- dependencies-devel.txt 1970-01-01 00:00:00 +0000 |
13 | +++ dependencies-devel.txt 2015-09-17 02:36:40 +0000 |
14 | @@ -0,0 +1,2 @@ |
15 | +ubuntuone-dev-tools |
16 | +python-mocker |
17 | |
18 | === added file 'dependencies.txt' |
19 | --- dependencies.txt 1970-01-01 00:00:00 +0000 |
20 | +++ dependencies.txt 2015-09-17 02:36:40 +0000 |
21 | @@ -0,0 +1,1 @@ |
22 | +python-pyinotify |
23 | |
24 | === modified file 'setup.py' |
25 | --- setup.py 2013-07-10 19:38:26 +0000 |
26 | +++ setup.py 2015-09-17 02:36:40 +0000 |
27 | @@ -42,8 +42,8 @@ |
28 | 'needs DistUtilsExtra.auto >= 2.18' |
29 | |
30 | |
31 | -PROJECT_NAME = 'ubuntuone-client' |
32 | -VERSION = '99.12' |
33 | +PROJECT_NAME = 'magicicada-client' |
34 | +VERSION = '1.0' |
35 | |
36 | POT_FILE = 'po/%s.pot' % PROJECT_NAME |
37 | SERVICE_FILES = ['data/com.ubuntuone.Credentials.service', |
38 | @@ -248,9 +248,9 @@ |
39 | name=PROJECT_NAME, |
40 | version=VERSION, |
41 | license='GPL v3', |
42 | - author='Ubuntu One Developers', |
43 | - author_email='ubuntuone-users@lists.launchpad.net', |
44 | - description='Ubuntu One file synchronization client', |
45 | + author='Chicharreros', |
46 | + author_email='magicicada-hackers@@lists.launchpad.net', |
47 | + description='Magicicada file synchronization client', |
48 | url='https://launchpad.net/%s' % PROJECT_NAME, |
49 | extra_path=PROJECT_NAME, |
50 | scripts=scripts, |
51 | |
52 | === modified file 'tests/platform/credentials/test_ipc_service.py' |
53 | --- tests/platform/credentials/test_ipc_service.py 2012-06-14 16:54:45 +0000 |
54 | +++ tests/platform/credentials/test_ipc_service.py 2015-09-17 02:36:40 +0000 |
55 | @@ -28,7 +28,7 @@ |
56 | # do not wish to do so, delete this exception statement from your |
57 | # version. If you delete this exception statement from all source |
58 | # files in the program, then also delete it here. |
59 | -"""Tests for the Ubuntu One credentials management IPC service.""" |
60 | +"""Tests for the Magicicada credentials management IPC service.""" |
61 | |
62 | import logging |
63 | |
64 | |
65 | === modified file 'tests/platform/credentials/test_linux.py' |
66 | --- tests/platform/credentials/test_linux.py 2012-11-30 21:35:32 +0000 |
67 | +++ tests/platform/credentials/test_linux.py 2015-09-17 02:36:40 +0000 |
68 | @@ -28,7 +28,7 @@ |
69 | # do not wish to do so, delete this exception statement from your |
70 | # version. If you delete this exception statement from all source |
71 | # files in the program, then also delete it here. |
72 | -"""Tests for the Ubuntu One credentials management dbus service.""" |
73 | +"""Tests for the Magicicada credentials management dbus service.""" |
74 | |
75 | import logging |
76 | |
77 | @@ -254,7 +254,7 @@ |
78 | |
79 | |
80 | class CredentialsManagementTestCase(BaseTestCase): |
81 | - """Test case for the DBus object that manages Ubuntu One credentials.""" |
82 | + """Test case for the DBus object that manages Magicicada credentials.""" |
83 | |
84 | signals = ('CredentialsFound', 'CredentialsNotFound', 'CredentialsCleared', |
85 | 'CredentialsStored', 'CredentialsError', 'AuthorizationDenied') |
86 | |
87 | === modified file 'tests/platform/linux/test_vm.py' |
88 | --- tests/platform/linux/test_vm.py 2012-04-09 20:07:05 +0000 |
89 | +++ tests/platform/linux/test_vm.py 2015-09-17 02:36:40 +0000 |
90 | @@ -145,7 +145,7 @@ |
91 | "serq\x07U\x07subtreeq\x08U$beb0c48c-6755-4fbd-938f-3d20" + \ |
92 | "fa7b102bq\tU\x12other_visible_nameq\nU\tfake userq\x0bU" + \ |
93 | "\x0caccess_levelq\x0cU\x04Viewq\rU\x04pathq\x0eU=/home/" + \ |
94 | - "auser/Ubuntu One/Shared With Me/fakeshare from fakeuser" + \ |
95 | + "auser/Magicicada/Shared With Me/fakeshare from fakeuser" + \ |
96 | "q\x0fU\x08acceptedq\x10\x88U\x02idq\x11U$0664f050-9254-" + \ |
97 | "45c5-9f31-3482858709e4q\x12ub." |
98 | with open(share_file, 'w') as fd: |
99 | |
100 | === modified file 'tests/platform/sync_menu/test_linux.py' |
101 | --- tests/platform/sync_menu/test_linux.py 2013-11-08 18:00:18 +0000 |
102 | +++ tests/platform/sync_menu/test_linux.py 2015-09-17 02:36:40 +0000 |
103 | @@ -143,7 +143,7 @@ |
104 | def __init__(self): |
105 | self.connect_called = False |
106 | self.disconnect_called = False |
107 | - self.fake_root_path = "/home/user/Ubuntu One" |
108 | + self.fake_root_path = "/home/user/Magicicada" |
109 | |
110 | def connect(self): |
111 | """Set connect to True.""" |
112 | |
113 | === modified file 'tests/platform/test_credentials.py' |
114 | --- tests/platform/test_credentials.py 2012-04-09 20:07:05 +0000 |
115 | +++ tests/platform/test_credentials.py 2015-09-17 02:36:40 +0000 |
116 | @@ -225,7 +225,7 @@ |
117 | |
118 | |
119 | class CredentialsManagementToolTestCase(TestCase): |
120 | - """Test case for the object that manages Ubuntu One credentials.""" |
121 | + """Test case for the object that manages Magicicada credentials.""" |
122 | |
123 | timeout = 3 |
124 | error_dict = None |
125 | |
126 | === modified file 'tests/proxy/__init__.py' |
127 | --- tests/proxy/__init__.py 2012-04-09 20:07:05 +0000 |
128 | +++ tests/proxy/__init__.py 2015-09-17 02:36:40 +0000 |
129 | @@ -24,7 +24,7 @@ |
130 | # do not wish to do so, delete this exception statement from your |
131 | # version. If you delete this exception statement from all source |
132 | # files in the program, then also delete it here. |
133 | -"""Tests for the Ubuntu One proxy support.""" |
134 | +"""Tests for the Magicicada proxy support.""" |
135 | |
136 | from os import path |
137 | from StringIO import StringIO |
138 | |
139 | === modified file 'tests/syncdaemon/test_fsm.py' |
140 | --- tests/syncdaemon/test_fsm.py 2013-01-24 16:14:31 +0000 |
141 | +++ tests/syncdaemon/test_fsm.py 2015-09-17 02:36:40 +0000 |
142 | @@ -323,8 +323,8 @@ |
143 | other_share = yield self.create_share('share1', u'share1_name') |
144 | share_mdid = self.fsm.create(other_share.path, "share1") |
145 | self.fsm.set_node_id(other_share.path, "uuid1") |
146 | - make_dir(os.path.join(self.root_dir, 'Ubuntu One'), recursive=True) |
147 | - old_shares_path = os.path.join(self.root_dir, 'Ubuntu One', |
148 | + make_dir(os.path.join(self.root_dir, 'Magicicada'), recursive=True) |
149 | + old_shares_path = os.path.join(self.root_dir, 'Magicicada', |
150 | 'Shared With Me') |
151 | old_path = os.path.join(old_shares_path, 'share1_name') |
152 | make_link(self.shares_dir, old_shares_path) |
153 | @@ -386,8 +386,8 @@ |
154 | other_share = yield self.create_share('share1', u'share1_name') |
155 | share_mdid = self.fsm.create(other_share.path, "share1") |
156 | self.fsm.set_node_id(other_share.path, "uuid1") |
157 | - make_dir(os.path.join(self.root_dir, 'Ubuntu One'), recursive=True) |
158 | - old_shares_path = os.path.join(self.root_dir, 'Ubuntu One', |
159 | + make_dir(os.path.join(self.root_dir, 'Magicicada'), recursive=True) |
160 | + old_shares_path = os.path.join(self.root_dir, 'Magicicada', |
161 | 'Shared With Me') |
162 | old_path = os.path.join(old_shares_path, 'share1_name') |
163 | make_link(self.shares_dir, old_shares_path) |
164 | @@ -448,8 +448,8 @@ |
165 | other_share = yield self.create_share('share1', u'share1_name') |
166 | share_mdid = self.fsm.create(other_share.path, "share1") |
167 | self.fsm.set_node_id(other_share.path, "uuid1") |
168 | - make_dir(os.path.join(self.root_dir, 'Ubuntu One'), recursive=True) |
169 | - old_shares_path = os.path.join(self.root_dir, 'Ubuntu One', |
170 | + make_dir(os.path.join(self.root_dir, 'Magicicada'), recursive=True) |
171 | + old_shares_path = os.path.join(self.root_dir, 'Magicicada', |
172 | 'Shared With Me') |
173 | old_path = os.path.join(old_shares_path, 'share1_name') |
174 | make_link(self.shares_dir, old_shares_path) |
175 | @@ -506,13 +506,13 @@ |
176 | other_share = yield self.create_share('share1', u'share1_name') |
177 | share_mdid = self.fsm.create(other_share.path, "share1") |
178 | self.fsm.set_node_id(other_share.path, "uuid1") |
179 | - make_dir(os.path.join(self.root_dir, 'Ubuntu One'), recursive=True) |
180 | - old_shares_path = os.path.join(self.root_dir, 'Ubuntu One', |
181 | + make_dir(os.path.join(self.root_dir, 'Magicicada'), recursive=True) |
182 | + old_shares_path = os.path.join(self.root_dir, 'Magicicada', |
183 | 'Shared With Me') |
184 | old_path = os.path.join(old_shares_path, 'share1_name') |
185 | make_link(self.shares_dir, old_shares_path) |
186 | old_root_path = os.path.join(os.path.dirname(self.root_dir), |
187 | - 'Ubuntu One', 'My Files') |
188 | + 'Magicicada', 'My Files') |
189 | |
190 | # simulate old data in the mdobjs |
191 | share_md = self.fsm.fs[share_mdid] |
192 | @@ -3458,8 +3458,8 @@ |
193 | other_share = yield self.create_share('share1', u'share1_name') |
194 | share_mdid = self.fsm.create(other_share.path, "share1") |
195 | self.fsm.set_node_id(other_share.path, "uuid1") |
196 | - make_dir(os.path.join(self.root_dir, 'Ubuntu One'), recursive=True) |
197 | - old_shares_path = os.path.join(self.root_dir, 'Ubuntu One', |
198 | + make_dir(os.path.join(self.root_dir, 'Magicicada'), recursive=True) |
199 | + old_shares_path = os.path.join(self.root_dir, 'Magicicada', |
200 | 'Shared With Me') |
201 | old_path = os.path.join(old_shares_path, u'share1_name') |
202 | make_link(self.shares_dir, old_shares_path) |
203 | @@ -3525,8 +3525,8 @@ |
204 | other_share = yield self.create_share('share1', u'share1_name') |
205 | share_mdid = self.fsm.create(other_share.path, "share1") |
206 | self.fsm.set_node_id(other_share.path, "uuid3") |
207 | - make_dir(os.path.join(self.root_dir, 'Ubuntu One'), recursive=True) |
208 | - old_shares_path = os.path.join(self.root_dir, 'Ubuntu One', |
209 | + make_dir(os.path.join(self.root_dir, 'Magicicada'), recursive=True) |
210 | + old_shares_path = os.path.join(self.root_dir, 'Magicicada', |
211 | 'Shared With Me') |
212 | old_path = os.path.join(old_shares_path, u'share1_name') |
213 | make_link(self.shares_dir, old_shares_path) |
214 | @@ -3587,8 +3587,8 @@ |
215 | other_share = yield self.create_share('share1', u'share1_name') |
216 | share_mdid = self.fsm.create(other_share.path, "share1") |
217 | self.fsm.set_node_id(other_share.path, "uuid3") |
218 | - make_dir(os.path.join(self.root_dir, 'Ubuntu One'), recursive=True) |
219 | - old_shares_path = os.path.join(self.root_dir, 'Ubuntu One', |
220 | + make_dir(os.path.join(self.root_dir, 'Magicicada'), recursive=True) |
221 | + old_shares_path = os.path.join(self.root_dir, 'Magicicada', |
222 | 'Shared With Me') |
223 | old_path = os.path.join(old_shares_path, u'share1_name') |
224 | make_link(self.shares_dir, old_shares_path) |
225 | @@ -3645,13 +3645,13 @@ |
226 | other_share = yield self.create_share('share1', u'share1_name') |
227 | share_mdid = self.fsm.create(other_share.path, "share1") |
228 | self.fsm.set_node_id(other_share.path, "uuid1") |
229 | - make_dir(os.path.join(self.root_dir, 'Ubuntu One'), recursive=True) |
230 | - old_shares_path = os.path.join(self.root_dir, 'Ubuntu One', |
231 | + make_dir(os.path.join(self.root_dir, 'Magicicada'), recursive=True) |
232 | + old_shares_path = os.path.join(self.root_dir, 'Magicicada', |
233 | 'Shared With Me') |
234 | old_path = os.path.join(old_shares_path, u'share1_name') |
235 | make_link(self.shares_dir, old_shares_path) |
236 | old_root_path = os.path.join(os.path.dirname(self.root_dir), |
237 | - 'Ubuntu One', 'My Files') |
238 | + 'Magicicada', 'My Files') |
239 | |
240 | # put the old path in the mdobjs |
241 | share_md = self.fsm.fs[share_mdid] |
242 | |
243 | === modified file 'tests/syncdaemon/test_vm.py' |
244 | --- tests/syncdaemon/test_vm.py 2013-01-22 20:56:35 +0000 |
245 | +++ tests/syncdaemon/test_vm.py 2015-09-17 02:36:40 +0000 |
246 | @@ -3928,7 +3928,7 @@ |
247 | """Create some directories.""" |
248 | yield super(MetadataTestCase, self).setUp() |
249 | self.root_dir = self.mktemp( |
250 | - os.path.join('ubuntuonehacker', 'Ubuntu One')) |
251 | + os.path.join('ubuntuonehacker', 'Magicicada')) |
252 | self.data_dir = os.path.join(self.tmpdir, 'data_dir') |
253 | self.vm_data_dir = os.path.join(self.tmpdir, 'data_dir', 'vm') |
254 | self.partials_dir = self.mktemp('partials') |
255 | |
256 | === modified file 'ubuntuone/platform/credentials/__init__.py' |
257 | --- ubuntuone/platform/credentials/__init__.py 2012-06-21 18:58:50 +0000 |
258 | +++ ubuntuone/platform/credentials/__init__.py 2015-09-17 02:36:40 +0000 |
259 | @@ -68,7 +68,7 @@ |
260 | |
261 | NO_OP = lambda *args, **kwargs: None |
262 | Q_ = lambda string: gettext.dgettext(clientdefs.GETTEXT_PACKAGE, string) |
263 | -APP_NAME = u"Ubuntu One" |
264 | +APP_NAME = u"Magicicada" |
265 | TC_URL = u"https://one.ubuntu.com/terms/" |
266 | POLICY_URL = u"https://one.ubuntu.com/privacy/" |
267 | |
268 | @@ -87,7 +87,7 @@ |
269 | u"https://one.ubuntu.com/oauth/sso-finished-so-get-tokens/{email}" |
270 | # the result of platform_data is given by urlencode, encoded with ascii |
271 | PING_URL = BASE_PING_URL + u"?" + platform_data().decode('ascii') |
272 | -DESCRIPTION = Q_('Ubuntu One requires an Ubuntu Single Sign On (SSO) account. ' |
273 | +DESCRIPTION = Q_('Magicicada requires an Ubuntu Single Sign On (SSO) account. ' |
274 | 'This process will allow you to create a new account, ' |
275 | 'if you do not yet have one.') |
276 | UI_PARAMS = { |
277 | @@ -155,10 +155,10 @@ |
278 | @log_call(logger.debug, with_result=False) |
279 | @defer.inlineCallbacks |
280 | def find_credentials(self): |
281 | - """Find credentials for Ubuntu One. |
282 | + """Find credentials for Magicicada. |
283 | |
284 | Return a deferred that, when fired, will return the credentials for |
285 | - Ubuntu One for the current logged in user. |
286 | + Magicicada for the current logged in user. |
287 | |
288 | The credentials is a dictionary with both string keys and values. The |
289 | dictionary may be either empty if there are no credentials for the |
290 | @@ -200,10 +200,10 @@ |
291 | @log_call(logger.debug) |
292 | @defer.inlineCallbacks |
293 | def clear_credentials(self): |
294 | - """Clear credentials for Ubuntu One. |
295 | + """Clear credentials for Magicicada. |
296 | |
297 | Return a deferred that, when fired, will return no result but will |
298 | - indicate that the Ubuntu One credentials for the current user were |
299 | + indicate that the Magicicada credentials for the current user were |
300 | removed from the local keyring. |
301 | |
302 | """ |
303 | @@ -233,7 +233,7 @@ |
304 | @log_call(logger.debug, with_args=False) |
305 | @defer.inlineCallbacks |
306 | def store_credentials(self, token): |
307 | - """Store credentials for Ubuntu One. |
308 | + """Store credentials for Magicicada. |
309 | |
310 | The parameter 'token' should be a dictionary that matches the |
311 | description of the result of 'find_credentials'. |
312 | @@ -269,13 +269,13 @@ |
313 | @log_call(logger.debug, with_result=False) |
314 | @defer.inlineCallbacks |
315 | def register(self, window_id=0): |
316 | - """Register to Ubuntu One. |
317 | + """Register to Magicicada. |
318 | |
319 | Return a deferred that, when fired, will return the credentials for |
320 | - Ubuntu One for the current logged in user. |
321 | + Magicicada for the current logged in user. |
322 | |
323 | If there are no credentials for the current user, a GTK UI will be |
324 | - opened to invite the user to register to Ubuntu One. This UI provides |
325 | + opened to invite the user to register to Magicicada. This UI provides |
326 | options to either register (main screen) or login (secondary screen). |
327 | |
328 | You can pass an optional 'window_id' parameter that will be used by the |
329 | @@ -284,7 +284,7 @@ |
330 | The returned credentials will be either a non-empty dictionary like the |
331 | one described in 'find_credentials', or None. The latter indicates that |
332 | there were no credentials for the user in the local keyring and that |
333 | - the user refused to register to Ubuntu One. |
334 | + the user refused to register to Magicicada. |
335 | |
336 | """ |
337 | d = defer.Deferred() |
338 | @@ -317,13 +317,13 @@ |
339 | @log_call(logger.debug, with_result=False) |
340 | @defer.inlineCallbacks |
341 | def login(self, window_id=0): |
342 | - """Login to Ubuntu One. |
343 | + """Login to Magicicada. |
344 | |
345 | Return a deferred that, when fired, will return the credentials for |
346 | - Ubuntu One for the current logged in user. |
347 | + Magicicada for the current logged in user. |
348 | |
349 | If there are no credentials for the current user, a GTK UI will be |
350 | - opened to invite the user to login to Ubuntu One. This UI provides |
351 | + opened to invite the user to login to Magicicada. This UI provides |
352 | options to either login (main screen) or retrieve password (secondary |
353 | screen). |
354 | |
355 | @@ -333,7 +333,7 @@ |
356 | The returned credentials will be either a non-empty dictionary like the |
357 | one described in 'find_credentials', or None. The latter indicates that |
358 | there were no credentials for the user in the local keyring and that |
359 | - the user refused to login to Ubuntu One. |
360 | + the user refused to login to Magicicada. |
361 | |
362 | """ |
363 | d = defer.Deferred() |
364 | @@ -366,10 +366,10 @@ |
365 | @log_call(logger.debug, with_args=False, with_result=False) |
366 | @defer.inlineCallbacks |
367 | def login_email_password(self, email, password): |
368 | - """Login to Ubuntu One. |
369 | + """Login to Magicicada. |
370 | |
371 | Return a deferred that, when fired, will return the credentials for |
372 | - Ubuntu One for the given email and password. |
373 | + Magicicada for the given email and password. |
374 | |
375 | The returned credentials will be either a non-empty dictionary like the |
376 | one described in 'find_credentials', or None. The latter indicates |
377 | |
378 | === modified file 'ubuntuone/platform/credentials/dbus_service.py' |
379 | --- ubuntuone/platform/credentials/dbus_service.py 2012-06-14 16:54:45 +0000 |
380 | +++ ubuntuone/platform/credentials/dbus_service.py 2015-09-17 02:36:40 +0000 |
381 | @@ -28,7 +28,7 @@ |
382 | # do not wish to do so, delete this exception statement from your |
383 | # version. If you delete this exception statement from all source |
384 | # files in the program, then also delete it here. |
385 | -"""Ubuntu One credentials management dbus service.""" |
386 | +"""Magicicada credentials management dbus service.""" |
387 | |
388 | import dbus |
389 | import dbus.service |
390 | @@ -51,7 +51,7 @@ |
391 | |
392 | |
393 | class CredentialsManagement(dbus.service.Object): |
394 | - """DBus object that manages Ubuntu One credentials.""" |
395 | + """DBus object that manages Magicicada credentials.""" |
396 | |
397 | def __init__(self, timeout_func=lambda *a: None, |
398 | shutdown_func=lambda *a: None, *args, **kwargs): |
399 | @@ -180,7 +180,7 @@ |
400 | @dbus.service.method(dbus_interface=DBUS_CREDENTIALS_IFACE, |
401 | async_callbacks=("reply_handler", "error_handler")) |
402 | def find_credentials(self, reply_handler=NO_OP, error_handler=NO_OP): |
403 | - """Ask the Ubuntu One credentials.""" |
404 | + """Ask the Magicicada credentials.""" |
405 | self.ref_count += 1 |
406 | self.sso_proxy.find_credentials(APP_NAME, |
407 | dbus.Dictionary({}, signature='ss'), |
408 | @@ -190,7 +190,7 @@ |
409 | out_signature="a{ss}", |
410 | async_callbacks=("reply_handler", "error_handler")) |
411 | def find_credentials_sync(self, reply_handler=NO_OP, error_handler=NO_OP): |
412 | - """Ask the Ubuntu One credentials synchronously. |
413 | + """Ask the Magicicada credentials synchronously. |
414 | |
415 | This method SHOULD NOT be used, is here only for compatibilty issues. |
416 | |
417 | @@ -216,7 +216,7 @@ |
418 | @dbus.service.method(dbus_interface=DBUS_CREDENTIALS_IFACE, |
419 | async_callbacks=("reply_handler", "error_handler")) |
420 | def clear_credentials(self, reply_handler=NO_OP, error_handler=NO_OP): |
421 | - """Clear the Ubuntu One credentials.""" |
422 | + """Clear the Magicicada credentials.""" |
423 | self.ref_count += 1 |
424 | self.sso_proxy.clear_credentials(APP_NAME, |
425 | dbus.Dictionary({}, signature='ss'), |
426 | @@ -227,7 +227,7 @@ |
427 | async_callbacks=("reply_handler", "error_handler")) |
428 | def store_credentials(self, credentials, |
429 | reply_handler=NO_OP, error_handler=NO_OP): |
430 | - """Store the token for Ubuntu One application.""" |
431 | + """Store the token for Magicicada application.""" |
432 | self.ref_count += 1 |
433 | self.sso_proxy.store_credentials(APP_NAME, credentials, |
434 | reply_handler=reply_handler, error_handler=error_handler) |
435 | @@ -236,7 +236,7 @@ |
436 | in_signature='a{ss}', |
437 | async_callbacks=("reply_handler", "error_handler")) |
438 | def register(self, args, reply_handler=NO_OP, error_handler=NO_OP): |
439 | - """Get credentials if found else prompt to register to Ubuntu One.""" |
440 | + """Get credentials if found else prompt to register to Magicicada.""" |
441 | self.ref_count += 1 |
442 | params = dict(UI_PARAMS) |
443 | params.update(args) |
444 | @@ -247,7 +247,7 @@ |
445 | in_signature='a{ss}', |
446 | async_callbacks=("reply_handler", "error_handler")) |
447 | def login(self, args, reply_handler=NO_OP, error_handler=NO_OP): |
448 | - """Get credentials if found else prompt to login to Ubuntu One.""" |
449 | + """Get credentials if found else prompt to login to Magicicada.""" |
450 | self.ref_count += 1 |
451 | params = dict(UI_PARAMS) |
452 | params.update(args) |
453 | @@ -259,7 +259,7 @@ |
454 | async_callbacks=("reply_handler", "error_handler")) |
455 | def login_email_password(self, args, reply_handler=NO_OP, |
456 | error_handler=NO_OP): |
457 | - """Get credentials if found else prompt to login to Ubuntu One.""" |
458 | + """Get credentials if found else prompt to login to Magicicada.""" |
459 | self.ref_count += 1 |
460 | params = dict(UI_PARAMS) |
461 | params.update(args) |
462 | |
463 | === modified file 'ubuntuone/platform/credentials/ipc_service.py' |
464 | --- ubuntuone/platform/credentials/ipc_service.py 2012-06-14 16:54:45 +0000 |
465 | +++ ubuntuone/platform/credentials/ipc_service.py 2015-09-17 02:36:40 +0000 |
466 | @@ -26,7 +26,7 @@ |
467 | # do not wish to do so, delete this exception statement from your |
468 | # version. If you delete this exception statement from all source |
469 | # files in the program, then also delete it here. |
470 | -"""Ubuntu One credentials management IPC service.""" |
471 | +"""Magicicada credentials management IPC service.""" |
472 | |
473 | |
474 | from ubuntu_sso.main import get_sso_client |
475 | @@ -76,7 +76,7 @@ |
476 | |
477 | |
478 | class CredentialsManagement(object): |
479 | - """Object that manages Ubuntu One credentials.""" |
480 | + """Object that manages Magicicada credentials.""" |
481 | |
482 | _SIGNAL_TO_CALLBACK_MAPPING = { |
483 | 'AuthorizationDenied': 'on_authorization_denied_cb', |
484 | @@ -98,30 +98,30 @@ |
485 | return match |
486 | |
487 | def find_credentials(self, reply_handler=NO_OP, error_handler=NO_OP): |
488 | - """Ask the Ubuntu One credentials.""" |
489 | + """Ask the Magicicada credentials.""" |
490 | d = self.sso_proxy.find_credentials(APP_NAME, {}) |
491 | d.addCallbacks(lambda _: reply_handler(), error_handler) |
492 | |
493 | def clear_credentials(self, reply_handler=NO_OP, error_handler=NO_OP): |
494 | - """Clear the Ubuntu One credentials.""" |
495 | + """Clear the Magicicada credentials.""" |
496 | d = self.sso_proxy.clear_credentials(APP_NAME, {}) |
497 | d.addCallbacks(lambda _: reply_handler(), error_handler) |
498 | |
499 | def store_credentials(self, credentials, |
500 | reply_handler=NO_OP, error_handler=NO_OP): |
501 | - """Store the token for Ubuntu One application.""" |
502 | + """Store the token for Magicicada application.""" |
503 | d = self.sso_proxy.store_credentials(APP_NAME, credentials) |
504 | d.addCallbacks(lambda _: reply_handler(), error_handler) |
505 | |
506 | def register(self, args, reply_handler=NO_OP, error_handler=NO_OP): |
507 | - """Get credentials if found else prompt to register to Ubuntu One.""" |
508 | + """Get credentials if found else prompt to register to Magicicada.""" |
509 | params = dict(UI_PARAMS) |
510 | params.update(args) |
511 | d = self.sso_proxy.register(APP_NAME, params) |
512 | d.addCallbacks(lambda _: reply_handler(), error_handler) |
513 | |
514 | def login(self, args, reply_handler=NO_OP, error_handler=NO_OP): |
515 | - """Get credentials if found else prompt to login to Ubuntu One.""" |
516 | + """Get credentials if found else prompt to login to Magicicada.""" |
517 | params = dict(UI_PARAMS) |
518 | params.update(args) |
519 | d = self.sso_proxy.login(APP_NAME, params) |
520 | @@ -129,7 +129,7 @@ |
521 | |
522 | def login_email_password(self, args, |
523 | reply_handler=NO_OP, error_handler=NO_OP): |
524 | - """Get credentials if found else login to Ubuntu One.""" |
525 | + """Get credentials if found else login to Magicicada.""" |
526 | params = dict(UI_PARAMS) |
527 | params.update(args) |
528 | d = self.sso_proxy.login_email_password(APP_NAME, params) |
529 | |
530 | === modified file 'ubuntuone/platform/launcher/linux.py' |
531 | --- ubuntuone/platform/launcher/linux.py 2012-05-02 19:07:59 +0000 |
532 | +++ ubuntuone/platform/launcher/linux.py 2015-09-17 02:36:40 +0000 |
533 | @@ -40,7 +40,7 @@ |
534 | |
535 | |
536 | class UbuntuOneLauncherUnity(object): |
537 | - """The Ubuntu One launcher icon.""" |
538 | + """The Magicicada launcher icon.""" |
539 | |
540 | def __init__(self): |
541 | self.entry = Unity.LauncherEntry.get_for_desktop_id(U1_DOTDESKTOP) |
542 | |
543 | === modified file 'ubuntuone/platform/launcher/windows.py' |
544 | --- ubuntuone/platform/launcher/windows.py 2012-05-02 19:07:59 +0000 |
545 | +++ ubuntuone/platform/launcher/windows.py 2015-09-17 02:36:40 +0000 |
546 | @@ -34,7 +34,7 @@ |
547 | |
548 | |
549 | class UbuntuOneLauncher(object): |
550 | - """The Ubuntu One launcher icon.""" |
551 | + """The Magicicada launcher icon.""" |
552 | |
553 | def __init__(self): |
554 | """Initialize this instance.""" |
555 | |
556 | === modified file 'ubuntuone/platform/notification/linux.py' |
557 | --- ubuntuone/platform/notification/linux.py 2013-01-28 18:10:43 +0000 |
558 | +++ ubuntuone/platform/notification/linux.py 2015-09-17 02:36:40 +0000 |
559 | @@ -39,7 +39,7 @@ |
560 | |
561 | from ubuntuone.status.notification import AbstractNotification |
562 | |
563 | -APPLICATION_NAME = 'Ubuntu One Client' |
564 | +APPLICATION_NAME = 'Magicicada Client' |
565 | ICON_NAME = "ubuntuone" |
566 | |
567 | |
568 | |
569 | === modified file 'ubuntuone/platform/notification/windows.py' |
570 | --- ubuntuone/platform/notification/windows.py 2012-04-30 18:56:56 +0000 |
571 | +++ ubuntuone/platform/notification/windows.py 2015-09-17 02:36:40 +0000 |
572 | @@ -32,7 +32,7 @@ |
573 | |
574 | from ubuntuone.status.notification import AbstractNotification |
575 | |
576 | -APPLICATION_NAME = 'Ubuntu One Client' |
577 | +APPLICATION_NAME = 'Magicicada Client' |
578 | |
579 | |
580 | class Notification(AbstractNotification): |
581 | |
582 | === modified file 'ubuntuone/platform/session/linux.py' |
583 | --- ubuntuone/platform/session/linux.py 2012-04-27 19:30:11 +0000 |
584 | +++ ubuntuone/platform/session/linux.py 2015-09-17 02:36:40 +0000 |
585 | @@ -36,7 +36,7 @@ |
586 | SESSION_MANAGER_IFACE = "org.gnome.SessionManager" |
587 | SESSION_MANAGER_PATH = "/org/gnome/SessionManager" |
588 | |
589 | -APP_ID = "Ubuntu One" |
590 | +APP_ID = "Magicicada" |
591 | TOPLEVEL_XID = 0 |
592 | |
593 | |
594 | |
595 | === modified file 'ubuntuone/platform/sync_menu/linux.py' |
596 | --- ubuntuone/platform/sync_menu/linux.py 2013-11-08 17:59:47 +0000 |
597 | +++ ubuntuone/platform/sync_menu/linux.py 2015-09-17 02:36:40 +0000 |
598 | @@ -58,10 +58,10 @@ |
599 | Q_ = lambda string: gettext.dgettext(GETTEXT_PACKAGE, string) |
600 | |
601 | GET_HELP = Q_("Get Help on the Web") |
602 | -GO_TO_WEB = Q_("Go to the Ubuntu One Website") |
603 | +GO_TO_WEB = Q_("Go to the Magicicada Website") |
604 | MORE_STORAGE = Q_("Get More Space") |
605 | -OPEN_U1 = Q_("Open Ubuntu One") |
606 | -OPEN_U1_FOLDER = Q_("Open the Ubuntu One Folder") |
607 | +OPEN_U1 = Q_("Open Magicicada") |
608 | +OPEN_U1_FOLDER = Q_("Open the Magicicada Folder") |
609 | SHARE_A_FILE = Q_("Share a File") |
610 | TRANSFERS = Q_("Current and Recent Transfers") |
611 | |
612 | @@ -184,7 +184,7 @@ |
613 | command_line += ' ' + args |
614 | |
615 | try: |
616 | - app = Gio.AppInfo.create_from_commandline(command_line, 'Ubuntu One', flags) |
617 | + app = Gio.AppInfo.create_from_commandline(command_line, 'Magicicada', flags) |
618 | |
619 | if app: |
620 | app.launch([], self._get_launch_context(timestamp)) |
621 | @@ -192,7 +192,7 @@ |
622 | logger.warning('Failed to open the control panel: %s.' % e) |
623 | |
624 | def open_control_panel(self, menuitem=None, timestamp=0): |
625 | - """Open the Ubuntu One Control Panel.""" |
626 | + """Open the Magicicada Control Panel.""" |
627 | app = Gio.DesktopAppInfo.new(CLIENT_DESKTOP_ID) |
628 | |
629 | if app: |
630 | @@ -204,7 +204,7 @@ |
631 | self._open_control_panel_by_command_line(timestamp) |
632 | |
633 | def open_ubuntu_one_folder(self, menuitem=None, timestamp=0): |
634 | - """Open the Ubuntu One folder.""" |
635 | + """Open the Magicicada folder.""" |
636 | self._open_uri("file://" + self._syncdaemon_service.get_rootdir(), timestamp) |
637 | |
638 | def open_share_file_tab(self, menuitem=None, timestamp=0): |
639 | @@ -212,15 +212,15 @@ |
640 | self._open_control_panel_by_command_line(timestamp, "--switch-to share_links") |
641 | |
642 | def open_go_to_web(self, menuitem=None, timestamp=0): |
643 | - """Open the Ubuntu One Help Page""" |
644 | + """Open the Magicicada Help Page""" |
645 | self._open_uri(DASHBOARD, timestamp) |
646 | |
647 | def open_web_help(self, menuitem=None, timestamp=0): |
648 | - """Open the Ubuntu One Help Page""" |
649 | + """Open the Magicicada Help Page""" |
650 | self._open_uri(HELP_LINK, timestamp) |
651 | |
652 | def open_get_more_storage(self, menuitem=None, timestamp=0): |
653 | - """Open the Ubuntu One Help Page""" |
654 | + """Open the Magicicada Help Page""" |
655 | self._open_uri(GET_STORAGE_LINK, timestamp) |
656 | |
657 | def _timeout(self, result): |
658 | |
659 | === modified file 'ubuntuone/proxy/__init__.py' |
660 | --- ubuntuone/proxy/__init__.py 2012-04-09 20:07:05 +0000 |
661 | +++ ubuntuone/proxy/__init__.py 2015-09-17 02:36:40 +0000 |
662 | @@ -24,4 +24,4 @@ |
663 | # do not wish to do so, delete this exception statement from your |
664 | # version. If you delete this exception statement from all source |
665 | # files in the program, then also delete it here. |
666 | -"""Ubuntu One proxy support.""" |
667 | +"""Magicicada proxy support.""" |
668 | |
669 | === modified file 'ubuntuone/proxy/tunnel_client.py' |
670 | --- ubuntuone/proxy/tunnel_client.py 2012-11-28 00:09:34 +0000 |
671 | +++ ubuntuone/proxy/tunnel_client.py 2015-09-17 02:36:40 +0000 |
672 | @@ -54,7 +54,7 @@ |
673 | method_line = METHOD_LINE % (self.factory.tunnel_host, |
674 | self.factory.tunnel_port) |
675 | headers = { |
676 | - "User-Agent": "Ubuntu One tunnel client", |
677 | + "User-Agent": "Magicicada tunnel client", |
678 | TUNNEL_COOKIE_HEADER: self.factory.cookie, |
679 | } |
680 | self.transport.write(method_line + |
681 | |
682 | === modified file 'ubuntuone/proxy/tunnel_server.py' |
683 | --- ubuntuone/proxy/tunnel_server.py 2013-01-17 13:26:48 +0000 |
684 | +++ ubuntuone/proxy/tunnel_server.py 2015-09-17 02:36:40 +0000 |
685 | @@ -269,7 +269,7 @@ |
686 | logger.info("Connected with keyring credentials") |
687 | |
688 | response_headers = { |
689 | - "Server": "Ubuntu One proxy tunnel", |
690 | + "Server": "Magicicada proxy tunnel", |
691 | } |
692 | self.write_transport("HTTP/1.0 200 Proxy connection established" + |
693 | CRLF + self.format_headers(response_headers) + |
694 | |
695 | === modified file 'ubuntuone/status/__init__.py' |
696 | --- ubuntuone/status/__init__.py 2012-04-09 20:07:05 +0000 |
697 | +++ ubuntuone/status/__init__.py 2015-09-17 02:36:40 +0000 |
698 | @@ -1,4 +1,4 @@ |
699 | -# ubuntuone.status - Ubuntu One status communication module |
700 | +# ubuntuone.status - Magicicada status communication module |
701 | # |
702 | # Copyright 2011-2012 Canonical Ltd. |
703 | # |
704 | |
705 | === modified file 'ubuntuone/status/aggregator.py' |
706 | --- ubuntuone/status/aggregator.py 2014-04-04 19:52:16 +0000 |
707 | +++ ubuntuone/status/aggregator.py 2015-09-17 02:36:40 +0000 |
708 | @@ -50,8 +50,8 @@ |
709 | ONE_DAY = 24 * 60 * 60 |
710 | Q_ = lambda string: gettext.dgettext(GETTEXT_PACKAGE, string) |
711 | |
712 | -UBUNTUONE_TITLE = Q_("Ubuntu One") |
713 | -UBUNTUONE_END = Q_("Ubuntu One file services will be " |
714 | +UBUNTUONE_TITLE = Q_("Magicicada") |
715 | +UBUNTUONE_END = Q_("Magicicada file services will be " |
716 | "shutting down on June 1st, 2014.\nThanks for your support.") |
717 | NEW_UDFS_SENDER = Q_("New cloud folder(s) available") |
718 | FINAL_COMPLETED = Q_("File synchronization completed.") |
719 | |
720 | === modified file 'ubuntuone/status/notification.py' |
721 | --- ubuntuone/status/notification.py 2012-04-09 20:07:05 +0000 |
722 | +++ ubuntuone/status/notification.py 2015-09-17 02:36:40 +0000 |
723 | @@ -32,7 +32,7 @@ |
724 | |
725 | from abc import ABCMeta, abstractmethod |
726 | |
727 | -APPLICATION_NAME = 'Ubuntu One Client' |
728 | +APPLICATION_NAME = 'Magicicada Client' |
729 | |
730 | |
731 | class AbstractNotification(object): |
732 | |
733 | === modified file 'ubuntuone/syncdaemon/__init__.py' |
734 | --- ubuntuone/syncdaemon/__init__.py 2012-10-24 08:54:12 +0000 |
735 | +++ ubuntuone/syncdaemon/__init__.py 2015-09-17 02:36:40 +0000 |
736 | @@ -1,4 +1,4 @@ |
737 | -# ubuntuone.syncdaemon - Ubuntu One sync daemon modules |
738 | +# ubuntuone.syncdaemon - Magicicada sync daemon modules |
739 | # |
740 | # Copyright 2009-2012 Canonical Ltd. |
741 | # |
742 | |
743 | === modified file 'ubuntuone/syncdaemon/action_queue.py' |
744 | --- ubuntuone/syncdaemon/action_queue.py 2015-05-18 21:20:05 +0000 |
745 | +++ ubuntuone/syncdaemon/action_queue.py 2015-09-17 02:36:40 +0000 |
746 | @@ -929,7 +929,7 @@ |
747 | host = urlparse(uri).netloc.split(":")[0] |
748 | ssl_context = get_ssl_context(self.disable_ssl_verify, host) |
749 | connector = yield self.tunnel_runner.get_client() |
750 | - webclient = txweb.WebClient(connector=connector, appname="Ubuntu One", |
751 | + webclient = txweb.WebClient(connector=connector, appname="Magicicada", |
752 | oauth_sign_plain=True, |
753 | context_factory=ssl_context) |
754 | defer.returnValue(webclient) |
755 | |
756 | === modified file 'ubuntuone/syncdaemon/filesystem_manager.py' |
757 | --- ubuntuone/syncdaemon/filesystem_manager.py 2013-01-22 20:04:42 +0000 |
758 | +++ ubuntuone/syncdaemon/filesystem_manager.py 2015-09-17 02:36:40 +0000 |
759 | @@ -412,11 +412,11 @@ |
760 | """fix the mdobj path for the new layout, only for shares root""" |
761 | base_path, name = os.path.split(mdobj['path']) |
762 | if base_path.startswith('/') and \ |
763 | - base_path.endswith('Ubuntu One/Shared With Me'): |
764 | + base_path.endswith('Magicicada/Shared With Me'): |
765 | realpath = os.path.realpath(mdobj['path']) |
766 | mdobj['path'] = realpath |
767 | if base_path.startswith('/') and \ |
768 | - base_path.endswith('Ubuntu One') and name == 'My Files': |
769 | + base_path.endswith('Magicicada') and name == 'My Files': |
770 | mdobj['path'] = base_path |
771 | |
772 | def _migrate_trash_to_tritcask(self): |
773 | |
774 | === modified file 'ubuntuone/syncdaemon/main.py' |
775 | --- ubuntuone/syncdaemon/main.py 2015-05-18 21:20:05 +0000 |
776 | +++ ubuntuone/syncdaemon/main.py 2015-09-17 02:36:40 +0000 |
777 | @@ -106,7 +106,7 @@ |
778 | if not throttling_enabled: |
779 | throttling_enabled = user_config.get_throttling() |
780 | |
781 | - self.logger.info("Starting Ubuntu One client version %s", |
782 | + self.logger.info("Starting Magicicada client version %s", |
783 | clientdefs.VERSION) |
784 | self.logger.info("Using %r as root dir", self.root_dir) |
785 | self.logger.info("Using %r as data dir", self.data_dir) |
786 | |
787 | === modified file 'ubuntuone/syncdaemon/volume_manager.py' |
788 | --- ubuntuone/syncdaemon/volume_manager.py 2013-01-22 20:56:35 +0000 |
789 | +++ ubuntuone/syncdaemon/volume_manager.py 2015-09-17 02:36:40 +0000 |
790 | @@ -1677,8 +1677,8 @@ |
791 | def _upgrade_metadata_3(self, md_version): |
792 | """Upgrade to version 4 (new layout!) |
793 | |
794 | - move "~/Ubuntu One/Shared With" Me to XDG_DATA/ubuntuone/shares |
795 | - move "~/Ubuntu One/My Files" contents to "~/Ubuntu One" |
796 | + move "~/Magicicada/Shared With Me" to XDG_DATA/ubuntuone/shares |
797 | + move "~/Magicicada/My Files" contents to "~/Magicicada" |
798 | |
799 | """ |
800 | from ubuntuone.syncdaemon.volume_manager import LegacyShareFileShelf |
Awesome