Remove trailing whitespaces.

This commit is contained in:
Emmanuel Gil Peyrot 2013-01-18 17:55:34 +01:00
commit 27b3592e16

View file

@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
"""
SàT plugin for managing raw XML log
SàT plugin for managing raw XML log
Copyright (C) 2011 Jérôme Poisson (goffi@goffi.org)
This program is free software: you can redistribute it and/or modify
@ -50,10 +50,10 @@ class LoggingXmlStream(XmlStream):
def dataReceived(self, data):
self._host.bridge.xmlLog("IN", data.decode('utf-8'), self._profile)
return XmlStream.dataReceived(self, data)
class XmlLog():
params = """
<params>
<general>
@ -67,18 +67,18 @@ class XmlLog():
def __init__(self, host):
info(_("Plugin XML Log initialization"))
self.host = host
#parameters
host.memory.importParams(self.params)
#bridge
host.bridge.addSignal("xmlLog", ".plugin", signature='sss') #args: direction("IN" or "OUT"), xml_data, profile
do_log = self.host.memory.getParamA("Xml log", "Debug")
if do_log:
info(_("XML log activated"))
host.trigger.add("XML Initialized", self.logXml)
def logXml(self, xmlstream, profile):
xmlstream.__class__ = LoggingXmlStream
xmlstream._profile = profile