After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 746045 - Update Python NM example
Update Python NM example
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: general
git master
Other All
: Normal enhancement
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-03-11 18:47 UTC by Srdjan Grubor
Modified: 2015-03-12 09:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed_patch (2.00 KB, patch)
2015-03-11 18:50 UTC, Srdjan Grubor
none Details | Review

Description Srdjan Grubor 2015-03-11 18:47:15 UTC
Current Python NM example has a very crude connection state output and the global NM connectivity is not used in them either.

I'll add the patch for this in a bit
Comment 1 Srdjan Grubor 2015-03-11 18:50:57 UTC
Created attachment 299123 [details] [review]
proposed_patch
Comment 2 Thomas Haller 2015-03-12 09:42:33 UTC
Thanks, merged as http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=0e1fe1fe4ef76cfc7fc31a6c75b4ac368dcd23d8


I slightly modified the patch:

I reworded the subject line of the commit and changed:
-  print "'%s' is %s" % (con_name, connectivity_states[state].lower())
+  print "Connection '%s' is %s" % (con_name, connectivity_states[state].lower())