diff options
author | Nathan Fritz <fritzy@netflint.net> | 2009-07-11 19:31:20 +0000 |
---|---|---|
committer | Nathan Fritz <fritzy@netflint.net> | 2009-07-11 19:31:20 +0000 |
commit | 226f719597da390057c583e6f83ba850bb4ed334 (patch) | |
tree | 2c9481536418740993f08b70043b3800e067f992 /sleekxmpp/componentxmpp.py | |
parent | a1ece44368c472bb5ae61e0c4e4a244c07908a6e (diff) | |
download | slixmpp-226f719597da390057c583e6f83ba850bb4ed334.tar.gz slixmpp-226f719597da390057c583e6f83ba850bb4ed334.tar.bz2 slixmpp-226f719597da390057c583e6f83ba850bb4ed334.tar.xz slixmpp-226f719597da390057c583e6f83ba850bb4ed334.zip |
components now ignore namespaces in matching completely for server compatibility
Diffstat (limited to 'sleekxmpp/componentxmpp.py')
-rwxr-xr-x | sleekxmpp/componentxmpp.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sleekxmpp/componentxmpp.py b/sleekxmpp/componentxmpp.py index 72111e3c..078a1d3f 100755 --- a/sleekxmpp/componentxmpp.py +++ b/sleekxmpp/componentxmpp.py @@ -22,6 +22,14 @@ from __future__ import absolute_import from . basexmpp import basexmpp from xml.etree import cElementTree as ET + +# some servers use different namespaces for components -- this is a hack, but is there for compatibility +import xmlstream.matcher.xmlmask +import xmlstream.matcher.xpath +xmlstream.matcher.xmlmask.ignore_ns = True +xmlstream.matcher.xpath.ignore_ns = True +# ---------- + from . xmlstream.xmlstream import XMLStream from . xmlstream.xmlstream import RestartStream from . xmlstream.matcher.xmlmask import MatchXMLMask |