comparison src/plugins/plugin_xep_0070.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
comparison
equal deleted inserted replaced
2144:1d3f73e065e1 2145:33c8c4973743
15 # GNU Affero General Public License for more details. 15 # GNU Affero General Public License for more details.
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 from sat.core.i18n import _, D_ 19 from sat.core.i18n import _, D_
20 from sat.core.constants import Const as C
20 from sat.core.log import getLogger 21 from sat.core.log import getLogger
21 from twisted.words.protocols.jabber import xmlstream 22 from twisted.words.protocols.jabber import xmlstream
22 from twisted.words.protocols import jabber 23 from twisted.words.protocols import jabber
23 log = getLogger(__name__) 24 log = getLogger(__name__)
24 from sat.tools import xml_tools 25 from sat.tools import xml_tools
41 MSG_GET = '/'+MSG+'[@type="normal"]' 42 MSG_GET = '/'+MSG+'[@type="normal"]'
42 MSG_HTTP_AUTH_REQUEST = MSG_GET + '/confirm[@xmlns="' + NS_HTTP_AUTH + '"]' 43 MSG_HTTP_AUTH_REQUEST = MSG_GET + '/confirm[@xmlns="' + NS_HTTP_AUTH + '"]'
43 44
44 45
45 PLUGIN_INFO = { 46 PLUGIN_INFO = {
46 "name": "XEP-0070 Plugin", 47 C.PI_NAME: "XEP-0070 Plugin",
47 "import_name": "XEP-0070", 48 C.PI_IMPORT_NAME: "XEP-0070",
48 "type": "XEP", 49 C.PI_TYPE: "XEP",
49 "protocols": ["XEP-0070"], 50 C.PI_PROTOCOLS: ["XEP-0070"],
50 "dependencies": [], 51 C.PI_DEPENDENCIES: [],
51 "main": "XEP_0070", 52 C.PI_MAIN: "XEP_0070",
52 "handler": "yes", 53 C.PI_HANDLER: "yes",
53 "description": _("""Implementation of HTTP Requests via XMPP""") 54 C.PI_DESCRIPTION: _("""Implementation of HTTP Requests via XMPP""")
54 } 55 }
55 56
56 57
57 class XEP_0070(object): 58 class XEP_0070(object):
58 """ 59 """