comparison src/plugins/plugin_xep_0047.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
49 IBB_MESSAGE_DATA = MESSAGE + '/data[@xmlns="' + NS_IBB + '" and @sid="{}"]' 49 IBB_MESSAGE_DATA = MESSAGE + '/data[@xmlns="' + NS_IBB + '" and @sid="{}"]'
50 TIMEOUT = 120 # timeout for workflow 50 TIMEOUT = 120 # timeout for workflow
51 DEFER_KEY = 'finished' # key of the deferred used to track session end 51 DEFER_KEY = 'finished' # key of the deferred used to track session end
52 52
53 PLUGIN_INFO = { 53 PLUGIN_INFO = {
54 "name": "In-Band Bytestream Plugin", 54 C.PI_NAME: "In-Band Bytestream Plugin",
55 "import_name": "XEP-0047", 55 C.PI_IMPORT_NAME: "XEP-0047",
56 "type": "XEP", 56 C.PI_TYPE: "XEP",
57 "protocols": ["XEP-0047"], 57 C.PI_PROTOCOLS: ["XEP-0047"],
58 "main": "XEP_0047", 58 C.PI_MAIN: "XEP_0047",
59 "handler": "yes", 59 C.PI_HANDLER: "yes",
60 "description": _("""Implementation of In-Band Bytestreams""") 60 C.PI_DESCRIPTION: _("""Implementation of In-Band Bytestreams""")
61 } 61 }
62 62
63 63
64 class XEP_0047(object): 64 class XEP_0047(object):
65 NAMESPACE = NS_IBB 65 NAMESPACE = NS_IBB