Merge lp:~ralsina/ubuntuone-control-panel/tab-tab-tab into lp:ubuntuone-control-panel
| Status: | Merged |
|---|---|
| Approved by: | Roberto Alsina on 2012-03-12 |
| Approved revision: | 291 |
| Merged at revision: | 283 |
| Proposed branch: | lp:~ralsina/ubuntuone-control-panel/tab-tab-tab |
| Merge into: | lp:ubuntuone-control-panel |
| Diff against target: |
239 lines (+107/-16) 2 files modified
ubuntuone/controlpanel/gui/qt/folders.py (+53/-9) ubuntuone/controlpanel/gui/qt/tests/test_folders.py (+54/-7) |
| To merge this branch: | bzr merge lp:~ralsina/ubuntuone-control-panel/tab-tab-tab |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Diego Sarmentero (community) | Approve on 2012-03-12 | ||
| Natalia Bidart | 2012-03-09 | Approve on 2012-03-12 | |
|
Review via email:
|
|||
Commit Message
- Arranged Tab ordering in folders tab according to guidelines (LP: #950073).
Description of the Change
- Arranged Tab ordering in folders tab according to guidelines (LP: #950073).
- 287. By Roberto Alsina on 2012-03-09
-
merged trunk
- 288. By Roberto Alsina on 2012-03-09
-
removed remnant
- 289. By Roberto Alsina on 2012-03-09
-
removed remnant, extra guard, style fix
| Roberto Alsina (ralsina) wrote : | # |
> * I think this code is a leftover from the merge with trunk, but it should be
> removed:
>
> # Operator not preceded by a space
> # pylint: disable=C0322
> cb = lambda checked, item=child: \
> self.on_
> # pylint: enable=C0322
> button.
Yes, bad merge with no conflict warning, will remove.
> * Question, why are you adding self.is_processing = True? that code triggers
> the showing of the loading overlay which is already being shown in load() and
> hidden in the line 145 of process_info.
I was getting weird stuff when not setting that.Turns out I was missing a guard in on_folders_
> * In test_focus_order, could you please not use literal but the value from the
> FAKE_VOLUMES_INFO stub data? Ideally you should iterate the FAKE_VOLUMES_INFO
> so if we change it to add a specific buggy entry, this test does not break.
Tricky. The items are not in the same order in FAKE_VOLUMES_INFO and in the widget, so any change in FAKE_VOLUMES_INFO can change what we get in test_focus_order. I could do a loop, over a VOLUMES_INFO
that was sorted, and not use FAKE_VOLUMES_INFO.
>
> * Any reason to use this style?
>
> self.assertEqua
> item)
>
> instead of:
>
> self.assertEqua
>
> since line length allows it to be like the second form.
It used to be longer ;-)
I pushed the suggested changes (except for the FAKE_VOLUMES_INFO loop one) in revno 289.
- 290. By Roberto Alsina on 2012-03-12
-
removed commented code
- 291. By Roberto Alsina on 2012-03-12
-
removed useless line


* I think this code is a leftover from the merge with trunk, but it should be removed:
# Operator not preceded by a space
self. on_folders_ itemActivated( item)
button. clicked. connect( cb)
# pylint: disable=C0322
cb = lambda checked, item=child: \
# pylint: enable=C0322
* Question, why are you adding self.is_processing = True? that code triggers the showing of the loading overlay which is already being shown in load() and hidden in the line 145 of process_info.
* In test_focus_order, could you please not use literal but the value from the FAKE_VOLUMES_INFO stub data? Ideally you should iterate the FAKE_VOLUMES_INFO so if we change it to add a specific buggy entry, this test does not break.
* Any reason to use this style?
instead of:
since line length allows it to be like the second form.
After testing IRL, it works great! (tough because the leftover callback, the file manager is opened twice).