summaryrefslogtreecommitdiff
path: root/examples/python/gi/update-ip4-method.py
Commit message (Collapse)AuthorAgeFilesLines
* python: make dbus, gi examples, and debug-helper.py python3 readyYifan J2017-12-041-3/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=791121
* python: use gi.require_version() in generate-setting-docs.py and examplesThomas Haller2015-11-111-0/+2
| | | | | | | | | | | | | | gi now emits a warning when not loading a specific library version [1]: ./generate-setting-docs.py:21: PyGIWarning: NM was imported without specifying a version first. Use gi.require_version(NM, 1.0) before import to ensure that the right version gets loaded. from gi.repository import NM, GObject Seems require_version() is reasonably old to just always use it without breaking on older versions [2]. [1] Related: https://bugzilla.gnome.org/show_bug.cgi?id=727379 [2] https://git.gnome.org/browse/pygobject/commit/?id=76758efb6579752237a0dc4d56cf9518de6c6e55
* examples: python: print into stderrPetr Vorel2015-03-101-1/+1
| | | | | | https://mail.gnome.org/archives/networkmanager-list/2015-March/msg00024.html Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
* examples: update python examplesDan Winship2014-11-151-29/+19
| | | | | | | | | | Update the raw D-Bus python examples to use newer APIs where appropriate (and split the add-connection example into 1.0-only and 0.9-compatible versions). Update the gi-based python examples for the various API changes since they were last updated. Also add a comment to the ruby add-connection example pointing out that it's still using the old settings APIs.
* examples: fix python GI examples to work after libnm changesJiří Klimeš2014-09-051-25/+24
|
* all: port everything to libnmDan Winship2014-08-011-6/+6
| | | | | | | | | | | Since the API has not changed at this point, this is mostly just a matter of updating Makefiles, and changing references to the library name in comments. NetworkManager cannot link to libnm due to the duplicated type/symbol names. So it links to libnm-core.la directly, which means that NetworkManager gets a separate copy of that code from libnm.so. Everything else links to libnm.
* examples: add Python D-Bus and GI examples for updating IPv4 setting methodDan Williams2014-06-101-0/+96