comparison src/plugins/plugin_xep_0096.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 b99bd02ea643
children 8b37a62336c3
comparison
equal deleted inserted replaced
2144:1d3f73e065e1 2145:33c8c4973743
33 IQ_SET = '/iq[@type="set"]' 33 IQ_SET = '/iq[@type="set"]'
34 SI_PROFILE_NAME = "file-transfer" 34 SI_PROFILE_NAME = "file-transfer"
35 SI_PROFILE = "http://jabber.org/protocol/si/profile/" + SI_PROFILE_NAME 35 SI_PROFILE = "http://jabber.org/protocol/si/profile/" + SI_PROFILE_NAME
36 36
37 PLUGIN_INFO = { 37 PLUGIN_INFO = {
38 "name": "XEP-0096 Plugin", 38 C.PI_NAME: "XEP-0096 Plugin",
39 "import_name": "XEP-0096", 39 C.PI_IMPORT_NAME: "XEP-0096",
40 "type": "XEP", 40 C.PI_TYPE: "XEP",
41 "protocols": ["XEP-0096"], 41 C.PI_PROTOCOLS: ["XEP-0096"],
42 "dependencies": ["XEP-0020", "XEP-0095", "XEP-0065", "XEP-0047", "FILE"], 42 C.PI_DEPENDENCIES: ["XEP-0020", "XEP-0095", "XEP-0065", "XEP-0047", "FILE"],
43 "main": "XEP_0096", 43 C.PI_MAIN: "XEP_0096",
44 "handler": "no", 44 C.PI_HANDLER: "no",
45 "description": _("""Implementation of SI File Transfer""") 45 C.PI_DESCRIPTION: _("""Implementation of SI File Transfer""")
46 } 46 }
47 47
48 48
49 class XEP_0096(object): 49 class XEP_0096(object):
50 # TODO: call self._f.unregister when unloading order will be managing (i.e. when depenencies will be unloaded at the end) 50 # TODO: call self._f.unregister when unloading order will be managing (i.e. when depenencies will be unloaded at the end)