Merge lp://staging/~tealeg/landscape-client/ui-permissions-and-panel into lp://staging/~landscape/landscape-client/trunk
Status: | Merged |
---|---|
Approved by: | Free Ekanayaka |
Approved revision: | 452 |
Merge reported by: | Geoff Teale |
Merged at revision: | not available |
Proposed branch: | lp://staging/~tealeg/landscape-client/ui-permissions-and-panel |
Merge into: | lp://staging/~landscape/landscape-client/trunk |
Diff against target: |
1973 lines (+1357/-278) 29 files modified
applications/landscape-client-settings.desktop (+17/-0) dbus-1/com.canonical.LandscapeClientRegistration.conf (+16/-0) dbus-1/com.canonical.LandscapeClientRegistration.service (+4/-0) dbus-1/com.canonical.LandscapeClientSettings.conf (+16/-0) dbus-1/com.canonical.LandscapeClientSettings.service (+4/-0) icons/preferences-management-service.svg (+78/-0) landscape/ui/controller/app.py (+2/-2) landscape/ui/controller/configuration.py (+24/-15) landscape/ui/controller/tests/test_app.py (+17/-19) landscape/ui/controller/tests/test_configuration.py (+54/-39) landscape/ui/lib/polkit.py (+115/-0) landscape/ui/model/configuration/mechanism.py (+98/-0) landscape/ui/model/configuration/proxy.py (+77/-0) landscape/ui/model/configuration/tests/test_mechanism.py (+174/-0) landscape/ui/model/configuration/tests/test_proxy.py (+127/-0) landscape/ui/model/registration/mechanism.py (+114/-82) landscape/ui/model/registration/proxy.py (+87/-0) landscape/ui/model/registration/tests/test_mechanism.py (+45/-0) landscape/ui/model/registration/tests/test_proxy.py (+56/-0) landscape/ui/model/tests/test_registration.py (+0/-80) landscape/ui/tests/helpers.py (+39/-0) landscape/ui/view/configuration.py (+5/-4) landscape/ui/view/tests/test_configuration.py (+28/-28) polkit-1/com.canonical.LandscapeClientRegistration.policy (+21/-0) polkit-1/com.canonical.LandscapeClientSettings.policy (+21/-0) scripts/landscape-client-registration-mechanism (+15/-0) scripts/landscape-client-settings-mechanism (+17/-0) setup.py (+3/-9) setupui.py (+83/-0) |
To merge this branch: | bzr merge lp://staging/~tealeg/landscape-client/ui-permissions-and-panel |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Free Ekanayaka (community) | Approve | ||
Thomas Herve (community) | Approve | ||
Review via email: mp+89248@code.staging.launchpad.net |
Description of the change
Fixes bug #911665
The following changes have been made:
- Split Configuration model into a DBus service mechanism and a proxy for the client.
- Split Registration model in to a DBus service mechanism and a proxy for the client (with asynchronous registration).
- Create PolicyKit policies for configuration and registration and cause these to be checked by the relevant DBus service mechanism when it receives dbus calls (effectively trigger a challenge for a password and only allow admin users to continue).
- Create DBus service and conf files for the two service mechanisms (Allowing them to be run by the System bus on demand)
- Create an application desktop file causing the landscape-
- Create the icon preferences-
- Create setupui.py - a distutils script for the settings-ui components.
To test all this you will need to run:
sudo setup.py install
sudo setupui.py install
... and then open gnome-control-
[1] Please add docstrings to PolicyKitMechanism and its methods.
[2] Instead of exposing 10 methods in ConfigurationMe chanism, 2 for each config value, would it be possible to have only 2 methods taking the config key as parameters? This would simplify ConfigurationProxy as well.
[3] All your tests need docstrings.
[4] Is it expected that register_ fail/register_ error don't do anything?
[5] I've changed trunk so that tests are skipped properly if the Gtk/Gdk imports fail, please preserve the behavior.
Thanks!