comparison src/plugins/plugin_xep_0059.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
17 17
18 # You should have received a copy of the GNU Affero General Public License 18 # You should have received a copy of the GNU Affero General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>. 19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20 20
21 from sat.core.i18n import _ 21 from sat.core.i18n import _
22 from sat.core.constants import Const as C
22 from sat.core.log import getLogger 23 from sat.core.log import getLogger
23 log = getLogger(__name__) 24 log = getLogger(__name__)
24 25
25 from wokkel import disco 26 from wokkel import disco
26 from wokkel import iwokkel 27 from wokkel import iwokkel
29 from twisted.words.protocols.jabber import xmlstream 30 from twisted.words.protocols.jabber import xmlstream
30 from zope.interface import implements 31 from zope.interface import implements
31 32
32 33
33 PLUGIN_INFO = { 34 PLUGIN_INFO = {
34 "name": "Result Set Management", 35 C.PI_NAME: "Result Set Management",
35 "import_name": "XEP-0059", 36 C.PI_IMPORT_NAME: "XEP-0059",
36 "type": "XEP", 37 C.PI_TYPE: "XEP",
37 "protocols": ["XEP-0059"], 38 C.PI_PROTOCOLS: ["XEP-0059"],
38 "main": "XEP_0059", 39 C.PI_MAIN: "XEP_0059",
39 "handler": "yes", 40 C.PI_HANDLER: "yes",
40 "description": _("""Implementation of Result Set Management""") 41 C.PI_DESCRIPTION: _("""Implementation of Result Set Management""")
41 } 42 }
42 43
43 44
44 class XEP_0059(object): 45 class XEP_0059(object):
45 # XXX: RSM management is done directly in Wokkel. 46 # XXX: RSM management is done directly in Wokkel.