Merge lp:~diegosarmentero/ubuntuone-control-panel/menu-desktop-services-actions into lp:ubuntuone-control-panel
| Status: | Merged |
|---|---|
| Approved by: | Diego Sarmentero on 2012-08-14 |
| Approved revision: | 349 |
| Merged at revision: | 343 |
| Proposed branch: | lp:~diegosarmentero/ubuntuone-control-panel/menu-desktop-services-actions |
| Merge into: | lp:ubuntuone-control-panel |
| Prerequisite: | lp:~diegosarmentero/ubuntuone-control-panel/refactor-sync-status |
| Diff against target: |
539 lines (+397/-54) (has conflicts) 2 files modified
ubuntuone/controlpanel/gui/qt/systray.py (+194/-51) ubuntuone/controlpanel/gui/qt/tests/test_systray.py (+203/-3) Text conflict in ubuntuone/controlpanel/gui/qt/systray.py Text conflict in ubuntuone/controlpanel/gui/qt/tests/test_systray.py |
| To merge this branch: | bzr merge lp:~diegosarmentero/ubuntuone-control-panel/menu-desktop-services-actions |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brian Curtin (community) | Approve on 2012-08-14 | ||
| Manuel de la Peña (community) | 2012-08-13 | Approve on 2012-08-13 | |
|
Review via email:
|
|||
Commit Message
- Adding open (folder, program, url) actions to the menu (LP: #1034542)
| Brian Curtin (brian.curtin) wrote : | # |
Agree on the last part with iterating over signal_pairs.
| Brian Curtin (brian.curtin) wrote : | # |
You still have TODO's on lines 73, 79, and 81.
| Diego Sarmentero (diegosarmentero) wrote : | # |
> You still have TODO's on lines 73, 79, and 81.
Yes, those are for the future branches i'm working right now
| Ubuntu One Auto Pilot (otto-pilot) wrote : | # |
The attempt to merge lp:~diegosarmentero/ubuntuone-control-panel/menu-desktop-services-actions into lp:ubuntuone-control-panel failed. Below is the output from the failed tests.
*** Running DBus test suite ***
ubuntuone.
BaseTestCase
runTest ... [OK]
DBusServiceMa
test_
test_
DBusServiceTe
test_
test_
test_
test_
test_
test_
test_
test_
FileSyncTestCase
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
OperationsAut
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
| Ubuntu One Auto Pilot (otto-pilot) wrote : | # |
The attempt to merge lp:~diegosarmentero/ubuntuone-control-panel/menu-desktop-services-actions into lp:ubuntuone-control-panel failed. Below is the output from the failed tests.
*** Running DBus test suite ***
ubuntuone.
BaseTestCase
runTest ... [OK]
DBusServiceMa
test_
test_
DBusServiceTe
test_
test_
test_
test_
test_
test_
test_
test_
FileSyncTestCase
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
OperationsAut
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
- 349. By Diego Sarmentero on 2012-08-14
-
fixing pep8 issue


Some small fixes:
icon is always not None, I suppose it is icon_name
127 + icon = QtGui.QIcon() name(icon_ name) setIcon( icon) setText( text)
128 + if icon is not None:
129 + icon = icon_from_
130 + text = data.get('msg')
131 + self.status.
132 + self.status.
Possible attr error:
135 + self._backend_ method = getattr( self.backend, data['backend_ method' ])
A little cleaner way:
326 + @inlineCallbacks status( self): refresh_ status( )
327 + def test_refresh_
328 + """Test that it receives the proper information from syncdaemon."""
329 + yield self.ui.
do instead:
def test_refresh_ status( self): refresh_ status( )
"""Test that it receives the proper information from syncdaemon."""
return self.ui.
Tests can return deferreds so no need for the inlineCallbacks
The following is a personal thing, ignore it if you wish:
signal_pairs = ( status_ action, self.change_status) window) open_u1_ folder, self.open_ u1_folder_ action) get_more_ storage, self.get_ more_storage_ action) go_to_web, self.go_ to_web_ action) get_help_ online, self.get_ help_action)
(self.
(self.open_u1, self.restore_
(self.
(self.
(self.
(self.
(self.quit, self.stop)
)
for button, callback in signal_pairs: triggered. connect( callback)
button.
Instead of:
# Connect Signals action. triggered. connect( self.change_ status) u1.triggered. connect( self.restore_ window) u1_folder. triggered. connect( self.open_ u1_folder_ action) more_storage. triggered. connect( self.get_ more_storage_ action) to_web. triggered. connect( self.go_ to_web_ action) help_online. triggered. connect( self.get_ help_action) triggered. connect( self.stop)
self.status_
self.open_
self.open_
self.get_
self.go_
self.get_
self.quit.