Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0049.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 | 2daf7b4c6756 |
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 wokkel import compat | 24 from wokkel import compat |
24 from twisted.words.xish import domish | 25 from twisted.words.xish import domish |
25 | 26 |
26 | 27 |
27 | 28 |
28 PLUGIN_INFO = { | 29 PLUGIN_INFO = { |
29 "name": "XEP-0049 Plugin", | 30 C.PI_NAME: "XEP-0049 Plugin", |
30 "import_name": "XEP-0049", | 31 C.PI_IMPORT_NAME: "XEP-0049", |
31 "type": "XEP", | 32 C.PI_TYPE: "XEP", |
32 "protocols": ["XEP-0049"], | 33 C.PI_PROTOCOLS: ["XEP-0049"], |
33 "dependencies": [], | 34 C.PI_DEPENDENCIES: [], |
34 "main": "XEP_0049", | 35 C.PI_MAIN: "XEP_0049", |
35 "handler": "no", | 36 C.PI_HANDLER: "no", |
36 "description": _("""Implementation of private XML storage""") | 37 C.PI_DESCRIPTION: _("""Implementation of private XML storage""") |
37 } | 38 } |
38 | 39 |
39 | 40 |
40 class XEP_0049(object): | 41 class XEP_0049(object): |
41 NS_PRIVATE = 'jabber:iq:private' | 42 NS_PRIVATE = 'jabber:iq:private' |