summaryrefslogtreecommitdiff
path: root/examples/python
Commit message (Collapse)AuthorAgeFilesLines
...
* trivial: minor code cleanup in examples/pythonThomas Haller2013-08-063-7/+7
| | | | | | | 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>
* libnm-util: Fix transfer annotations of nm_{connection,setting}_need_secrets()Martin Pitt2013-04-191-4/+2
| | | | | | | | | | | 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
* examples: fix nm-state.py exampleJiří Klimeš2012-12-071-3/+18
|
* examples: fix python example file names in EXTRA_DISTJiří Klimeš2012-09-241-1/+2
|
* examples: fix add-system-connection.py -> add-connection.py renameJiří Klimeš2012-09-241-1/+1
| | | | | It fixes 'make dist' that fails otherwise. Found by pavlix.
* examples: port update-secrets example to NM 0.9 APIJiří Klimeš2012-08-291-37/+32
|
* examples: add IP converting functions and rename add-system-connection.pyJiří Klimeš2012-08-241-6/+21
|
* examples: update examples for new device typesJiří Klimeš2012-08-241-3/+7
|
* examples: add a python GObject Introspection exampleJiří Klimeš2012-06-132-1/+66
| | | | It demonstrates getting NMIP4Config object after activating a device.
* examples: add simply python GObject Introspection exampleDan Williams2012-06-112-1/+54
| | | | | | | | | | | | 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
* examples: correct a comment in list-devices.py exampleJiří Klimeš2011-09-201-1/+1
|
* examples: fix list-connections.py to work with 0.9's GetSecrets() APIJiří Klimeš2011-09-201-18/+16
|
* examples: add python example for listing devicesDan Williams2011-09-152-3/+76
|
* examples: fix up active connection exampleDan Williams2011-08-061-7/+17
|
* examples: make some examples executableDan Williams2011-08-053-0/+0
|
* examples: new example for printing active connection listDan Williams2011-08-052-1/+48
|
* use /usr/bin/env instead of /bin/envMichael Biebl2011-03-298-8/+8
|
* examples: port system wifi example to NM 0.9Dan Williams2011-03-021-4/+3
|
* examples: simplify system wifi connection exampleDan Williams2011-03-021-2/+1
|
* examples: new example for adding system WPA EAP-TLS wifi connectionDan Williams2011-03-022-0/+66
|
* Merge remote-tracking branch 'origin/rm-userset'Dan Williams2011-02-124-26/+20
|\ | | | | | | There; it's merged. Yay!
| * Merge remote branch 'origin/master' into rm-usersetDan Williams2011-01-121-2/+2
| |\
| * | NetworkMangerSettings -> NetworkManager.SettingsDaniel Gnoutcheff2010-08-074-12/+12
| | | | | | | | | | | | | | | | | | | | | Just for consistency, make settings related stuff live under the org.freedesktop.NetworkManager namespace, rather than its own org.freedesktop.NetworkManagerSettings namespace. Renames are done for DBus interface names, DBus object paths, and polkit actions.
| * | DBus: merge NetworkManger{,SystemSettings}Daniel Gnoutcheff2010-08-073-7/+7
| | | | | | | | | | | | | | | | | | | | | Remove the org.freedesktop.NetworkManagerSystemSettings bus name and have everybody talk to org.freedesktop.NetworkManager. Now that we have a single settings service that's embedded in the main daemon, we don't need separate names anymore.
| * | examples: update for user settings removalDaniel Gnoutcheff2010-08-073-15/+9
| | | | | | | | | | | | | | | Some of the example code broke when we removed user settings services. Oops!
* | | examples: add update secrets exampleJiří Klimeš2011-01-311-0/+121
| |/ |/|
* | examples: fix querying active connectionsDan Williams2010-11-231-3/+3
|/
* examples: add device disconnect exampleDan Williams2010-07-142-1/+64
|
* examples: fix a prefixJiří Klimeš2010-05-061-1/+1
|
* examples: add example printing out all BSSIDs we can seeDan Williams2010-04-292-1/+80
|
* examples: add example for listing connectionsDan Williams2010-04-282-1/+116
|
* examples: add Tambet's VPN auto-activate exampleDan Williams2010-02-241-0/+152
|
* examples: add license headersDan Williams2010-02-242-0/+34
|
* examples: add some python examplesDan Williams2010-02-183-0/+87
|
* Remove outdated examplesDan Williams2008-12-209-1287/+0
|
* Remove .cvsignore file, they are obsoleteMichael Biebl2008-12-192-5/+0
|
* 2006-05-24 Robert Love <rml@novell.com>Robert Love2006-05-241-1/+1
| | | | | | | | | * examples/python/systray/eggtrayicon.c, gnome/applet/eggtrayicon.c, gnome/applet/passphrase-dialog.c, gnome/applet/vpn-password-dialog.c, src/NetworkManager.c: Include <glib/gi18n.h> and not <libintl.h>. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1760 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* 2005-09-07 Rodrigo Moya <rodrigo@novell.com>Rodrigo Moya2005-09-072-31/+74
| | | | | | | | * gnome/panel/eggtrayicon.[ch]: * examples/python/systray/eggtrayicon.[ch]: updated code from libegg. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@950 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* 2004-11-02 Bryan Clark <clarkbw@cvs.gnome.org>Bryan Clark2004-11-021-5/+5
| | | | | | | | | | | * panel-applet/menu-info.c: change from bold text to light colored, may cause problems with some themes, i've tested a lot and they seem fine. * panel-applet/NMWirelessApplet.c: fix strength tooltip git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@288 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* 2004-09-22 <clarkbw@cvs.gnome.org>clarkbw2004-09-221-12/+27
| | | | | | | | | | | | | | | | | | | * initscript/Debian/.cvsignore: * initscript/Slackware/.cvsignore: Added new cvsignores for Makefile, Makefile.in * test/.cvsignore: Added nmtestdevices * src/NetworkManagerDevice.c: * src/NetworkManager.c: Updated the wireless/wired HAL device strings from net.ethernet to net.80203 or net.80211 depending on wired or wireless respectively Should probably update the configure.in to ask for the correct HAL version now. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@168 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* 2004-09-22 <clarkbw@cvs.gnome.org>clarkbw2004-09-222-88/+149
| | | | | | | | | | | | * examples/python/NetworkManager.py: s/Quality/Strength/ * examples/python/systray/network_tray.py: Lots of little changes and fixes. been rotting for a while so I figured I'd finally sync them all with CVS git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@166 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* 2004-09-09 Bryan Clark <clarkbw@cvs.gnome.org>Bryan Clark2004-09-091-2/+11
| | | | | | | | | | * examples/python/systray/network_tray.py (network_tray.sort_networks): Added support for having wireless always scanning git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@141 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* 2004-09-08 Bryan Clark <clarkbw@cvs.gnome.org>Bryan Clark2004-09-082-40/+143
| | | | | | | | | | | | | | * examples/python/NetworkManager.py: added CONNECTED, CONNECTING, and DISCONNECTED states added methods to return number of devices of a single type * examples/python/systray/network_tray.py: did some tweaks to get the menu looking near what it is supposed to look like. Also did a Airo card hack to make it show the correct AP quality git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@134 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* 2004-08-30 Bryan Clark <clarkbw@cvs.gnome.org>Bryan Clark2004-08-302-32/+95
| | | | | | | | | | | | | | * examples/python/NetworkManager.py: added convience functions has_wired_device and has_wireless_device * examples/python/systray/network_tray.py: cleaned up a bunch of cruft, added support for listing wireless networks just like the real applet. This is probably all I'm going to work on this applet from now on. TODO: add support for actually changing networks and devices git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@111 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* adding .cvsignore to examples/python directoryBryan W. Clark2004-08-301-0/+1
| | | | git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@110 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* 2004-08-30 Bryan Clark <clarkbw@cvs.gnome.org>Bryan Clark2004-08-301-2/+16
| | | | | | | | | * examples/python/NetworkManager.py (NetworkManager.get_device): changed "nm.networks" into a dict from a list so I can store all the cool information about networks in there git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@109 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* 2004-08-30 Bryan Clark <clarkbw@cvs.gnome.org>Bryan Clark2004-08-301-2/+8
| | | | | | | | * examples/python/systray/network_tray.py: Added nice message when you try to run without running make first git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@108 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* 2004-08-30 Bryan Clark <clarkbw@cvs.gnome.org>Bryan Clark2004-08-302-4/+4
| | | | | | | | | | | | * examples/python/NetworkManager.py: Bug fixes to the code so we get all the device information that we need in get_device() * examples/python/NMTester.py: Fixed _print_device_list to print_device_list git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@107 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* 2004-08-27 Bryan Clark <bclark@redhat.com>Bryan Clark2004-08-271-1/+1
| | | | | | | | | * examples/python/systray/Makefile: Updated the clean section git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@95 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* adding cvsignore to examples/python/systray directoryBryan W. Clark2004-08-271-0/+4
| | | | git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@94 4912f4e0-d625-0410-9fb7-b9a5a253dbdc