Prefixed request, response and data with http. Avoided (plugin_attrib) name collision with other plugins.

This commit is contained in:
Sangeeth Saravanaraj
2015-04-29 14:44:25 +05:30
parent 80b60fc048
commit 61a7cecb31
5 changed files with 59 additions and 38 deletions

View File

@@ -11,14 +11,14 @@
from sleekxmpp.xmlstream import ElementBase
class Data(ElementBase):
class HTTPData(ElementBase):
"""
The data element.
"""
name = 'data'
namespace = 'urn:xmpp:http'
interfaces = set(['data'])
plugin_attrib = 'data'
plugin_attrib = 'http-data'
is_extension = True
def get_data(self, encoding='text'):