Merge lp:~diegosarmentero/ubuntuone-control-panel/menu-status-actions into lp:ubuntuone-control-panel
| Status: | Merged |
|---|---|
| Approved by: | Diego Sarmentero on 2012-08-14 |
| Approved revision: | 346 |
| Merged at revision: | 342 |
| Proposed branch: | lp:~diegosarmentero/ubuntuone-control-panel/menu-status-actions |
| Merge into: | lp:ubuntuone-control-panel |
| Prerequisite: | lp:~diegosarmentero/ubuntuone-control-panel/refactor-sync-status |
| Diff against target: |
327 lines (+216/-31) 2 files modified
ubuntuone/controlpanel/gui/qt/systray.py (+76/-16) ubuntuone/controlpanel/gui/qt/tests/test_systray.py (+140/-15) |
| To merge this branch: | bzr merge lp:~diegosarmentero/ubuntuone-control-panel/menu-status-actions |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Roberto Alsina (community) | Approve on 2012-08-13 | ||
| Manuel de la Peña (community) | 2012-08-10 | Approve on 2012-08-13 | |
|
Review via email:
|
|||
Commit Message
- Adding status actions to the system tray menu (LP: #1034542).
Description of the Change
For u1lint you should set the PYTHONPATH including this branch: lp:~diegosarmentero/ubuntuone-client/ipcmenu
| Diego Sarmentero (diegosarmentero) wrote : | # |
> Please fix the following:
>
> 103 + self._backend_
>
> You should pass None to the getattr method to make sure you do not get an attr
> error. like:
>
> 103 + self._backend_
> None)
fixed
| Manuel de la Peña (mandel) wrote : | # |
I'm getting the following lint error:
== Python Lint Notices ==
ubuntuone/
211: [E1101, SyncDaemonClien
| Ubuntu One Auto Pilot (otto-pilot) wrote : | # |
The prerequisite https:/


Please fix the following:
103 + self._backend_ method = getattr( self.backend, data['backend_ method' ])
You should pass None to the getattr method to make sure you do not get an attr error. like:
103 + self._backend_ method = getattr( self.backend, data['backend_ method' ], None)