Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0020.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 |
---|---|
16 | 16 |
17 # You should have received a copy of the GNU Affero General Public License | 17 # You should have received a copy of the GNU Affero General Public License |
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 |
20 from sat.core.i18n import _ | 20 from sat.core.i18n import _ |
21 from sat.core.constants import Const as C | |
21 from sat.core.log import getLogger | 22 from sat.core.log import getLogger |
22 log = getLogger(__name__) | 23 log = getLogger(__name__) |
23 from sat.core import exceptions | 24 from sat.core import exceptions |
24 from twisted.words.xish import domish | 25 from twisted.words.xish import domish |
25 | 26 |
33 from wokkel import disco, iwokkel, data_form | 34 from wokkel import disco, iwokkel, data_form |
34 | 35 |
35 NS_FEATURE_NEG = 'http://jabber.org/protocol/feature-neg' | 36 NS_FEATURE_NEG = 'http://jabber.org/protocol/feature-neg' |
36 | 37 |
37 PLUGIN_INFO = { | 38 PLUGIN_INFO = { |
38 "name": "XEP 0020 Plugin", | 39 C.PI_NAME: "XEP 0020 Plugin", |
39 "import_name": "XEP-0020", | 40 C.PI_IMPORT_NAME: "XEP-0020", |
40 "type": "XEP", | 41 C.PI_TYPE: "XEP", |
41 "protocols": ["XEP-0020"], | 42 C.PI_PROTOCOLS: ["XEP-0020"], |
42 "main": "XEP_0020", | 43 C.PI_MAIN: "XEP_0020", |
43 "handler": "yes", | 44 C.PI_HANDLER: "yes", |
44 "description": _("""Implementation of Feature Negotiation""") | 45 C.PI_DESCRIPTION: _("""Implementation of Feature Negotiation""") |
45 } | 46 } |
46 | 47 |
47 | 48 |
48 class XEP_0020(object): | 49 class XEP_0020(object): |
49 | 50 |