Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0166.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 |
---|---|
46 STATE_ACTIVE = "ACTIVE" | 46 STATE_ACTIVE = "ACTIVE" |
47 STATE_ENDED = "ENDED" | 47 STATE_ENDED = "ENDED" |
48 CONFIRM_TXT = D_("{entity} want to start a jingle session with you, do you accept ?") | 48 CONFIRM_TXT = D_("{entity} want to start a jingle session with you, do you accept ?") |
49 | 49 |
50 PLUGIN_INFO = { | 50 PLUGIN_INFO = { |
51 "name": "Jingle", | 51 C.PI_NAME: "Jingle", |
52 "import_name": "XEP-0166", | 52 C.PI_IMPORT_NAME: "XEP-0166", |
53 "type": "XEP", | 53 C.PI_TYPE: "XEP", |
54 "protocols": ["XEP-0166"], | 54 C.PI_PROTOCOLS: ["XEP-0166"], |
55 "main": "XEP_0166", | 55 C.PI_MAIN: "XEP_0166", |
56 "handler": "yes", | 56 C.PI_HANDLER: "yes", |
57 "description": _("""Implementation of Jingle""") | 57 C.PI_DESCRIPTION: _("""Implementation of Jingle""") |
58 } | 58 } |
59 | 59 |
60 | 60 |
61 ApplicationData = namedtuple('ApplicationData', ('namespace', 'handler')) | 61 ApplicationData = namedtuple('ApplicationData', ('namespace', 'handler')) |
62 TransportData = namedtuple('TransportData', ('namespace', 'handler', 'priority')) | 62 TransportData = namedtuple('TransportData', ('namespace', 'handler', 'priority')) |