Dan Williams
d1d048c93d
examples: add python+dbus example to print active access point
2015-07-08 09:31:22 -05:00
Jiří Klimeš
eebfe56a90
examples: python: add an D-Bus example creating and activating a bond
2015-06-23 15:06:31 +02:00
Jiří Klimeš
1e923cb923
examples: add wifi-hotspot.py script to Makefile.am
...
Fixes: 1af8e2f132
2015-06-23 15:04:43 +02:00
Dan Williams
1af8e2f132
examples: add DBus + Python example for starting/stopping a WiFi hotspot
2015-05-18 15:11:12 -05:00
Srdjan Grubor
0e1fe1fe4e
examples: update Python NM example to print detailed connection state
...
Current Python NM example has a very crude connection state output
and the global NM connectivity is not used in them either.
https://bugzilla.gnome.org/show_bug.cgi?id=746045
2015-03-12 10:39:00 +01:00
Petr Vorel
4213c17b44
examples: python: print into stderr
...
https://mail.gnome.org/archives/networkmanager-list/2015-March/msg00024.html
Signed-off-by: Petr Vorel <petr.vorel@gmail.com >
2015-03-10 12:17:59 +01:00
Thomas Haller
2171084378
examples/trvial: replace tabs by whitespace in python example
2015-03-10 12:17:23 +01:00
Jiří Klimeš
6b5de0ab5f
examples: add a Python example deactivating connections by type (bgo #732826 )
...
https://bugzilla.gnome.org/show_bug.cgi?id=732826
2015-03-05 15:59:52 +01:00
Dan Winship
66936decfa
examples: update python examples
...
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.
2014-11-15 09:31:49 -05:00
Thomas Haller
0923769285
test,examples: fix scripts to avoid 'has_key' for Python 3
...
'has_key' on Dictionaries is removed from Python3 in favor of 'in'.
Signed-off-by: Thomas Haller <thaller@redhat.com >
2014-10-31 16:39:00 +01:00
Jiří Klimeš
85909d080f
examples: fix python GI examples to work after libnm changes
2014-09-05 13:48:56 +02:00
Dan Winship
258e74eb0c
libnm: make the the use of GInitable mandatory
...
Remove _nm_object_ensure_inited(), etc; objects that implement
GInitable are now mandatory-to-init().
Remove constructor() implementations that sometimes return NULL; do
all the relevant checking in init() instead.
Make nm_client_new() and nm_remote_settings_new() take a GCancellable
and a GError**.
2014-08-01 14:34:40 -04:00
Dan Winship
a7c4d53d03
all: port everything to libnm
...
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.
2014-08-01 14:34:05 -04:00
Dan Williams
5a4e42bc51
examples: add Python dbus example indicating if WWAN is the default connection
2014-06-20 10:54:03 -05:00
Dan Williams
e8fb3864d1
examples: add Python D-Bus and GI examples for updating IPv4 setting method
2014-06-10 16:20:35 -05:00
Jiří Klimeš
524658f8a3
examples: fix Makefile.am to include all Python examples for distribution
2014-03-07 19:54:49 +01:00
Jiří Klimeš
3e44e7a9f8
example: simplify get-active-connections.py by using ID and Type properties
2014-03-05 16:17:13 +01:00
Jiří Klimeš
550ce1e631
examples: add a GOI Python example for getting active connections
2014-03-03 15:15:08 +01:00
Jiří Klimeš
f24eee5ee3
examples: also print type of active connections
2014-03-03 14:28:51 +01:00
Jiří Klimeš
d96d242bc6
examples: a Python GOI example for adding connections persistent vs. not saved
2014-01-24 12:24:01 +01:00
Jiří Klimeš
85272df6eb
examples: update get_ips.py python example for DNS information
2014-01-23 12:56:45 +01:00
Jiří Klimeš
68fe50ff3a
examples: add an python example (using GI) getting device IPs
2014-01-16 17:37:16 +01:00
William Jon McCann
74372f9f11
docs: update documentation links
...
Various GNOME services moved around so links need updating.
2013-12-17 12:07:51 -06:00
Jiří Klimeš
aa54604f59
examples: update examples for new device types
2013-11-29 09:29:56 +01:00
Jiří Klimeš
f820fbeeb3
examples: add an python example (using GI) showing Wi-Fi networks
2013-09-26 16:30:23 +02:00
Jiri Popelka
a20fd994f4
examples: use GLib.MainLoop instead of deprecated GObject.MainLoop in python
...
jklimes:
made the change for new firewall-zone.py example as well.
2013-09-24 13:33:37 +02:00
Jiří Klimeš
8a04ab9135
examples: group python examples - dbus vs. gi
...
Move examples using dbus-python ('dbus' module) and GObject introspection into
their own directories.
2013-09-24 12:52:33 +02:00
Jiří Klimeš
217cb5fbca
examples: add a python example getting/setting zone property using GI
2013-09-24 12:48:55 +02:00
Thomas Haller
471fed3859
trivial: minor code cleanup in examples/python
...
There where cases, where TAB was mixed with SPACES. Replace TAB with SPACES.
Additionally, make the script nm-state.py executable
Signed-off-by: Thomas Haller <thaller@redhat.com >
2013-08-06 13:48:02 -05:00
Martin Pitt
6226fb9b59
libnm-util: Fix transfer annotations of nm_{connection,setting}_need_secrets()
...
The various need_secrets() implementation do allocate a fresh GPtrArray, but
add static strings to them without dup'ing. Thus callers must _not_ free the
array elements, only the array itself. Adjust documentation and annotations
accordingly.
Also adjust the corresponding comment in the goi-list-connections.py example.
https://bugzilla.gnome.org/show_bug.cgi?id=698175
2013-04-19 09:43:56 -04:00
Jiří Klimeš
8a9759af4b
examples: fix nm-state.py example
2012-12-07 15:13:22 +01:00
Jiří Klimeš
784af22159
examples: fix python example file names in EXTRA_DIST
2012-09-24 13:22:24 +02:00
Jiří Klimeš
033e8d2a77
examples: fix add-system-connection.py -> add-connection.py rename
...
It fixes 'make dist' that fails otherwise.
Found by pavlix.
2012-09-24 12:59:09 +02:00
Jiří Klimeš
9d3fd87dd2
examples: port update-secrets example to NM 0.9 API
2012-08-29 10:13:06 +02:00
Jiří Klimeš
3b3060f2a5
examples: add IP converting functions and rename add-system-connection.py
2012-08-24 12:50:50 +02:00
Jiří Klimeš
3fe99e7ebf
examples: update examples for new device types
2012-08-24 09:48:19 +02:00
Jiří Klimeš
495fae7a7b
examples: add a python GObject Introspection example
...
It demonstrates getting NMIP4Config object after activating a device.
2012-06-13 13:28:43 +02:00
Dan Williams
53f6539f54
examples: add simply python GObject Introspection example
...
Unfortunately since libnm-glib/libnm-util make heavy use of
GHashTable and GValue, functions that deal with these types
can't be used from Python when using GObject Introspection,
since pygobject can't handle conversion between python types
and GValue/GHashTable very well. You'll likely encounter
assertions like:
ERROR:pygi-argument.c:1755:_pygi_argument_to_object: assertion failed: (g_type_info_get_tag (key_type_info) != GI_TYPE_TAG_VOID)
Aborted
2012-06-11 14:46:33 -05:00
Jiří Klimeš
f95d503680
examples: correct a comment in list-devices.py example
2011-09-20 18:13:32 +02:00
Jiří Klimeš
ad4b8777e4
examples: fix list-connections.py to work with 0.9's GetSecrets() API
2011-09-20 18:07:25 +02:00
Dan Williams
e92043c4d5
examples: add python example for listing devices
2011-09-15 11:13:38 -05:00
Dan Williams
bf89da140c
examples: fix up active connection example
2011-08-06 10:44:50 +02:00
Dan Williams
c957fdfb52
examples: make some examples executable
2011-08-05 15:55:51 +02:00
Dan Williams
dab37276d2
examples: new example for printing active connection list
2011-08-05 15:55:14 +02:00
Michael Biebl
530f143adf
use /usr/bin/env instead of /bin/env
2011-03-29 01:00:47 +02:00
Dan Williams
36294ddbce
examples: port system wifi example to NM 0.9
2011-03-02 23:37:22 -06:00
Dan Williams
526b2d0e6d
examples: simplify system wifi connection example
2011-03-02 23:36:38 -06:00
Dan Williams
56bbc139bd
examples: new example for adding system WPA EAP-TLS wifi connection
2011-03-02 23:36:07 -06:00
Dan Williams
6d344a43e9
Merge remote-tracking branch 'origin/rm-userset'
...
There; it's merged. Yay!
2011-02-12 22:51:12 -06:00
Jiří Klimeš
d4b79f8b04
examples: add update secrets example
2011-01-31 14:04:04 +01:00