summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/xmlstream.py
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2009-07-11 21:46:31 +0000
committerNathan Fritz <fritzy@netflint.net>2009-07-11 21:46:31 +0000
commit7a15d14c939dbc9ecc9822c81da55bdb648dcbdb (patch)
treef541753dbd8e2cb728bbe2aec39879e6e6c7f464 /sleekxmpp/xmlstream/xmlstream.py
parent171bb30e83b54d9e93c7f5a9834050a02d2ecf70 (diff)
downloadslixmpp-7a15d14c939dbc9ecc9822c81da55bdb648dcbdb.tar.gz
slixmpp-7a15d14c939dbc9ecc9822c81da55bdb648dcbdb.tar.bz2
slixmpp-7a15d14c939dbc9ecc9822c81da55bdb648dcbdb.tar.xz
slixmpp-7a15d14c939dbc9ecc9822c81da55bdb648dcbdb.zip
added incoming_filter
Diffstat (limited to 'sleekxmpp/xmlstream/xmlstream.py')
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index 1c47d9ae..c2a581aa 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -289,10 +289,14 @@ class XMLStream(object):
self.state.set('ssl',False)
time.sleep(1)
self.connect()
+
+ def incoming_filter(self, xmlobj):
+ return xmlobj
def __spawnEvent(self, xmlobj):
"watching xmlOut and processes handlers"
#convert XML into Stanza
+ xmlobj = self.incoming_filter(xmlobj)
logging.debug("PROCESSING: %s" % xmlobj.tag)
stanza = None
for stanza_class in self.__root_stanza: