Merge lp:~diegosarmentero/ubuntuone-client/ubuntuone-client-publishapi into lp:ubuntuone-client
| Status: | Merged | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Approved by: | Diego Sarmentero on 2012-10-09 | ||||||||
| Approved revision: | 1340 | ||||||||
| Merged at revision: | 1336 | ||||||||
| Proposed branch: | lp:~diegosarmentero/ubuntuone-client/ubuntuone-client-publishapi | ||||||||
| Merge into: | lp:ubuntuone-client | ||||||||
| Diff against target: |
180 lines (+113/-11) 2 files modified
tests/platform/tools/test_tools.py (+98/-6) ubuntuone/platform/tools/perspective_broker.py (+15/-5) |
||||||||
| To merge this branch: | bzr merge lp:~diegosarmentero/ubuntuone-client/ubuntuone-client-publishapi | ||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Manuel de la Peña (community) | Approve on 2012-10-09 | ||
| Mike McCracken (community) | 2012-10-05 | Approve on 2012-10-09 | |
|
Review via email:
|
|||
Commit Message
- Making the handler connection to be a list of handlers (LP: #1061880).
| Diego Sarmentero (diegosarmentero) wrote : | # |
We needed to store a list of handlers to be called, because the setattr is overriding the behaviour of that part of the object every time a connect_signal is requested, and it was happening that several functions were being connected to the same signals, the ones with the handler that we actually want, and some other for clean up at syncdaemon core, and only the last handler connected was the one that was being called.
- 1335. By Diego Sarmentero on 2012-10-08
-
merge
- 1336. By Diego Sarmentero on 2012-10-09
-
improving handler calls
| Manuel de la Peña (mandel) wrote : | # |
73 + self.addCleanup
Why not adding it after the creation of the sdtool?
- 1337. By Diego Sarmentero on 2012-10-09
-
improve test
- 1338. By Diego Sarmentero on 2012-10-09
-
fix test
- 1339. By Diego Sarmentero on 2012-10-09
-
adding new test
| Mike McCracken (mikemc) wrote : | # |
minor - test_connect_
- 1340. By Diego Sarmentero on 2012-10-09
-
fixed docstring
| Mike McCracken (mikemc) wrote : | # |
Approve. These new tests pass on OSX*, and testing the share links panel shows no further hangs.
* the whole suite still has a ton of dirty reactor errors though


This is related to this control-panel branch: /code.launchpad .net/~diegosarm entero/ ubuntuone- control- panel/u1- cp-publishapi/ +merge/ 128316
https:/
but in light of that branch, it's not totally clear why we need to change this here.
share_links is the only part of control panel that ever sets signal handlers for the public_files handler and the public_ access_ changed handler. Is it possible to have multiple invocations of this remote call from control panel? ie, does this happen if we click fast to share two files in the table or something? or is that impossible?
Also, just a note that on IRC I requested a test that shows the problem and breaks with the old code… Diego was working on that at EOD friday…