summaryrefslogtreecommitdiff
path: root/sleekxmpp/__init__.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/__init__.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/__init__.py')
-rw-r--r--sleekxmpp/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sleekxmpp/__init__.py b/sleekxmpp/__init__.py
index df0af09c..3d659a85 100644
--- a/sleekxmpp/__init__.py
+++ b/sleekxmpp/__init__.py
@@ -145,7 +145,7 @@ class ClientXMPP(basexmpp, XMLStream):
def updateRoster(self, jid, name=None, subscription=None, groups=[]):
"""Add or change a roster item."""
- iq = self.Iq().setValues({'type': 'set'})
+ iq = self.Iq().setStanzaValues({'type': 'set'})
iq['roster']['items'] = {jid: {'name': name, 'subscription': subscription, 'groups': groups}}
#self.send(iq, self.Iq().setValues({'id': iq['id']}))
r = iq.send()
@@ -159,7 +159,7 @@ class ClientXMPP(basexmpp, XMLStream):
def getRoster(self):
"""Request the roster be sent."""
- iq = self.Iq().setValues({'type': 'get'}).enable('roster').send()
+ iq = self.Iq().setStanzaValues({'type': 'get'}).enable('roster').send()
self._handleRoster(iq, request=True)
def _handleStreamFeatures(self, features):
@@ -254,5 +254,5 @@ class ClientXMPP(basexmpp, XMLStream):
self.roster[jid] = {'groups': [], 'name': '', 'subscription': 'none', 'presence': {}, 'in_roster': True}
self.roster[jid].update(iq['roster']['items'][jid])
if iq['type'] == 'set':
- self.send(self.Iq().setValues({'type': 'result', 'id': iq['id']}).enable('roster'))
+ self.send(self.Iq().setStanzaValues({'type': 'result', 'id': iq['id']}).enable('roster'))
self.event("roster_update", iq)