Merge lp:~ralsina/ubuntuone-control-panel/go-native into lp:ubuntuone-control-panel
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Roberto Alsina on 2012-03-09 | ||||
| Approved revision: | 286 | ||||
| Merged at revision: | 280 | ||||
| Proposed branch: | lp:~ralsina/ubuntuone-control-panel/go-native | ||||
| Merge into: | lp:ubuntuone-control-panel | ||||
| Diff against target: |
70 lines (+14/-4) 3 files modified
ubuntuone/controlpanel/gui/qt/addfolder.py (+12/-1) ubuntuone/controlpanel/gui/qt/tests/test_addfolder.py (+1/-1) ubuntuone/controlpanel/utils/windows.py (+1/-2) |
||||
| To merge this branch: | bzr merge lp:~ralsina/ubuntuone-control-panel/go-native | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Natalia Bidart | 2012-03-06 | Approve on 2012-03-09 | |
| Manuel de la Peña (community) | Approve on 2012-03-09 | ||
|
Review via email:
|
|||
Commit Message
- Switched to the native file chooser on Linux (Fixes LP: #947711).
Description of the Change
Only use the non-native file chooser on Windows
- 279. By Roberto Alsina on 2012-03-06
-
No, 0 is not a good option
| Roberto Alsina (ralsina) wrote : | # |
> When opening the file choose from the Folders tab, I'm getting:
>
> File "/home/
> native/
> res = yield f(*args, **kwargs)
> File "/usr/lib/
> 1039, in _inlineCallbacks
> result = g.send(result)
> File "/home/
> native/
> options=
> TypeError: QFileDialog.
> caption=QString(), QString directory=
> options=
> 'int'
I forgot to IRL test the last revno. So, I added the right constant now, but I amhaving two concerns about this branch:
1) It's importing PyQt outside qt/
2) I created a linux.py just for a constant
| Natalia Bidart (nataliabidart) wrote : | # |
> I forgot to IRL test the last revno. So, I added the right constant now, but I
> amhaving two concerns about this branch:
>
> 1) It's importing PyQt outside qt/
> 2) I created a linux.py just for a constant
What about if you just do the following in ubuntuone/
if windows:
FILE_
else:
FILE_
- 280. By Roberto Alsina on 2012-03-09
-
simplify a bit
| Roberto Alsina (ralsina) wrote : | # |
> What about if you just do the following in
> ubuntuone/
>
> if windows:
> FILE_CHOOSER_
> QtGui.QFileDial
> else:
> FILE_CHOOSER_
Sure, done in revno 280 (no need for the | ShowDirsOnly). It would still be importing QtGui outside qt/ though
- 281. By Roberto Alsina on 2012-03-09
-
moved constants into folders.py
- 282. By Roberto Alsina on 2012-03-09
-
move things around
- 283. By Roberto Alsina on 2012-03-09
-
merged trunk
- 284. By Roberto Alsina on 2012-03-09
-
stupid me
- 285. By Roberto Alsina on 2012-03-09
-
engage brain before coding
- 286. By Roberto Alsina on 2012-03-09
-
typo


When opening the file choose from the Folders tab, I'm getting:
File "/home/ nessita/ canonical/ controlpanel/ review_ go-native/ ubuntuone/ controlpanel/ gui/qt/ __init_ _.py", line 94, in inner python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 1039, in _inlineCallbacks nessita/ canonical/ controlpanel/ review_ go-native/ ubuntuone/ controlpanel/ gui/qt/ addfolder. py", line 61, in on_clicked FILE_CHOOSER_ OPTIONS) getExistingDire ctory(QWidget parent=None, QString caption=QString(), QString directory= QString( ), QFileDialog.Options options= QFileDialog. ShowDirsOnly) : argument 'options' has unexpected type 'int'
res = yield f(*args, **kwargs)
File "/usr/lib/
result = g.send(result)
File "/home/
options=
TypeError: QFileDialog.