Merge lp:~diegosarmentero/ubuntuone-control-panel/sync-status into lp:ubuntuone-control-panel
| Status: | Merged |
|---|---|
| Approved by: | Diego Sarmentero on 2012-05-14 |
| Approved revision: | 320 |
| Merged at revision: | 318 |
| Proposed branch: | lp:~diegosarmentero/ubuntuone-control-panel/sync-status |
| Merge into: | lp:ubuntuone-control-panel |
| Diff against target: |
84 lines (+31/-1) 4 files modified
ubuntuone/controlpanel/backend.py (+6/-1) ubuntuone/controlpanel/gui/qt/filesyncstatus.py (+2/-0) ubuntuone/controlpanel/gui/qt/tests/test_filesyncstatus.py (+15/-0) ubuntuone/controlpanel/tests/test_backend.py (+8/-0) |
| To merge this branch: | bzr merge lp:~diegosarmentero/ubuntuone-control-panel/sync-status |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Mike McCracken (community) | Approve on 2012-05-11 | ||
| Roberto Alsina (community) | 2012-05-10 | Approve on 2012-05-11 | |
|
Review via email:
|
|||
Commit Message
- Checking that we are receiving the right argument type, or ignore it if it's not valid (LP: 995146).
| Diego Sarmentero (diegosarmentero) wrote : | # |
> Isn't the problem that we are switching to DISABLED in line 15 of the diff
> because we are getting a 0?
>
> If status is meant to be a mapping, shouldn't we check for that BEFORE
> changing state? I have not looked carefully at the code and I am sleepy, so I
> may be saying nonsense ;-)
Actually, we are receiving a dbus.UInt32(3), but yes, it makes more sense to check for Mapping before.
- 319. By Diego Sarmentero on 2012-05-11
-
Checking first for Mapping
| Mike McCracken (mikemc) wrote : | # |
Code looks good. In general I'm curious why we're getting sent invalid status arguments in the first place...
I'd like to see two minor docstring changes:
controlpanel/
for _process_
It would be nice for future maintenance to say what it might return and what that means.
tests/test_
didn't understand docstring of new test.
the commit comment seems like it'd be a better doc string
"Checking that the method receive the proper argument type"
- 320. By Diego Sarmentero on 2012-05-11
-
Fixing docstrings.


Isn't the problem that we are switching to DISABLED in line 15 of the diff because we are getting a 0?
If status is meant to be a mapping, shouldn't we check for that BEFORE changing state? I have not looked carefully at the code and I am sleepy, so I may be saying nonsense ;-)