Mercurial > libervia-backend
diff sat/plugins/plugin_xep_0297.py @ 2698:5060cbeec01e
core: minor style/typos fixes
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 01 Dec 2018 10:04:17 +0100 |
parents | 56f94936df1e |
children | 003b8b4b56a7 |
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0297.py Sat Dec 01 09:59:48 2018 +0100 +++ b/sat/plugins/plugin_xep_0297.py Sat Dec 01 10:04:17 2018 +0100 @@ -34,8 +34,6 @@ from twisted.words.xish import domish -NS_SF = C.NS_FORWARD - PLUGIN_INFO = { C.PI_NAME: u"Stanza Forwarding", C.PI_IMPORT_NAME: u"XEP-0297", @@ -51,7 +49,7 @@ # FIXME: check this implementation which doesn't seems to be used def __init__(self, host): - log.info(_("Stanza Forwarding plugin initialization")) + log.info(_(u"Stanza Forwarding plugin initialization")) self.host = host def getHandler(self, client): @@ -95,7 +93,7 @@ if body: body_elt.addContent(body) - forwarded_elt = domish.Element((NS_SF, "forwarded")) + forwarded_elt = domish.Element((C.NS_FORWARD, "forwarded")) delay_elt = self.host.plugins["XEP-0203"].delay(stamp) forwarded_elt.addChild(delay_elt) if not stanza.uri: # None or '' @@ -118,7 +116,7 @@ self.profile = profile def getDiscoInfo(self, requestor, target, nodeIdentifier=""): - return [disco.DiscoFeature(NS_SF)] + return [disco.DiscoFeature(C.NS_FORWARD)] def getDiscoItems(self, requestor, target, nodeIdentifier=""): return []