From c7b2e180e6cfb4aec22f8ab3e0aebc6773032216 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Fri, 27 Jan 2012 11:19:49 +0100 Subject: 'invest' python module is now 'mate-invest' to solve conflicts with gnome --- invest-applet/invest/networkmanager.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'invest-applet/invest/networkmanager.py') diff --git a/invest-applet/invest/networkmanager.py b/invest-applet/invest/networkmanager.py index 415e9ce4..a784d807 100644 --- a/invest-applet/invest/networkmanager.py +++ b/invest-applet/invest/networkmanager.py @@ -1,4 +1,4 @@ -import invest +import mate-invest from dbus.mainloop.glib import DBusGMainLoop import dbus @@ -19,7 +19,7 @@ class NetworkManager: loop = DBusGMainLoop() # get the NetworkManager object from D-Bus - invest.debug("Connecting to Network Manager via D-Bus") + mate-invest.debug("Connecting to Network Manager via D-Bus") bus = dbus.SystemBus(mainloop=loop) nmobj = bus.get_object('org.freedesktop.NetworkManager', '/org/freedesktop/NetworkManager') nm = dbus.Interface(nmobj, 'org.freedesktop.NetworkManager') @@ -32,9 +32,9 @@ class NetworkManager: # get the current status of the network manager self.state = nm.state() - invest.debug("Current Network Manager status is %d" % self.state) + mate-invest.debug("Current Network Manager status is %d" % self.state) except Exception, msg: - invest.error("Could not connect to the Network Manager: %s" % msg ) + mate-invest.error("Could not connect to the Network Manager: %s" % msg ) def online(self): return self.state == STATE_UNKNOWN or self.state == STATE_CONNECTED @@ -47,7 +47,7 @@ class NetworkManager: if isinstance(signal, dict): state = signal.get('State') if state != None: - invest.debug("Network Manager change state %d => %d" % (self.state, state) ); + mate-invest.debug("Network Manager change state %d => %d" % (self.state, state) ); self.state = state # notify about state change -- cgit v1.2.1