plugin XML Log: fixed dbus signal name

This commit is contained in:
Goffi 2011-02-04 00:17:56 +01:00
commit b0fb8f50de

View file

@ -44,11 +44,11 @@ class LoggingXmlStream(XmlStream):
log=obj.toXml()
else:
error(_('INTERNAL ERROR: Unmanaged XML type'))
self._host.bridge.XmlLog("OUT", log, self._profile)
self._host.bridge.xmlLog("OUT", log, self._profile)
return XmlStream.send(self, obj)
def dataReceived(self, data):
self._host.bridge.XmlLog("IN", data.decode('utf-8'), self._profile)
self._host.bridge.xmlLog("IN", data.decode('utf-8'), self._profile)
return XmlStream.dataReceived(self, data)
@ -72,7 +72,7 @@ class XmlLog():
host.memory.importParams(self.params)
#bridge
host.bridge.addSignal("XmlLog", ".communication", signature='sss') #args: direction("IN" or "OUT"), xml_data, profile
host.bridge.addSignal("xmlLog", ".communication", signature='sss') #args: direction("IN" or "OUT"), xml_data, profile
do_log = bool(self.host.memory.getParamA("Xml log", "Debug"))
if do_log: