summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/stanzabase.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-05-31 11:05:54 -0700
committerLance Stout <lancestout@gmail.com>2011-05-31 11:05:54 -0700
commit83a73ac9b751f6403a43cb341460a46171e0908b (patch)
treec60877a9c6896bbefe8fcb51b606a20abac165ee /sleekxmpp/xmlstream/stanzabase.py
parentccb0eeefbd58361283e4e92d75e5d17aa76c70c7 (diff)
parenta81162edd2434756e21d7f9a79d71d770a43db7b (diff)
downloadslixmpp-83a73ac9b751f6403a43cb341460a46171e0908b.tar.gz
slixmpp-83a73ac9b751f6403a43cb341460a46171e0908b.tar.bz2
slixmpp-83a73ac9b751f6403a43cb341460a46171e0908b.tar.xz
slixmpp-83a73ac9b751f6403a43cb341460a46171e0908b.zip
Merge branch 'develop' into stream_features
Conflicts: sleekxmpp/clientxmpp.py
Diffstat (limited to 'sleekxmpp/xmlstream/stanzabase.py')
-rw-r--r--sleekxmpp/xmlstream/stanzabase.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py
index 28f78f3c..f1a9e1f5 100644
--- a/sleekxmpp/xmlstream/stanzabase.py
+++ b/sleekxmpp/xmlstream/stanzabase.py
@@ -1255,9 +1255,15 @@ class StanzaBase(ElementBase):
log.exception('Error handling {%s}%s stanza' % (self.namespace,
self.name))
- def send(self):
- """Queue the stanza to be sent on the XML stream."""
- self.stream.sendRaw(self.__str__())
+ def send(self, now=False):
+ """
+ Queue the stanza to be sent on the XML stream.
+ Arguments:
+ now -- Indicates if the queue should be skipped and the
+ stanza sent immediately. Useful for stream
+ initialization. Defaults to False.
+ """
+ self.stream.send_raw(self.__str__(), now=now)
def __copy__(self):
"""