Merge lp:~kvalo/indicator-network/settings-backend-begin into lp:~indicator-applet-developers/indicator-network/indicator-network
| Status: | Merged |
|---|---|
| Merged at revision: | 122 |
| Proposed branch: | lp:~kvalo/indicator-network/settings-backend-begin |
| Merge into: | lp:~indicator-applet-developers/indicator-network/indicator-network |
| Diff against target: |
767 lines (+565/-80) 8 files modified
src/settings/indicatorNetworkSettings/app.py (+4/-0) src/settings/indicatorNetworkSettings/backend/connection.py (+0/-18) src/settings/indicatorNetworkSettings/backend/connmanmanager.py (+160/-0) src/settings/indicatorNetworkSettings/backend/device.py (+31/-42) src/settings/indicatorNetworkSettings/backend/devicemanager.py (+153/-0) src/settings/indicatorNetworkSettings/backend/service.py (+195/-0) src/settings/indicatorNetworkSettings/frontend/pages/connections.py (+5/-5) src/settings/indicatorNetworkSettings/frontend/widgets/device_boxes/wireless.py (+17/-15) |
| To merge this branch: | bzr merge lp:~kvalo/indicator-network/settings-backend-begin |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Mikkel Kamstrup Erlandsen (community) | Approve on 2010-12-14 | ||
| Alex Launi (community) | 2010-12-13 | Needs Fixing on 2010-12-13 | |
|
Review via email:
|
|||
Description of the Change
Beginnings of backend implementation for the new settings window.
| Kalle Valo (kvalo) wrote : | # |
On 12/13/2010 10:22 PM, Alex Launi wrote:
> Review: Needs Fixing
>
> 1. Make check fails due to an out of date POTFILES.in file. Probably will want to fix this for translators' sake (and for make check's sake).
That was actually fixed already on trunk, I just forgot to merge trunk.
I did that now and the issue is fixed.
> 2. line 239 in 'src/settings/
Added.
> 3. I don't really like the prints. Is there a python version of g_debug? If this is how you've done the rest of the project then keep going, but a lot of it looks like
Currently there is no proper logging framework in
indicator-
feature, but not right now due to other tasks. But actually there were
two accidental prints from a debuggin session, I removed those now.
I have now pushed fixes to the branch. Please take a look. Thank you for
the review.
Kalle
Regarding logging you can use the build in 'logging' module of Python. It's highly run-time configurable. But that can wait to another merge request of course.
Looks good to me otherwise.
I can see why you wanna bind libconnman since you have a lot of sync DBus calls in here - it's less catastrophic for an app of course, but it may still lock up the ui.
| Kalle Valo (kvalo) wrote : | # |
Mikkel Kamstrup Erlandsen <email address hidden> writes:
> I can see why you wanna bind libconnman since you have a lot of sync
> DBus calls in here - it's less catastrophic for an app of course, but
> it may still lock up the ui.
Yes, it's driving me crazy to write basically same code twice, first in
C and then in python. My current plan is to write a quick sync dbus
implementation first and then move to libconnman and have proper async
calls.
--
Kalle Valo
- 129. By Kalle Valo on 2010-12-13
-
settings: simplify device states. Remove offline state, and rename other
states to off, on and connected. - 130. By Kalle Valo on 2010-12-13
-
settings: fix mobile to use new states
- 131. By Kalle Valo on 2010-12-13
-
settings: remove leftover fixme

1. Make check fails due to an out of date POTFILES.in file. Probably will want to fix this for translators' sake (and for make check's sake).
2. line 239 in 'src/settings/ indicatorNetwor kSettings/ backend/ device. py' looks like a good place to define a custom Exception, maybe UnknownDeviceTy peError (type)
3. I don't really like the prints. Is there a python version of g_debug? If this is how you've done the rest of the project then keep going, but a lot of it looks like