Merge lp:~diegosarmentero/ubuntuone-control-panel/folder-show-garbage into lp:ubuntuone-control-panel
| Status: | Merged |
|---|---|
| Approved by: | Diego Sarmentero on 2012-01-26 |
| Approved revision: | 251 |
| Merged at revision: | 254 |
| Proposed branch: | lp:~diegosarmentero/ubuntuone-control-panel/folder-show-garbage |
| Merge into: | lp:ubuntuone-control-panel |
| Diff against target: |
240 lines (+65/-17) 7 files modified
ubuntuone/controlpanel/backend.py (+16/-6) ubuntuone/controlpanel/gui/qt/addfolder.py (+3/-5) ubuntuone/controlpanel/gui/qt/tests/__init__.py (+4/-0) ubuntuone/controlpanel/gui/qt/tests/test_addfolder.py (+2/-1) ubuntuone/controlpanel/sd_client/__init__.py (+4/-0) ubuntuone/controlpanel/tests/test_backend.py (+28/-2) ubuntuone/controlpanel/tests/test_sd_client.py (+8/-3) |
| To merge this branch: | bzr merge lp:~diegosarmentero/ubuntuone-control-panel/folder-show-garbage |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Natalia Bidart | 2012-01-18 | Approve on 2012-01-26 | |
| Roberto Alsina (community) | Approve on 2012-01-25 | ||
|
Review via email:
|
|||
Commit Message
Fixed: QT UI: Folder list may show garbage for user homes non-ascii (LP: #851356).
Description of the Change
To test it IRL you will need to have a windows user with unicode chars in the username and be able to open the control panel and see the Ubuntu One folder.
- 247. By Diego Sarmentero on 2012-01-18
-
get_home_dir modified
- 248. By Diego Sarmentero on 2012-01-19
-
removing unnecessary self.home_dir
| Natalia Bidart (nataliabidart) wrote : | # |
The branch looks good. There are a couple of this that confuse me:
* you're mixing unicode and non unicode in 200 to 202. Now it works because there is automatic promotion to unicode, but we should avoid that and be explicit.
* when trying to create a UDF using u1client trunk and this branch, the creation fails and the syncdaemon log shows:
2012-01-19 11:00:45,206 - ubuntuone.
C:\Python27\
s1 = min(m)
2012-01-19 11:00:45,207 - ubuntuone.
2012-01-19 11:00:45,207 - ubuntuone.
': "INVALID_PATH: 'ascii' codec can't decode byte 0xe5 in position 0: ordinal not in range(128)"}.
Would you please confirm if the problem is in syncdaemon's end or controlpanel's end?
| Natalia Bidart (nataliabidart) wrote : | # |
Let me know if this branch is meant to only solve the showing of the folders, and I'll make a new bug report and change the voting.
- 249. By Diego Sarmentero on 2012-01-23
-
merge
- 250. By Diego Sarmentero on 2012-01-25
-
_process_path improved
| Diego Sarmentero (diegosarmentero) wrote : | # |
> Let me know if this branch is meant to only solve the showing of the folders,
> and I'll make a new bug report and change the voting.
This is a Ubuntu One Client issue, I already create a bug for it and i'm working on that:
https:/
| Natalia Bidart (nataliabidart) wrote : | # |
- Seems like the import of USER_HOME was moved in ubuntuone/
- While this test_volumes_
prefix = 'My Ubuntu' + USER_HOME
self.assertTrue
- Tests in windows are not padding for me, but neither are the suite from trunk, so seems unrelated.
I'm approving but please fix the first two items before landing.
- 251. By Diego Sarmentero on 2012-01-26
-
Tests improved.


I just don't understand how get_home_dir is supposed to work. It will set self.home_dir in some eventual future, so after calling get_home_dir, thereisno guarantee self.home_dir will have anything useful.
I think that should be blocking code, and not return until self.home_dir is set.
Unless of course, I missed something...