Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0260.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 |
---|---|
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 sat.core import exceptions | 24 from sat.core import exceptions |
24 from wokkel import disco, iwokkel | 25 from wokkel import disco, iwokkel |
25 from zope.interface import implements | 26 from zope.interface import implements |
35 | 36 |
36 | 37 |
37 NS_JINGLE_S5B = 'urn:xmpp:jingle:transports:s5b:1' | 38 NS_JINGLE_S5B = 'urn:xmpp:jingle:transports:s5b:1' |
38 | 39 |
39 PLUGIN_INFO = { | 40 PLUGIN_INFO = { |
40 "name": "Jingle SOCKS5 Bytestreams", | 41 C.PI_NAME: "Jingle SOCKS5 Bytestreams", |
41 "import_name": "XEP-0260", | 42 C.PI_IMPORT_NAME: "XEP-0260", |
42 "type": "XEP", | 43 C.PI_TYPE: "XEP", |
43 "protocols": ["XEP-0260"], | 44 C.PI_PROTOCOLS: ["XEP-0260"], |
44 "dependencies": ["XEP-0166", "XEP-0065"], | 45 C.PI_DEPENDENCIES: ["XEP-0166", "XEP-0065"], |
45 "recommendations": ["XEP-0261"], # needed for fallback | 46 C.PI_RECOMMENDATIONS: ["XEP-0261"], # needed for fallback |
46 "main": "XEP_0260", | 47 C.PI_MAIN: "XEP_0260", |
47 "handler": "yes", | 48 C.PI_HANDLER: "yes", |
48 "description": _("""Implementation of Jingle SOCKS5 Bytestreams""") | 49 C.PI_DESCRIPTION: _("""Implementation of Jingle SOCKS5 Bytestreams""") |
49 } | 50 } |
50 | 51 |
51 | 52 |
52 class ProxyError(Exception): | 53 class ProxyError(Exception): |
53 | 54 |