Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0065.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 | a543eda2c923 |
comparison
equal
deleted
inserted
replaced
2144:1d3f73e065e1 | 2145:33c8c4973743 |
---|---|
82 | 82 |
83 from wokkel import disco, iwokkel | 83 from wokkel import disco, iwokkel |
84 | 84 |
85 | 85 |
86 PLUGIN_INFO = { | 86 PLUGIN_INFO = { |
87 "name": "XEP 0065 Plugin", | 87 C.PI_NAME: "XEP 0065 Plugin", |
88 "import_name": "XEP-0065", | 88 C.PI_IMPORT_NAME: "XEP-0065", |
89 "type": "XEP", | 89 C.PI_TYPE: "XEP", |
90 "protocols": ["XEP-0065"], | 90 C.PI_PROTOCOLS: ["XEP-0065"], |
91 "dependencies": ["IP"], | 91 C.PI_DEPENDENCIES: ["IP"], |
92 "recommendations": ["NAT-PORT"], | 92 C.PI_RECOMMENDATIONS: ["NAT-PORT"], |
93 "main": "XEP_0065", | 93 C.PI_MAIN: "XEP_0065", |
94 "handler": "yes", | 94 C.PI_HANDLER: "yes", |
95 "description": _("""Implementation of SOCKS5 Bytestreams""") | 95 C.PI_DESCRIPTION: _("""Implementation of SOCKS5 Bytestreams""") |
96 } | 96 } |
97 | 97 |
98 IQ_SET = '/iq[@type="set"]' | 98 IQ_SET = '/iq[@type="set"]' |
99 NS_BS = 'http://jabber.org/protocol/bytestreams' | 99 NS_BS = 'http://jabber.org/protocol/bytestreams' |
100 BS_REQUEST = IQ_SET + '/query[@xmlns="' + NS_BS + '"]' | 100 BS_REQUEST = IQ_SET + '/query[@xmlns="' + NS_BS + '"]' |