Merge lp:~laney/ubiquity/1572793 into lp:ubiquity

Proposed by Iain Lane
Status: Merged
Approved by: Mathieu Trudel-Lapierre
Approved revision: 6441
Merged at revision: 6441
Proposed branch: lp:~laney/ubiquity/1572793
Merge into: lp:ubiquity
Diff against target: 25 lines (+8/-1)
2 files modified
debian/changelog (+7/-0)
ubiquity/misc.py (+1/-1)
To merge this branch: bzr merge lp:~laney/ubiquity/1572793
Reviewer Review Type Date Requested Status
Mathieu Trudel-Lapierre Approve
Review via email: mp+292543@code.launchpad.net

Description of the change

misc.py: Ask for the 'State' property instead of 'state'. Fixes display of wireless page. (LP: #1572793)

To post a comment you must log in.
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Looks good!

review: Approve
Revision history for this message
Iain Lane (laney) wrote :

BTW for future people - this was because NM ported from dbus-glib to GDBus between wily and xenial, and dbus-glib has a misfeature where it will return the value if you miscapitalise the first letter of a property, instead of erroring. GDBus doesn't do that, so the misspelling of 'State' as 'state' was correctly causing a check in the wireless page to fail, which took an error path that made Ubiquity not load the page.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2016-04-20 16:14:44 +0000
+++ debian/changelog 2016-04-21 15:21:58 +0000
@@ -1,3 +1,10 @@
1ubiquity (2.21.64) UNRELEASED; urgency=medium
2
3 * misc.py: Ask for the 'State' property instead of 'state'. Fixes display
4 of wireless page. (LP: #1572793)
5
6 -- Iain Lane <iain@orangesquash.org.uk> Thu, 21 Apr 2016 16:05:15 +0100
7
1ubiquity (2.21.63) xenial; urgency=medium8ubiquity (2.21.63) xenial; urgency=medium
29
3 * Automatic update of included source packages: user-setup10 * Automatic update of included source packages: user-setup
411
=== modified file 'ubiquity/misc.py'
--- ubiquity/misc.py 2014-11-26 00:12:18 +0000
+++ ubiquity/misc.py 2016-04-21 15:21:58 +0000
@@ -824,7 +824,7 @@
824 import dbus824 import dbus
825 bus = dbus.SystemBus()825 bus = dbus.SystemBus()
826 manager = bus.get_object(NM, '/org/freedesktop/NetworkManager')826 manager = bus.get_object(NM, '/org/freedesktop/NetworkManager')
827 state = get_prop(manager, NM, 'state')827 state = get_prop(manager, NM, 'State')
828 return state == NM_STATE_CONNECTED_GLOBAL828 return state == NM_STATE_CONNECTED_GLOBAL
829829
830830

Subscribers

People subscribed via source and target branches

to status/vote changes: