From 2016e1d2bbc671362452eacc19319a7d41857930 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Fri, 25 Mar 2011 15:00:09 +0100 Subject: Fix DBUS method call error --- ZeroconfService.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZeroconfService.py b/ZeroconfService.py index 0b7d54d..0c8a3cf 100644 --- a/ZeroconfService.py +++ b/ZeroconfService.py @@ -39,7 +39,7 @@ class ZeroconfService(object): server = dbus.Interface(bus.get_object(avahi.DBUS_NAME, avahi.DBUS_PATH_SERVER), avahi.DBUS_INTERFACE_SERVER) g = dbus.Interface(bus.get_object(avahi.DBUS_NAME, server.EntryGroupNew()), avahi.DBUS_INTERFACE_ENTRY_GROUP) - g.AddService(avahi.IF_UNSPEC, avahi.PROTO_UNSPEC, dbus.UInt32(0), self.name, self.stype, self.domain, self.host, dbus.UInt16(self.port), self.text) + g.AddService(avahi.IF_UNSPEC, avahi.PROTO_UNSPEC, dbus.UInt32(0), self.name, self.stype, self.domain, self.host, dbus.UInt16(self.port), avahi.string_array_to_txt_array(self.text)) g.Commit() self.group = g -- cgit v1.1-32-gdbae