diff options
author | Brian Beggs <macdiesel@gmail.com> | 2010-06-30 13:54:53 -0400 |
---|---|---|
committer | Brian Beggs <macdiesel@gmail.com> | 2010-06-30 13:54:53 -0400 |
commit | c538ffae79728f7cb2675e14af64915682c19fe1 (patch) | |
tree | e8858b483c24471a03238beb55057d437acfb9bc /sleekxmpp/xmlstream | |
parent | c0a6291feae148916064ab71e13815a84008fada (diff) | |
download | slixmpp-c538ffae79728f7cb2675e14af64915682c19fe1.tar.gz slixmpp-c538ffae79728f7cb2675e14af64915682c19fe1.tar.bz2 slixmpp-c538ffae79728f7cb2675e14af64915682c19fe1.tar.xz slixmpp-c538ffae79728f7cb2675e14af64915682c19fe1.zip |
digest-md5 auth now works, had to remove from __future__ import unicode_literals to get it working correctly. Also some improvments for the prioroity message sending.
Diffstat (limited to 'sleekxmpp/xmlstream')
-rw-r--r-- | sleekxmpp/xmlstream/stanzabase.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py index 64020c8f..34513807 100644 --- a/sleekxmpp/xmlstream/stanzabase.py +++ b/sleekxmpp/xmlstream/stanzabase.py @@ -1,9 +1,9 @@ """ - SleekXMPP: The Sleek XMPP Library - Copyright (C) 2010 Nathanael C. Fritz - This file is part of SleekXMPP. + SleekXMPP: The Sleek XMPP Library + Copyright (C) 2010 Nathanael C. Fritz + This file is part of SleekXMPP. - See the file license.txt for copying permission. + See the file license.txt for copying permission. """ from xml.etree import cElementTree as ET import logging @@ -383,6 +383,7 @@ class StanzaBase(ElementBase): def exception(self, e): logging.error(traceback.format_tb(e)) - def send(self): - self.stream.sendRaw(self.__str__()) - + def send(self, priority=False): + if priority: self.stream.sendPriorityRaw(self.__str__()) + else: self.stream.sendRaw(self.__str__()) + |