1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-11 16:54:12 +01:00

Specify DBus signature (useful when list is empty)

This commit is contained in:
David Paleino
2012-11-22 09:02:04 +01:00
parent 1f0b5674cf
commit 259836c295

View File

@@ -1358,7 +1358,7 @@ class WirelessDaemon(dbus.service.Object, object):
""" Reloads the active config file. """
self.config.reload()
@dbus.service.method('org.wicd.daemon.wireless')
@dbus.service.method('org.wicd.daemon.wireless', out_signature='as')
def GetWirelessInterfaces(self):
''' Returns a list of wireless interfaces on the system. '''
return wnettools.GetWirelessInterfaces()
@@ -1694,7 +1694,7 @@ class WiredDaemon(dbus.service.Object, object):
""" Reloads the active config file. """
self.config.reload()
@dbus.service.method('org.wicd.daemon.wired')
@dbus.service.method('org.wicd.daemon.wired', out_signature='as')
def GetWiredInterfaces(self):
''' Returns a list of wireless interfaces on the system. '''
return wnettools.GetWiredInterfaces()