comparison src/plugins/plugin_xep_0115.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
36 NS_ENTITY_CAPABILITY = 'http://jabber.org/protocol/caps' 36 NS_ENTITY_CAPABILITY = 'http://jabber.org/protocol/caps'
37 NS_CAPS_OPTIMIZE = 'http://jabber.org/protocol/caps#optimize' 37 NS_CAPS_OPTIMIZE = 'http://jabber.org/protocol/caps#optimize'
38 CAPABILITY_UPDATE = PRESENCE + '/c[@xmlns="' + NS_ENTITY_CAPABILITY + '"]' 38 CAPABILITY_UPDATE = PRESENCE + '/c[@xmlns="' + NS_ENTITY_CAPABILITY + '"]'
39 39
40 PLUGIN_INFO = { 40 PLUGIN_INFO = {
41 "name": "XEP 0115 Plugin", 41 C.PI_NAME: "XEP 0115 Plugin",
42 "import_name": "XEP-0115", 42 C.PI_IMPORT_NAME: "XEP-0115",
43 "type": "XEP", 43 C.PI_TYPE: "XEP",
44 "protocols": ["XEP-0115"], 44 C.PI_PROTOCOLS: ["XEP-0115"],
45 "dependencies": [], 45 C.PI_DEPENDENCIES: [],
46 "main": "XEP_0115", 46 C.PI_MAIN: "XEP_0115",
47 "handler": "yes", 47 C.PI_HANDLER: "yes",
48 "description": _("""Implementation of entity capabilities""") 48 C.PI_DESCRIPTION: _("""Implementation of entity capabilities""")
49 } 49 }
50 50
51 51
52 class XEP_0115(object): 52 class XEP_0115(object):
53 cap_hash = None # capabilities hash is class variable as it is common to all profiles 53 cap_hash = None # capabilities hash is class variable as it is common to all profiles