comparison src/plugins/plugin_xep_0334.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
33 from zope.interface import implements 33 from zope.interface import implements
34 from textwrap import dedent 34 from textwrap import dedent
35 35
36 36
37 PLUGIN_INFO = { 37 PLUGIN_INFO = {
38 "name": u"Message Processing Hints", 38 C.PI_NAME: u"Message Processing Hints",
39 "import_name": u"XEP-0334", 39 C.PI_IMPORT_NAME: u"XEP-0334",
40 "type": u"XEP", 40 C.PI_TYPE: u"XEP",
41 "protocols": [u"XEP-0334"], 41 C.PI_PROTOCOLS: [u"XEP-0334"],
42 "main": "XEP_0334", 42 C.PI_MAIN: "XEP_0334",
43 "handler": u"yes", 43 C.PI_HANDLER: u"yes",
44 "description": D_(u"""Implementation of Message Processing Hints"""), 44 C.PI_DESCRIPTION: D_(u"""Implementation of Message Processing Hints"""),
45 "usage": dedent(D_(u"""\ 45 C.PI_USAGE: dedent(D_(u"""\
46 Frontends can use HINT_* constants in mess_data['extra'] in a serialized 'hints' dict. 46 Frontends can use HINT_* constants in mess_data['extra'] in a serialized 'hints' dict.
47 Internal plugins can use directly addHint([HINT_* constant]). 47 Internal plugins can use directly addHint([HINT_* constant]).
48 Will set mess_data['extra']['history'] to 'skipped' when no store is requested and message is not saved in history.""")) 48 Will set mess_data['extra']['history'] to 'skipped' when no store is requested and message is not saved in history."""))
49 49
50 } 50 }