comparison src/plugins/plugin_xep_0033.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 a543eda2c923
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 wokkel import disco, iwokkel 25 from wokkel import disco, iwokkel
25 from zope.interface import implements 26 from zope.interface import implements
51 NS_ADDRESS = "http://jabber.org/protocol/address" 52 NS_ADDRESS = "http://jabber.org/protocol/address"
52 ATTRIBUTES = ["jid", "uri", "node", "desc", "delivered", "type"] 53 ATTRIBUTES = ["jid", "uri", "node", "desc", "delivered", "type"]
53 ADDRESS_TYPES = ["to", "cc", "bcc", "replyto", "replyroom", "noreply"] 54 ADDRESS_TYPES = ["to", "cc", "bcc", "replyto", "replyroom", "noreply"]
54 55
55 PLUGIN_INFO = { 56 PLUGIN_INFO = {
56 "name": "Extended Stanza Addressing Protocol Plugin", 57 C.PI_NAME: "Extended Stanza Addressing Protocol Plugin",
57 "import_name": "XEP-0033", 58 C.PI_IMPORT_NAME: "XEP-0033",
58 "type": "XEP", 59 C.PI_TYPE: "XEP",
59 "protocols": ["XEP-0033"], 60 C.PI_PROTOCOLS: ["XEP-0033"],
60 "dependencies": [], 61 C.PI_DEPENDENCIES: [],
61 "main": "XEP_0033", 62 C.PI_MAIN: "XEP_0033",
62 "handler": "yes", 63 C.PI_HANDLER: "yes",
63 "description": _("""Implementation of Extended Stanza Addressing""") 64 C.PI_DESCRIPTION: _("""Implementation of Extended Stanza Addressing""")
64 } 65 }
65 66
66 67
67 class XEP_0033(object): 68 class XEP_0033(object):
68 """ 69 """