use single quotes. Manager with capital in net manager

This commit is contained in:
Nikos Kouremenos 2006-10-20 09:06:36 +00:00
parent bffc81eec1
commit 62051dd998
2 changed files with 8 additions and 6 deletions

View File

@ -16,9 +16,9 @@
import dbus
import dbus.glib
NM_OBJ_PATH = "/org/freedesktop/NetworkManager"
NM_INTERFACE = "org.freedesktop.NetworkManager"
NM_SERVICE = "org.freedesktop.NetworkManager"
NM_OBJ_PATH = '/org/freedesktop/NetworkManager'
NM_INTERFACE = 'org.freedesktop.NetworkManager'
NM_SERVICE = 'org.freedesktop.NetworkManager'
class NetworkManagerListener:
def __init__(self, nm_activated_CB, nm_deactivated_CB):
@ -28,5 +28,7 @@ class NetworkManagerListener:
self._devices = self._nm_iface.getDevices()
self._nm_iface.connect_to_signal('DeviceNowActive', nm_activated_CB)
self._nm_iface.connect_to_signal('DeviceNoLongerActive', nm_deactivated_CB)
self._nm_iface.connect_to_signal('DeviceNowActive',
nm_activated_CB)
self._nm_iface.connect_to_signal('DeviceNoLongerActive',
nm_deactivated_CB)

View File

@ -4178,7 +4178,7 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
nm_listener = NetworkManagerListener(self.nm_activated_CB,
self.nm_deactivated_CB)
except:
print >> sys.stderr, _('Network manager support not available')
print >> sys.stderr, _('Network Manager support not available')
def nm_activated_CB(self, dev, net):
for acc in gajim.contacts.get_accounts():