mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 19:19:54 +00:00
Make the roster easier to inspect.
The __repr__ version now looks like a regular dictionary.
This commit is contained in:
parent
a86935a42f
commit
1eb69f7075
3 changed files with 9 additions and 0 deletions
|
@ -482,3 +482,6 @@ class RosterItem(object):
|
|||
a roster reset request.
|
||||
"""
|
||||
self.resources = {}
|
||||
|
||||
def __repr__(self):
|
||||
return repr(self._state)
|
||||
|
|
|
@ -182,3 +182,6 @@ class Roster(object):
|
|||
self._auto_subscribe = value
|
||||
for node in self._rosters:
|
||||
self._rosters[node].auto_subscribe = value
|
||||
|
||||
def __repr__(self):
|
||||
return repr(self._rosters)
|
||||
|
|
|
@ -285,3 +285,6 @@ class RosterNode(object):
|
|||
if not self.xmpp.sentpresence:
|
||||
self.xmpp.event('sent_presence')
|
||||
self.xmpp.sentpresence = True
|
||||
|
||||
def __repr__(self):
|
||||
return repr(self._jids)
|
||||
|
|
Loading…
Reference in a new issue