Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0071.py @ 2145:33c8c4973743
core (plugins): added missing contants + use of new constants in PLUGIN_INFO
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 12 Feb 2017 18:59:10 +0100 |
parents | 1d3f73e065e1 |
children | 8b37a62336c3 |
comparison
equal
deleted
inserted
replaced
2144:1d3f73e065e1 | 2145:33c8c4973743 |
---|---|
39 | 39 |
40 NS_XHTML_IM = 'http://jabber.org/protocol/xhtml-im' | 40 NS_XHTML_IM = 'http://jabber.org/protocol/xhtml-im' |
41 NS_XHTML = 'http://www.w3.org/1999/xhtml' | 41 NS_XHTML = 'http://www.w3.org/1999/xhtml' |
42 | 42 |
43 PLUGIN_INFO = { | 43 PLUGIN_INFO = { |
44 "name": "XHTML-IM Plugin", | 44 C.PI_NAME: "XHTML-IM Plugin", |
45 "import_name": "XEP-0071", | 45 C.PI_IMPORT_NAME: "XEP-0071", |
46 "type": "XEP", | 46 C.PI_TYPE: "XEP", |
47 "protocols": ["XEP-0071"], | 47 C.PI_PROTOCOLS: ["XEP-0071"], |
48 "dependencies": ["TEXT-SYNTAXES"], | 48 C.PI_DEPENDENCIES: ["TEXT-SYNTAXES"], |
49 "main": "XEP_0071", | 49 C.PI_MAIN: "XEP_0071", |
50 "handler": "yes", | 50 C.PI_HANDLER: "yes", |
51 "description": _("""Implementation of XHTML-IM""") | 51 C.PI_DESCRIPTION: _("""Implementation of XHTML-IM""") |
52 } | 52 } |
53 | 53 |
54 allowed = { | 54 allowed = { |
55 "a": set(["href", "style", "type"]), | 55 "a": set(["href", "style", "type"]), |
56 "blockquote": set(["style"]), | 56 "blockquote": set(["style"]), |