summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/stanzabase.py
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2010-05-27 04:58:57 -0700
committerNathan Fritz <fritzy@netflint.net>2010-05-27 04:58:57 -0700
commit3a28f9e5d247b9124e0d14c26c2a6e79aaee86ff (patch)
tree0d0cbd55785b8c06a86268e6de66201924f3dd55 /sleekxmpp/xmlstream/stanzabase.py
parent0bda5fd3f28da14478db87c98fb89f647994deaa (diff)
downloadslixmpp-3a28f9e5d247b9124e0d14c26c2a6e79aaee86ff.tar.gz
slixmpp-3a28f9e5d247b9124e0d14c26c2a6e79aaee86ff.tar.bz2
slixmpp-3a28f9e5d247b9124e0d14c26c2a6e79aaee86ff.tar.xz
slixmpp-3a28f9e5d247b9124e0d14c26c2a6e79aaee86ff.zip
added pubsub state stanzas and scheduled events
Diffstat (limited to 'sleekxmpp/xmlstream/stanzabase.py')
-rw-r--r--sleekxmpp/xmlstream/stanzabase.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py
index 3f3f5e08..c40922be 100644
--- a/sleekxmpp/xmlstream/stanzabase.py
+++ b/sleekxmpp/xmlstream/stanzabase.py
@@ -319,6 +319,8 @@ class StanzaBase(ElementBase):
def __init__(self, stream=None, xml=None, stype=None, sto=None, sfrom=None, sid=None):
self.stream = stream
+ if stream is not None:
+ self.namespace = stream.default_ns
ElementBase.__init__(self, xml)
if stype is not None:
self['type'] = stype
@@ -326,8 +328,6 @@ class StanzaBase(ElementBase):
self['to'] = sto
if sfrom is not None:
self['from'] = sfrom
- if stream is not None:
- self.namespace = stream.default_ns
self.tag = "{%s}%s" % (self.namespace, self.name)
def setType(self, value):