From 226f719597da390057c583e6f83ba850bb4ed334 Mon Sep 17 00:00:00 2001 From: Nathan Fritz Date: Sat, 11 Jul 2009 19:31:20 +0000 Subject: components now ignore namespaces in matching completely for server compatibility --- sleekxmpp/componentxmpp.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sleekxmpp/componentxmpp.py') 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 -- cgit v1.2.3