Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0261.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 |
---|---|
16 | 16 |
17 # You should have received a copy of the GNU Affero General Public License | 17 # You should have received a copy of the GNU Affero General Public License |
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 |
20 from sat.core.i18n import _ | 20 from sat.core.i18n import _ |
21 from sat.core.constants import Const as C | |
21 from sat.core.log import getLogger | 22 from sat.core.log import getLogger |
22 log = getLogger(__name__) | 23 log = getLogger(__name__) |
23 from wokkel import disco, iwokkel | 24 from wokkel import disco, iwokkel |
24 from zope.interface import implements | 25 from zope.interface import implements |
25 from twisted.words.xish import domish | 26 from twisted.words.xish import domish |
32 | 33 |
33 | 34 |
34 NS_JINGLE_IBB = 'urn:xmpp:jingle:transports:ibb:1' | 35 NS_JINGLE_IBB = 'urn:xmpp:jingle:transports:ibb:1' |
35 | 36 |
36 PLUGIN_INFO = { | 37 PLUGIN_INFO = { |
37 "name": "Jingle In-Band Bytestreams", | 38 C.PI_NAME: "Jingle In-Band Bytestreams", |
38 "import_name": "XEP-0261", | 39 C.PI_IMPORT_NAME: "XEP-0261", |
39 "type": "XEP", | 40 C.PI_TYPE: "XEP", |
40 "protocols": ["XEP-0261"], | 41 C.PI_PROTOCOLS: ["XEP-0261"], |
41 "dependencies": ["XEP-0166", "XEP-0047"], | 42 C.PI_DEPENDENCIES: ["XEP-0166", "XEP-0047"], |
42 "main": "XEP_0261", | 43 C.PI_MAIN: "XEP_0261", |
43 "handler": "yes", | 44 C.PI_HANDLER: "yes", |
44 "description": _("""Implementation of Jingle In-Band Bytestreams""") | 45 C.PI_DESCRIPTION: _("""Implementation of Jingle In-Band Bytestreams""") |
45 } | 46 } |
46 | 47 |
47 | 48 |
48 class XEP_0261(object): | 49 class XEP_0261(object): |
49 NAMESPACE = NS_JINGLE_IBB # used by XEP-0260 plugin for transport-replace | 50 NAMESPACE = NS_JINGLE_IBB # used by XEP-0260 plugin for transport-replace |