cnetworkmanager.git
13 years agodoc: Migrating from cnetworkmanager to nmclimaster
Martin Vidner [Fri, 20 Aug 2010 15:25:38 +0000 (20 17:25 +0200)]
doc: Migrating from cnetworkmanager to nmcli

14 years agoFixed non-ASCII output.
Martin Vidner [Mon, 5 Oct 2009 04:26:46 +0000 (5 06:26 +0200)]
Fixed non-ASCII output.

Thanks to Mokawi for the report:
http://mvidner.blogspot.com/2009/08/cnetworkmanager-021.html?showComment=1254554339823#c5041769288765573270
Pending problems:
 The table formatting is not right (counting bytes, not columns).
 It probably still breaks with non-UTF-8 environments.

14 years agoFactored out the common API options.
Martin Vidner [Mon, 5 Oct 2009 04:25:41 +0000 (5 06:25 +0200)]
Factored out the common API options.

to prepare for the next fix
TODO, they should be explicitly application specific.

14 years agoAdded nm-mock, a fake NetworkManager.
Martin Vidner [Sat, 22 Aug 2009 08:25:44 +0000 (22 10:25 +0200)]
Added nm-mock, a fake NetworkManager.

It lives on the session bus.
Added --session and factored out the bus access to allow easy switching.

Now the tests can be run even without a real NM running.

14 years agoReleasing 0.21.1.v0.21.1
Martin Vidner [Tue, 18 Aug 2009 13:44:51 +0000 (18 15:44 +0200)]
Releasing 0.21.1.

14 years agoA harmless typo in "list_conections".
Martin Vidner [Mon, 17 Aug 2009 14:43:54 +0000 (17 16:43 +0200)]
A harmless typo in "list_conections".

