Merge lp:~diegosarmentero/ubuntuone-client/network-detect into lp:ubuntuone-client
| Status: | Merged |
|---|---|
| Approved by: | Natalia Bidart on 2012-02-18 |
| Approved revision: | 1187 |
| Merged at revision: | 1196 |
| Proposed branch: | lp:~diegosarmentero/ubuntuone-client/network-detect |
| Merge into: | lp:ubuntuone-client |
| Diff against target: |
754 lines (+37/-514) 12 files modified
tests/platform/linux/test_dbus.py (+5/-39) tests/platform/windows/test_ipc.py (+0/-4) tests/platform/windows/test_network_manager.py (+0/-71) tests/syncdaemon/test_action_queue.py (+1/-104) tests/syncdaemon/test_interaction_interfaces.py (+16/-1) tests/syncdaemon/test_states.py (+0/-52) ubuntuone/platform/__init__.py (+1/-0) ubuntuone/platform/linux/dbus_interface.py (+0/-67) ubuntuone/platform/windows/ipc.py (+0/-15) ubuntuone/platform/windows/network_manager.py (+0/-160) ubuntuone/syncdaemon/interaction_interfaces.py (+13/-0) ubuntuone/syncdaemon/states.py (+1/-1) |
| To merge this branch: | bzr merge lp:~diegosarmentero/ubuntuone-client/network-detect |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Natalia Bidart | 2012-01-13 | Approve on 2012-02-18 | |
| Manuel de la Peña (community) | Approve on 2012-01-18 | ||
|
Review via email:
|
|||
Commit Message
- The current network manager is now calling network_connected properly (LP: #885292).
Description of the Change
To test it IRL you can execute syncdaemon, and you can see the logs for online/offline if you connect and disconnect the computer.
| Manuel de la Peña (mandel) wrote : | # |
I'm getting the following when I run the tests on windows:
C:\Users\
Checking if python 2.7 is in the system
ERROR: The system was unable to find the specified registry key or value.
Checking if python 2.6 is in the system
ERROR: The system was unable to find the specified registry key or value.
Checking if python 2.7 32 is in the system
Python found, building auto-generated modules...
running build
Compiled data\qt\
Compiled data\qt\
_ui.py
Compiled data\qt\
py
Compiled data\qt\
Compiled data\qt\
py
Compiled data\qt\
Compiled data\qt\
Compiled data\qt\
running build_py
creating build
creating build\lib
creating build\lib\
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubuntu_
creating build\lib\
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubuntu_
creating build\lib\
copying ubuntu_
copying ubuntu_
copying ubuntu_
creating build\lib\
copying ubuntu_
copying ubuntu_
copying ubuntu_
creating build\lib\
copying ubuntu_
copying ubuntu_
copying ubuntu_
creating build\lib\
copying ubuntu_
copying ubuntu_
copying ubuntu_
creating build\lib\
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubun...
| Manuel de la Peña (mandel) wrote : | # |
Ag, sorry wrong branch :(
| Natalia Bidart (nataliabidart) wrote : | # |
* This import:
from ubuntu_
has to be in the same group as:
from twisted.internet import defer
from ubuntuone.
Same for from ubuntu_
* "# This imports needs to be here in order to belongs to this namespace" -> "# These imports needs to be here in order to belongs to this namespace"
* Since now NetworkManagerState is multiplatform, you should move it to intercation_
| Manuel de la Peña (mandel) wrote : | # |
This is for this branch:
C:\Users\
>> test.out
ERROR: The system was unable to find the specified registry key or value.
ERROR: The system was unable to find the specified registry key or value.
Traceback (most recent call last):
File "C:\Python27\
main()
File "C:\Python27\
suite = trial_runner.
File "C:\Python27\
config[
File "C:\Python27\
module_suite = self._load_
File "C:\Python27\
module = __import__(modpath, None, None, [""])
File "C:\Users\
\platform\
from ubuntuone.
ImportError: No module named network_manager
That is when trying to run the tests on Windows.
| Natalia Bidart (nataliabidart) wrote : | # |
Also, when trying to run tests on windows I'm getting:
File "E:\client\
ger.py", line 23, in <module>
from ubuntuone.
ImportError: No module named network_manager
- 1180. By Diego Sarmentero on 2012-01-18
-
Merge.
Move Network Manager State to interaction interfaces. - 1181. By Diego Sarmentero on 2012-01-18
-
removed test network manager file.
| Natalia Bidart (nataliabidart) wrote : | # |
Can you please also remove this bit from ubuntuone/
# remove the NM's StateChanged signal receiver
The rest looks good, works OK on linux, and I'm setting up my windows VM to test it IRL there.
| Diego Sarmentero (diegosarmentero) wrote : | # |
> Can you please also remove this bit from
> ubuntuone/
>
> # remove the NM's StateChanged signal receiver
> self.system_
> signal_
> dbus_interface=
> path='/
>
> The rest looks good, works OK on linux, and I'm setting up my windows VM to
> test it IRL there.
Done!
- 1182. By Diego Sarmentero on 2012-01-27
-
merge
- 1183. By Diego Sarmentero on 2012-01-27
-
merge
- 1184. By Diego Sarmentero on 2012-02-06
-
Removing dbus code for network detect.
| Natalia Bidart (nataliabidart) wrote : | # |
Hum, I did not notice this before, but there are still some NM code:
nessita@
contrib/
contrib/
tests/syncdaemo
tests/platform/
tests/platform/
tests/platform/
tests/platform/
tests/platform/
tests/platform/
tests/platform/
tests/platform/
tests/platform/
tests/platform/
tests/platform/
ubuntuone/
ubuntuone/
ubuntuone/
ubuntuone/
Can you also remove those?
- 1185. By Diego Sarmentero on 2012-02-07
-
merge
- 1186. By Diego Sarmentero on 2012-02-07
-
run-tests.bat reverted
- 1187. By Diego Sarmentero on 2012-02-10
-
Remove some references to NetworkManager
| Natalia Bidart (nataliabidart) wrote : | # |
Looks good. Still we have a FakedNetworkManager in test_dbus, so I filled bug #935389 so we can land this branch.
Tested IRL, works as expected!


I can not branch this branch, I'm getting:
nessita@ dali:~/ canonical/ client$ bzr branch lp:~diegosarmentero/ubuntuone-client/network-detect //bazaar. launchpad. net/~diegosarme ntero/ubuntuone -client/ network- detect/ ": location is a repository. dali:~/ canonical/ client$
bzr: ERROR: Not a branch: "bzr+ssh:
nessita@
Also, this MP is empty, so... can you please check what happened?
Thanks!