Mercurial > libervia-backend
diff src/plugins/plugin_misc_xmllog.py @ 587:952322b1d490
Remove trailing whitespaces.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 18 Jan 2013 17:55:34 +0100 |
parents | 2c4016921403 |
children | beaf6bec2fcd |
line wrap: on
line diff
--- a/src/plugins/plugin_misc_xmllog.py Fri Jan 18 17:55:27 2013 +0100 +++ b/src/plugins/plugin_misc_xmllog.py Fri Jan 18 17:55:34 2013 +0100 @@ -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 @@ 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 @@ 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