comparison src/plugins/plugin_xep_0054.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 cffa50c9f26b
comparison
equal deleted inserted replaced
2144:1d3f73e065e1 2145:33c8c4973743
60 60
61 CACHED_DATA = {'avatar', 'nick'} 61 CACHED_DATA = {'avatar', 'nick'}
62 MAX_AGE = 60 * 60 * 24 * 365 62 MAX_AGE = 60 * 60 * 24 * 365
63 63
64 PLUGIN_INFO = { 64 PLUGIN_INFO = {
65 "name": "XEP 0054 Plugin", 65 C.PI_NAME: "XEP 0054 Plugin",
66 "import_name": "XEP-0054", 66 C.PI_IMPORT_NAME: "XEP-0054",
67 "type": "XEP", 67 C.PI_TYPE: "XEP",
68 "protocols": ["XEP-0054", "XEP-0153"], 68 C.PI_PROTOCOLS: ["XEP-0054", "XEP-0153"],
69 "dependencies": [], 69 C.PI_DEPENDENCIES: [],
70 "recommendations": ["XEP-0045"], 70 C.PI_RECOMMENDATIONS: ["XEP-0045"],
71 "main": "XEP_0054", 71 C.PI_MAIN: "XEP_0054",
72 "handler": "yes", 72 C.PI_HANDLER: "yes",
73 "description": _("""Implementation of vcard-temp""") 73 C.PI_DESCRIPTION: _("""Implementation of vcard-temp""")
74 } 74 }
75 75
76 76
77 class XEP_0054(object): 77 class XEP_0054(object):
78 #TODO: - check that nickname is ok 78 #TODO: - check that nickname is ok