Merge lp:~dobey/ubuntuone-control-panel/use-dirspec into lp:ubuntuone-control-panel

Proposed by dobey
Status: Merged
Approved by: dobey
Approved revision: 335
Merged at revision: 334
Proposed branch: lp:~dobey/ubuntuone-control-panel/use-dirspec
Merge into: lp:ubuntuone-control-panel
Diff against target: 61 lines (+5/-5)
5 files modified
data/source_ubuntuone-control-panel.py (+1/-1)
ubuntuone/controlpanel/backend.py (+1/-1)
ubuntuone/controlpanel/gui/qt/tests/test_folders.py (+1/-1)
ubuntuone/controlpanel/gui/qt/tests/test_systray.py (+1/-1)
ubuntuone/controlpanel/logger.py (+1/-1)
To merge this branch: bzr merge lp:~dobey/ubuntuone-control-panel/use-dirspec
Reviewer Review Type Date Requested Status
Diego Sarmentero (community) Approve
Manuel de la Peña (community) Approve
Brian Curtin (community) Approve
Review via email: mp+111481@code.launchpad.net

Commit message

Get the log directory from the platform logging module

Description of the change

To post a comment you must log in.
Revision history for this message
Brian Curtin (brian.curtin) :
review: Approve
Revision history for this message
Manuel de la Peña (mandel) :
review: Approve
Revision history for this message
Ubuntu One Auto Pilot (otto-pilot) wrote :
Download full text (154.4 KiB)

The attempt to merge lp:~dobey/ubuntuone-control-panel/use-dirspec into lp:ubuntuone-control-panel failed. Below is the output from the failed tests.

*** Running DBus test suite ***
ubuntuone.controlpanel.dbustests.test_dbus_service
  BaseTestCase
    runTest ... [OK]
  DBusServiceMainTestCase
    test_dbus_service_cant_register ... Control panel backend already running.
                                   [OK]
    test_dbus_service_main ... [OK]
  DBusServiceTestCase
    test_cant_register_twice ... [SKIPPED]
    test_dbus_busname_created ... [OK]
    test_error_handler_default ... [OK]
    test_error_handler_with_exception ... [OK]
    test_error_handler_with_failure ... [OK]
    test_error_handler_with_non_string_dict ... [OK]
    test_error_handler_with_string_dict ... [OK]
    test_register_service ... [OK]
  FileSyncTestCase
    test_file_sync_status_changed ... [OK]
    test_file_sync_status_disabled ... [OK]
    test_file_sync_status_disconnected ... [OK]
    test_file_sync_status_error ... [OK]
    test_file_sync_status_idle ... [OK]
    test_file_sync_status_starting ... [OK]
    test_file_sync_status_stopped ... [OK]
    test_file_sync_status_syncing ... [OK]
    test_file_sync_status_unknown ... [OK]
    test_status_changed_handler ... [OK]
    test_status_changed_handler_after_status_requested ... [OK]
    test_status_changed_handler_after_status_requested_twice ... [OK]
  OperationsAuthErrorTestCase
    test_account_info_returned ... [OK]
    test_change_device_settings ... [OK]
    test_change_replication_settings ... [OK]
    test_change_volume_settings ... [OK]
    test_connect_files ... [OK]
    test_devices_info_returned ... [OK]
    test_disable_files ... [OK]
    test_disconnect_files ... [OK]
    test_enable_files ... [OK]
    test_remove_device ... [OK]
    test_replications_info ... [OK]
    test_restart_files ... [OK]
    test_start_...

335. By dobey

Fix the pep8 warnings

Revision history for this message
Diego Sarmentero (diegosarmentero) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/source_ubuntuone-control-panel.py'
2--- data/source_ubuntuone-control-panel.py 2011-09-27 22:17:54 +0000
3+++ data/source_ubuntuone-control-panel.py 2012-06-22 14:44:21 +0000
4@@ -23,7 +23,7 @@
5
6 from apport.hookutils import attach_related_packages, attach_file_if_exists
7
8-from ubuntuone.platform.xdg_base_directory import ubuntuone_log_dir
9+from ubuntuone.platform.logger import ubuntuone_log_dir
10
11
12 def add_info(report):
13
14=== modified file 'ubuntuone/controlpanel/backend.py'
15--- ubuntuone/controlpanel/backend.py 2012-05-11 13:30:34 +0000
16+++ ubuntuone/controlpanel/backend.py 2012-06-22 14:44:21 +0000
17@@ -171,7 +171,7 @@
18 is_synching = bool(status['is_connected'])
19 is_idle = bool(status['is_online']) and status['queues'] == 'IDLE'
20 is_disconnected = status['name'] == 'WAITING' or \
21- (status['name'] == 'READY' and \
22+ (status['name'] == 'READY' and
23 'Not User' in status['connection'])
24 is_starting = status['name'] in ('INIT', 'LOCAL_RESCAN', 'READY')
25 is_stopped = status['name'] == 'SHUTDOWN'
26
27=== modified file 'ubuntuone/controlpanel/gui/qt/tests/test_folders.py'
28--- ubuntuone/controlpanel/gui/qt/tests/test_folders.py 2012-06-06 15:15:37 +0000
29+++ ubuntuone/controlpanel/gui/qt/tests/test_folders.py 2012-06-22 14:44:21 +0000
30@@ -998,7 +998,7 @@
31 self.assertEqual(item.volume_id, volume_id)
32 # should be checked if the volume_id is not None
33 subscribed = item.checkState(gui.LOCAL_SUBSCRIPTION_COL) == gui.CHECKED
34- self.assertEqual(subscribed, volume_id != None)
35+ self.assertEqual(subscribed, volume_id is not None)
36
37 self.timer.timeout.emit() # update sizes will be called
38
39
40=== modified file 'ubuntuone/controlpanel/gui/qt/tests/test_systray.py'
41--- ubuntuone/controlpanel/gui/qt/tests/test_systray.py 2012-05-14 20:16:02 +0000
42+++ ubuntuone/controlpanel/gui/qt/tests/test_systray.py 2012-06-22 14:44:21 +0000
43@@ -133,4 +133,4 @@
44 self.assertTrue(tray.isVisible())
45 self.assertEqual(tray.window, None)
46 self.assertIsInstance(tray.context_menu, QtGui.QMenu)
47- self.assertFalse(tray.icon() == None)
48+ self.assertNotEqual(tray.icon(), None)
49
50=== modified file 'ubuntuone/controlpanel/logger.py'
51--- ubuntuone/controlpanel/logger.py 2012-03-16 16:40:27 +0000
52+++ ubuntuone/controlpanel/logger.py 2012-06-22 14:44:21 +0000
53@@ -25,7 +25,7 @@
54
55 # pylint: disable=F0401,E0611
56 from ubuntuone.logger import LOGBACKUP, basic_formatter
57-from ubuntuone.platform.xdg_base_directory import ubuntuone_log_dir
58+from ubuntuone.platform.logger import ubuntuone_log_dir
59
60
61 if os.environ.get('U1_DEBUG'):

Subscribers

People subscribed via source and target branches

to all changes: