summaryrefslogtreecommitdiff
path: root/sleekxmpp/basexmpp.py
diff options
context:
space:
mode:
authorNathan Fritz <nathan@andyet.net>2010-07-19 15:38:48 -0700
committerNathan Fritz <nathan@andyet.net>2010-07-19 15:38:48 -0700
commitfec8578cf61696d8ca85a6fe85a55be71d7109fd (patch)
treeefa425808db04a199e59d0b6fe5efa81c0e3d455 /sleekxmpp/basexmpp.py
parentf80b3285d49a2ca395369a98cb0f7cf1fda4e218 (diff)
downloadslixmpp-fec8578cf61696d8ca85a6fe85a55be71d7109fd.tar.gz
slixmpp-fec8578cf61696d8ca85a6fe85a55be71d7109fd.tar.bz2
slixmpp-fec8578cf61696d8ca85a6fe85a55be71d7109fd.tar.xz
slixmpp-fec8578cf61696d8ca85a6fe85a55be71d7109fd.zip
stanza should not have setValues/getValues because that conflicts with attribute accessors
Diffstat (limited to 'sleekxmpp/basexmpp.py')
-rw-r--r--sleekxmpp/basexmpp.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py
index c9439ea3..12dc2a1b 100644
--- a/sleekxmpp/basexmpp.py
+++ b/sleekxmpp/basexmpp.py
@@ -144,26 +144,26 @@ class basexmpp(object):
return waitfor.wait(timeout)
def makeIq(self, id=0, ifrom=None):
- return self.Iq().setValues({'id': str(id), 'from': ifrom})
+ return self.Iq().setStanzaValues({'id': str(id), 'from': ifrom})
def makeIqGet(self, queryxmlns = None):
- iq = self.Iq().setValues({'type': 'get'})
+ iq = self.Iq().setStanzaValues({'type': 'get'})
if queryxmlns:
iq.append(ET.Element("{%s}query" % queryxmlns))
return iq
def makeIqResult(self, id):
- return self.Iq().setValues({'id': id, 'type': 'result'})
+ return self.Iq().setStanzaValues({'id': id, 'type': 'result'})
def makeIqSet(self, sub=None):
- iq = self.Iq().setValues({'type': 'set'})
+ iq = self.Iq().setStanzaValues({'type': 'set'})
if sub != None:
iq.append(sub)
return iq
def makeIqError(self, id, type='cancel', condition='feature-not-implemented', text=None):
- iq = self.Iq().setValues({'id': id})
- iq['error'].setValues({'type': type, 'condition': condition, 'text': text})
+ iq = self.Iq().setStanzaValues({'id': id})
+ iq['error'].setStanzaValues({'type': type, 'condition': condition, 'text': text})
return iq
def makeIqQuery(self, iq, xmlns):