Merge lp://qastaging/~nataliabidart/ubuntuone-control-panel/handle-sd-timeout into lp://qastaging/ubuntuone-control-panel
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Natalia Bidart | ||||
Approved revision: | 28 | ||||
Merged at revision: | 27 | ||||
Proposed branch: | lp://qastaging/~nataliabidart/ubuntuone-control-panel/handle-sd-timeout | ||||
Merge into: | lp://qastaging/ubuntuone-control-panel | ||||
Diff against target: |
941 lines (+309/-136) 17 files modified
ubuntuone/controlpanel/backend.py (+1/-0) ubuntuone/controlpanel/dbus_client.py (+8/-0) ubuntuone/controlpanel/dbus_service.py (+66/-10) ubuntuone/controlpanel/gtk/tests/__init__.py (+0/-16) ubuntuone/controlpanel/gtk/tests/test_gui.py (+2/-3) ubuntuone/controlpanel/gtk/tests/test_widgets.py (+7/-6) ubuntuone/controlpanel/gtk/widgets.py (+1/-0) ubuntuone/controlpanel/integrationtests/__init__.py (+1/-0) ubuntuone/controlpanel/integrationtests/test_dbus_client_sso.py (+1/-0) ubuntuone/controlpanel/integrationtests/test_dbus_service.py (+82/-4) ubuntuone/controlpanel/integrationtests/test_webclient.py (+2/-1) ubuntuone/controlpanel/tests/__init__.py (+17/-0) ubuntuone/controlpanel/tests/test_backend.py (+24/-35) ubuntuone/controlpanel/tests/test_utils.py (+62/-2) ubuntuone/controlpanel/tests/testcase.py (+0/-54) ubuntuone/controlpanel/utils.py (+29/-0) ubuntuone/controlpanel/webclient.py (+6/-5) |
||||
To merge this branch: | bzr merge lp://qastaging/~nataliabidart/ubuntuone-control-panel/handle-sd-timeout | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John Lenton (community) | Approve | ||
Review via email:
|
Commit message
Handling properly any failure between dbus calls and errbacking deferreds (LP: #683760).
Description of the change
When passing DBus error signals to deferred's errback, we need to transform the twisted Failures into string-string dicts. Otherwise, we get traces like:
Unhandled error in Deferred:
Traceback (most recent call last):
File "/usr/lib/
_inlineCall
File "/usr/lib/
deferred.
File "/usr/lib/
self.
File "/usr/lib/
self.
--- <exception caught here> ---
File "/usr/lib/
self.result = callback(
File "/usr/lib/
message.
exceptions.
To reproduce:
* Temporally make syncdaemon dbus service unavailable (edit /usr/share/
* from trunk, run:
in terminal 1) PYTHONPATH=. ./bin/ubuntuone
in terminal 2) PYTHONPATH=. ./bin/ubuntuone
* you'll see the trace I pasted above on terminal 1.
From this branch, reproduce the test case and this time you'll get, on terminal 1:
ERROR:ubuntuone
As advertised.