Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0203.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, iwokkel, delay | 26 from wokkel import disco, iwokkel, delay |
26 try: | 27 try: |
31 | 32 |
32 | 33 |
33 NS_DD = 'urn:xmpp:delay' | 34 NS_DD = 'urn:xmpp:delay' |
34 | 35 |
35 PLUGIN_INFO = { | 36 PLUGIN_INFO = { |
36 "name": "Delayed Delivery", | 37 C.PI_NAME: "Delayed Delivery", |
37 "import_name": "XEP-0203", | 38 C.PI_IMPORT_NAME: "XEP-0203", |
38 "type": "XEP", | 39 C.PI_TYPE: "XEP", |
39 "protocols": ["XEP-0203"], | 40 C.PI_PROTOCOLS: ["XEP-0203"], |
40 "main": "XEP_0203", | 41 C.PI_MAIN: "XEP_0203", |
41 "handler": "yes", | 42 C.PI_HANDLER: "yes", |
42 "description": _("""Implementation of Delayed Delivery""") | 43 C.PI_DESCRIPTION: _("""Implementation of Delayed Delivery""") |
43 } | 44 } |
44 | 45 |
45 | 46 |
46 class XEP_0203(object): | 47 class XEP_0203(object): |
47 | 48 |