core (xmpp): implemented human friendly __unicode__ for client
This commit is contained in:
parent
7dc9aae5aa
commit
e5e0913aec
1 changed files with 6 additions and 0 deletions
|
|
@ -69,6 +69,12 @@ class SatXMPPEntity(object):
|
|||
self.actions = {} # used to keep track of actions for retrieval (key = action_id)
|
||||
self.encryption = encryption.EncryptionHandler(self)
|
||||
|
||||
def __unicode__(self):
|
||||
return u"Client instance for profile {profile}".format(profile=self.profile)
|
||||
|
||||
def __str__(self):
|
||||
return self.__unicode__.encode('utf-8')
|
||||
|
||||
## initialisation ##
|
||||
|
||||
@defer.inlineCallbacks
|
||||
|
|
|
|||
Loading…
Reference in a new issue