14 years agoFixed the --wep-* and --wpa-* options (Gentoo#281099).
Martin Vidner [Thu, 13 Aug 2009 21:31:51 +0000 (13 23:31 +0200)]
Fixed the --wep-* and --wpa-* options (Gentoo#281099).

The constructors had wrong super calls, duh.
And there was a typo in "ccmp".
http://bugs.gentoo.org/show_bug.cgi?id=281099

14 years agoFixed --activate-connection failing with Invalid settings service name.
Martin Vidner [Thu, 13 Aug 2009 21:14:35 +0000 (13 23:14 +0200)]
Fixed --activate-connection failing with Invalid settings service name.

org.freedesktop.NetworkManager.InvalidService: Invalid settings service name
because "user" was not translated to "org.freedesktop.NetworkManagerUserSettings"

14 years agooS 11.2: noarch, os:11.0: fixed build.
Martin Vidner [Wed, 12 Aug 2009 14:07:35 +0000 (12 16:07 +0200)]
oS 11.2: noarch, os:11.0: fixed build.

Reintroduced noarch, if allowed by the base python packaging.
BuildRequire python-devel to fix build, for openSUSE 11.0.

14 years agoReleasing 0.21, updated NEWS.v0.21
Martin Vidner [Mon, 10 Aug 2009 21:20:17 +0000 (10 23:20 +0200)]
Releasing 0.21, updated NEWS.

14 years agoDoc cleanup for *.monitor.
Martin Vidner [Fri, 7 Aug 2009 16:07:43 +0000 (7 18:07 +0200)]
Doc cleanup for *.monitor.

14 years agoDoc cleanup for dbusclient.func.
Martin Vidner [Fri, 7 Aug 2009 15:43:02 +0000 (7 17:43 +0200)]
Doc cleanup for dbusclient.func.

14 years agoScreenshots to show off (in HTML).
Martin Vidner [Fri, 7 Aug 2009 09:56:48 +0000 (7 11:56 +0200)]
Screenshots to show off (in HTML).

14 years agoAdded --we. Ignore AlreadyAsleepOrAwake error (-o).
Martin Vidner [Fri, 7 Aug 2009 09:54:15 +0000 (7 11:54 +0200)]
Added --we. Ignore AlreadyAsleepOrAwake error (-o).

-t for --terse

14 years agosmall cleanup
Martin Vidner [Wed, 5 Aug 2009 14:08:40 +0000 (5 16:08 +0200)]
small cleanup

14 years agoMoved prop_table to Table.from_items.
Martin Vidner [Wed, 5 Aug 2009 14:06:33 +0000 (5 16:06 +0200)]
Moved prop_table to Table.from_items.

14 years agoAdded --con-info.
Martin Vidner [Wed, 5 Aug 2009 14:05:12 +0000 (5 16:05 +0200)]
Added --con-info.

With Table.from_nested_dict

14 years agoAlways use byte_arrays=True in DBusMio.
Martin Vidner [Wed, 5 Aug 2009 13:58:38 +0000 (5 15:58 +0200)]
Always use byte_arrays=True in DBusMio.

14 years agoTabularized --actcon, --usrcon, --syscon.
Martin Vidner [Wed, 5 Aug 2009 10:59:27 +0000 (5 12:59 +0200)]
Tabularized --actcon, --usrcon, --syscon.

Catch if applet not running.

14 years agoTabularized --device-info, --ap-info.
Martin Vidner [Wed, 5 Aug 2009 10:35:04 +0000 (5 12:35 +0200)]
Tabularized --device-info, --ap-info.

Replaced dump_props by prop_table.

14 years agoTabularized --ap-list.
Martin Vidner [Wed, 5 Aug 2009 10:15:37 +0000 (5 12:15 +0200)]
Tabularized --ap-list.

14 years agoAdded a table formatter, applied it to --device-list.
Martin Vidner [Wed, 5 Aug 2009 09:41:50 +0000 (5 11:41 +0200)]
Added a table formatter, applied it to --device-list.

14 years agoUse Epydoc, added more docs.
Martin Vidner [Wed, 5 Aug 2009 09:02:06 +0000 (5 11:02 +0200)]
Use Epydoc, added  more docs.

14 years agoLet all classes inherit from "object".
Martin Vidner [Wed, 5 Aug 2009 08:58:45 +0000 (5 10:58 +0200)]
Let all classes inherit from "object".

14 years agoDo not use ..relative imports.
Martin Vidner [Wed, 5 Aug 2009 08:46:44 +0000 (5 10:46 +0200)]
Do not use ..relative imports.

Epydoc did not like them I think.

14 years agoFor unimplemented device types, return "unknown".
Martin Vidner [Wed, 5 Aug 2009 08:27:00 +0000 (5 10:27 +0200)]
For unimplemented device types, return "unknown".

Hopefully fixes -n, thanks to Kevin Fenzi for noticing.
GSM and CDMA are not handled but the base class should quietly do less
instead of breaking.
Is there a way to fake a device?

14 years agoBuild fix: Removed noarch since Python has an arch dependent libdir.
Martin Vidner [Fri, 31 Jul 2009 20:35:43 +0000 (31 22:35 +0200)]
Build fix: Removed noarch since Python has an arch dependent libdir.

Also removed the changelog from the spec file, OBS can take it from
.changes.

14 years agoFinished the conversion to new adaptor classes.
Martin Vidner [Thu, 30 Jul 2009 19:58:15 +0000 (30 21:58 +0200)]
Finished the conversion to new adaptor classes.

14 years agoClasses to make adaptors more readable.
Martin Vidner [Thu, 30 Jul 2009 15:39:20 +0000 (30 17:39 +0200)]
Classes to make adaptors more readable.

The list syntax is now hidden behind constructors
(Not all code is converted yet.)

14 years agoAdded docstrings for DBusMio and others.
Martin Vidner [Thu, 30 Jul 2009 15:17:39 +0000 (30 17:17 +0200)]
Added docstrings for DBusMio and others.

14 years agoRun also doctests.
Martin Vidner [Thu, 30 Jul 2009 15:11:06 +0000 (30 17:11 +0200)]
Run also doctests.

14 years agoCleaned up networkmanager.util.
Martin Vidner [Thu, 30 Jul 2009 10:08:39 +0000 (30 12:08 +0200)]
Cleaned up networkmanager.util.

Added docstrings with doctest.
Enum returns str(value) instead of "?" for unknown values.
Flags translates 0 to its name.

14 years agoUpdated NEWS, rewrote the outdated README.librarizev0.20
Martin Vidner [Wed, 29 Jul 2009 15:57:33 +0000 (29 17:57 +0200)]
Updated NEWS, rewrote the outdated README.

14 years agoImproved help for --activate-connection.
Martin Vidner [Wed, 29 Jul 2009 15:38:28 +0000 (29 17:38 +0200)]
Improved help for --activate-connection.

14 years agoRemoved the separate server script.
Martin Vidner [Wed, 29 Jul 2009 15:31:22 +0000 (29 17:31 +0200)]
Removed the separate server script.

Maybe it comes back but now it is just duplicate not working code.

14 years agoUse the ssid for the conn id, not __cnm_handcrafted__
Martin Vidner [Wed, 29 Jul 2009 14:53:49 +0000 (29 16:53 +0200)]
Use the ssid for the conn id, not __cnm_handcrafted__

14 years agoRestored printing state change.
Martin Vidner [Wed, 29 Jul 2009 14:53:35 +0000 (29 16:53 +0200)]
Restored printing state change.

14 years agoAdded -C and the wifi connection options.
Martin Vidner [Wed, 29 Jul 2009 13:50:47 +0000 (29 15:50 +0200)]
Added -C and the wifi connection options.

Converted mkconmap to subclasses of applet.Settings
NetworkManagerSettings can register itself on the bus,
enhances the exception with the current owner pid.

14 years agoMake async call adaptors work.
Martin Vidner [Wed, 29 Jul 2009 13:47:51 +0000 (29 15:47 +0200)]
Make async call adaptors work.

Default keyword args to be unadapted.
Detect async call by the dbus kwargs, hackish.

14 years agoRequire NM >= 0.7.0
Martin Vidner [Wed, 29 Jul 2009 13:46:37 +0000 (29 15:46 +0200)]
Require NM >= 0.7.0

14 years agoBuilt an RPM using distutils.
Martin Vidner [Wed, 29 Jul 2009 08:47:44 +0000 (29 10:47 +0200)]
Built an RPM using distutils.

14 years agoReactivated --monitor.
Martin Vidner [Wed, 29 Jul 2009 00:56:18 +0000 (29 02:56 +0200)]
Reactivated --monitor.

14 years agoRemoving remaining 06 artefacts.
Martin Vidner [Wed, 29 Jul 2009 00:35:04 +0000 (29 02:35 +0200)]
Removing remaining 06 artefacts.

14 years agoCleaned up namespace: networkmanager.applet.service.
Martin Vidner [Wed, 29 Jul 2009 00:25:45 +0000 (29 02:25 +0200)]
Cleaned up namespace: networkmanager.applet.service.

14 years agoCleaned up namespace: networkmanager.applet.
Martin Vidner [Tue, 28 Jul 2009 22:20:44 +0000 (29 00:20 +0200)]
Cleaned up namespace: networkmanager.applet.

14 years agoMoved dbusclient out of networkmanager.
Martin Vidner [Tue, 28 Jul 2009 21:46:33 +0000 (28 23:46 +0200)]
Moved dbusclient out of networkmanager.

14 years agoCleaned up namespace: networkmanager.
Martin Vidner [Tue, 28 Jul 2009 21:34:35 +0000 (28 23:34 +0200)]
Cleaned up namespace: networkmanager.

14 years agoClasses renamed to IP4Config, DHCP4Config.
Martin Vidner [Tue, 28 Jul 2009 21:25:06 +0000 (28 23:25 +0200)]
Classes renamed to IP4Config, DHCP4Config.

to match the interface capitalization

14 years agoProvisionally implement -n as -a.
Martin Vidner [Tue, 28 Jul 2009 19:45:05 +0000 (28 21:45 +0200)]
Provisionally implement -n as -a.

14 years agoSeparated --ap-info.
Martin Vidner [Tue, 28 Jul 2009 15:33:15 +0000 (28 17:33 +0200)]
Separated --ap-info.

14 years agoImplemented ActiveConnection, --actcon, --usrcon, --syscon.
Martin Vidner [Tue, 28 Jul 2009 14:29:55 +0000 (28 16:29 +0200)]
Implemented ActiveConnection, --actcon, --usrcon, --syscon.

14 years agoAdaptors cleaned up.
Martin Vidner [Tue, 28 Jul 2009 11:53:32 +0000 (28 13:53 +0200)]
Adaptors cleaned up.

more consistent registration
fixed them to be per class, with superclass fallback

fixed writable properties

14 years agoAdded basic Ip4Config, Dhcp4Config.
Martin Vidner [Sat, 25 Jul 2009 22:03:51 +0000 (26 00:03 +0200)]
Added basic Ip4Config, Dhcp4Config.

14 years agoDo properties in DBusMio.
Martin Vidner [Sat, 25 Jul 2009 21:21:30 +0000 (25 23:21 +0200)]
Do properties in DBusMio.

So far relying on default_interface because _introspect_property_map
does not exist.

14 years agoCreated a separate program for the UserSettings service.
Martin Vidner [Sat, 25 Jul 2009 06:21:32 +0000 (25 08:21 +0200)]
Created a separate program for the UserSettings service.

14 years agoAdded a basic setup.py for distutils.
Martin Vidner [Mon, 20 Jul 2009 23:14:12 +0000 (21 01:14 +0200)]
Added a basic setup.py for distutils.

14 years agoImplemented --ap-list.
Martin Vidner [Mon, 20 Jul 2009 22:21:35 +0000 (21 00:21 +0200)]
Implemented --ap-list.

14 years agoRemoving old code.
Martin Vidner [Mon, 20 Jul 2009 20:46:22 +0000 (20 22:46 +0200)]
Removing old code.

14 years agoRewrote from scratch.
Martin Vidner [Mon, 20 Jul 2009 20:08:02 +0000 (20 22:08 +0200)]
Rewrote from scratch.

WIP.
Hide as much D-Bus complexity as possible, by
- autoconverting between (proxy) objects and object paths,
- using introspection to find which interface a method is in,
- having helpers for enumerations and flag sets

14 years agoFixed 0.6 API broken by the split.breakup
Martin Vidner [Tue, 14 Jul 2009 11:37:51 +0000 (14 11:37 +0000)]
Fixed 0.6 API broken by the split.

14 years agoFixed active connection dumping.
Martin Vidner [Tue, 14 Jul 2009 10:30:45 +0000 (14 12:30 +0200)]
Fixed active connection dumping.

14 years agoRefactored property dumping.
Martin Vidner [Sat, 11 Jul 2009 13:21:42 +0000 (11 15:21 +0200)]
Refactored property dumping.

14 years agoSplit utility functions, fixing 06 a bit.
Martin Vidner [Sat, 11 Jul 2009 13:19:52 +0000 (11 15:19 +0200)]
Split utility functions, fixing 06 a bit.

14 years agoSplit off the monitor.
Martin Vidner [Fri, 10 Jul 2009 21:28:32 +0000 (10 23:28 +0200)]
Split off the monitor.

14 years agoSplit off the service classes.
Martin Vidner [Fri, 10 Jul 2009 21:13:45 +0000 (10 23:13 +0200)]
Split off the service classes.

14 years agoDependency fixes after the split.
Martin Vidner [Fri, 10 Jul 2009 20:49:55 +0000 (10 22:49 +0200)]
Dependency fixes after the split.

Testing --activate-connection and -C

14 years agoSeparated more client classes.
Martin Vidner [Fri, 10 Jul 2009 20:39:20 +0000 (10 22:39 +0200)]
Separated more client classes.

14 years agoSeparated the client classes.
Martin Vidner [Fri, 10 Jul 2009 20:07:30 +0000 (10 22:07 +0200)]
Separated the client classes.

06 is probably broken, did not test it yet

14 years agoBreaking up the big thing to smaller pieces.
Martin Vidner [Wed, 8 Jul 2009 19:50:36 +0000 (8 21:50 +0200)]
Breaking up the big thing to smaller pieces.

14 years agoAdded --activate-connection=[KIND],CON,DEV,[AP]
Martin Vidner [Wed, 8 Jul 2009 20:19:56 +0000 (8 22:19 +0200)]
Added --activate-connection=[KIND],CON,DEV,[AP]

14 years agoIgnore Emacs backups~
Martin Vidner [Wed, 8 Jul 2009 19:35:51 +0000 (8 21:35 +0200)]
Ignore Emacs backups~

14 years agoAdded testsuite. Signal failure by exit(1).
Martin Vidner [Wed, 8 Jul 2009 19:24:39 +0000 (8 21:24 +0200)]
Added testsuite. Signal failure by exit(1).

14 years agoDo not break when dumping a GSM device (DeviceType 3).
Bryan Duff [Wed, 8 Jul 2009 15:53:22 +0000 (8 17:53 +0200)]
Do not break when dumping a GSM device (DeviceType 3).

14 years agoHandle org.freedesktop.DBus.Error.AccessDenied when running as a different user
Niels de Vos [Wed, 8 Jul 2009 09:00:27 +0000 (8 10:00 +0100)]
Handle org.freedesktop.DBus.Error.AccessDenied when running as a different user

If a user runs cnetworkmanager and an other user already has NetworkManager
running, a dbus.exceptions.DBusException gets raised and cnetworkmanager
falsely assumes NetworkManager-0.7.x is available.

With this extra check, cnetworkmanager bails out if an AccessDenied has
occurred.

Signed-off-by: Niels de Vos <nixpanic@users.sourceforge.net>
15 years agoreleasing: v0.8.4v0.8.4
Martin Vidner [Sat, 21 Mar 2009 07:03:47 +0000 (21 08:03 +0100)]
releasing: v0.8.4

15 years agoreleasing: documented changes
Martin Vidner [Sat, 21 Mar 2009 06:24:51 +0000 (21 07:24 +0100)]
releasing: documented changes

15 years agoTimestamp the state monitor; don't boo.
Martin Vidner [Sat, 21 Mar 2009 06:23:35 +0000 (21 07:23 +0100)]
Timestamp the state monitor; don't boo.

15 years agoFixed RPM by using PREFIX consistently (bnc#485413).
Martin Vidner [Mon, 16 Mar 2009 11:22:54 +0000 (16 12:22 +0100)]
Fixed RPM by using PREFIX consistently (bnc#485413).

15 years agoWhen connecting (-C), monitor the NM connection state.
Martin Vidner [Sun, 15 Mar 2009 09:41:07 +0000 (15 10:41 +0100)]
When connecting (-C), monitor the NM connection state.
("Connected: /connection" was lying, as NM had only
started to activate the connection)

15 years agoDon't overwrite ConnectionSecrets with ConnectionSettings.
Martin Vidner [Sun, 15 Mar 2009 09:05:23 +0000 (15 10:05 +0100)]
Don't overwrite ConnectionSecrets with ConnectionSettings.

15 years agoRecognize AccessDenied when trying to dump secrets.
Martin Vidner [Sun, 15 Mar 2009 08:57:31 +0000 (15 09:57 +0100)]
Recognize AccessDenied when trying to dump secrets.

15 years agoImproved Monitor (-m).
Martin Vidner [Sun, 15 Mar 2009 08:46:44 +0000 (15 09:46 +0100)]
Improved Monitor (-m).
- beautify interesting signals
- ignore uninteresting signals
- fixed abbreviation collision detection, was backwards
- factored out base class

15 years agoUpdated pbkdf2.py to the newest upstream version
Alexander Block [Fri, 13 Mar 2009 22:03:28 +0000 (13 23:03 +0100)]
Updated pbkdf2.py to the newest upstream version

15 years agoFixed KeyError with --wep-hex.
James Hogan [Fri, 6 Mar 2009 21:12:38 +0000 (6 21:12 +0000)]
Fixed KeyError with --wep-hex.
(Broken in 64466391b7706bb4d3e7bec86172ca54f71701eb)

15 years agoPackaging fix: claim ownership of pkgdatadir.
Martin Vidner [Fri, 6 Mar 2009 16:38:23 +0000 (6 17:38 +0100)]
Packaging fix: claim ownership of pkgdatadir.

15 years agoProvide NetworkManager-client, like NetworkManager-{kde,gnome} do.
Martin Vidner [Fri, 6 Mar 2009 09:06:22 +0000 (6 10:06 +0100)]
Provide NetworkManager-client, like NetworkManager-{kde,gnome} do.
This way YaST will not recommend to install the GUI applets
when we are there to do the job.

15 years agoMerge branch 'opensuse-11.1'v0.8.3
Martin Vidner [Thu, 5 Mar 2009 15:02:38 +0000 (5 16:02 +0100)]
Merge branch 'opensuse-11.1'

15 years agoForgot to mention the bug number.opensuse-11.1v0.8.0.1
Martin Vidner [Thu, 5 Mar 2009 14:55:51 +0000 (5 15:55 +0100)]
Forgot to mention the bug number.
http://en.opensuse.org/SUSE_Package_Conventions/Changelogs

15 years agoMerge branch 'opensuse-11.1' -> version 0.8.3
Martin Vidner [Thu, 5 Mar 2009 14:46:07 +0000 (5 15:46 +0100)]
Merge branch 'opensuse-11.1' -> version 0.8.3

15 years ago0.8.0.1
Martin Vidner [Thu, 5 Mar 2009 12:41:34 +0000 (5 13:41 +0100)]
0.8.0.1
See how "easy" it is:
- version bump: Makefile, $program, spec
- commit log: NEWS, changes, spec

15 years agoMerge branch 'secrets-leak-cve-2009-0365' into opensuse-11.1
Martin Vidner [Thu, 5 Mar 2009 12:26:39 +0000 (5 13:26 +0100)]
Merge branch 'secrets-leak-cve-2009-0365' into opensuse-11.1

15 years agoFixed secrets leak via o.fd.NMS.Connection.GetSettings (bnc#479566#c3).secrets-leak-cve-2009-0365
Martin Vidner [Thu, 5 Mar 2009 12:15:31 +0000 (5 13:15 +0100)]
Fixed secrets leak via o.fd.NMS.Connection.GetSettings (bnc#479566#c3).
I had had trouble making it work with the secrets excluded,
so they stay in but the settings are denied from other users.
References:
  https://bugzilla.novell.com/show_bug.cgi?id=479566#c3

15 years agoMerge branch 'secrets-leak-cve-2009-0365' into opensuse-11.1
Martin Vidner [Wed, 4 Mar 2009 15:20:12 +0000 (4 16:20 +0100)]
Merge branch 'secrets-leak-cve-2009-0365' into opensuse-11.1

15 years agobuildrequire dbus-1 to fix file list check
Coolo [Wed, 4 Mar 2009 14:55:34 +0000 (4 15:55 +0100)]
buildrequire dbus-1 to fix file list check

15 years agoSynced spec with SUSE normalized version.
Martin Vidner [Wed, 4 Mar 2009 14:51:09 +0000 (4 15:51 +0100)]
Synced spec with SUSE normalized version.

15 years agoFixed secrets leak via o.fd.NMS.Connection.Secrets (CVE-2009-0365).
Martin Vidner [Wed, 4 Mar 2009 14:12:59 +0000 (4 15:12 +0100)]
Fixed secrets leak via o.fd.NMS.Connection.Secrets (CVE-2009-0365).
Done by copying the D-Bus configuration, nm-applet.conf,
both from NM 0.7 and 0.6.
References:
 http://cve.mitre.org/cgi-bin/cvename.cgi?name=2009-0365
 https://bugzilla.novell.com/show_bug.cgi?id=479566

15 years ago0.8.2v0.8.2
Martin Vidner [Mon, 2 Mar 2009 12:43:20 +0000 (2 13:43 +0100)]
0.8.2

15 years agoMerge branch 'wpa-dist'
Martin Vidner [Mon, 2 Mar 2009 11:27:21 +0000 (2 12:27 +0100)]
Merge branch 'wpa-dist'

15 years agoAdded .gitignorewpa-dist
Martin Vidner [Sun, 1 Mar 2009 13:26:26 +0000 (1 14:26 +0100)]
Added .gitignore

15 years agoAdded a proxy launcher script.
Martin Vidner [Sun, 1 Mar 2009 13:24:20 +0000 (1 14:24 +0100)]
Added a proxy launcher script.
(part 2... git is easy...)