Mercurial > libervia-backend
comparison src/plugins/plugin_exp_parrot.py @ 1409:3265a2639182
massive (preventive) addition of 'u' (unicode) before the strings passed to logging functions
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 16 Apr 2015 14:57:57 +0200 |
parents | 069ad98b360d |
children | 244a605623d6 |
comparison
equal
deleted
inserted
replaced
1408:8a7145138330 | 1409:3265a2639182 |
---|---|
116 _links = client.parrot_links | 116 _links = client.parrot_links |
117 except AttributeError: | 117 except AttributeError: |
118 _links = client.parrot_links = {} | 118 _links = client.parrot_links = {} |
119 | 119 |
120 _links[source_jid.userhostJID()] = dest_jid | 120 _links[source_jid.userhostJID()] = dest_jid |
121 log.info("Parrot mode: %s will be repeated to %s" % (source_jid.userhost(), unicode(dest_jid))) | 121 log.info(u"Parrot mode: %s will be repeated to %s" % (source_jid.userhost(), unicode(dest_jid))) |
122 | 122 |
123 def removeParrot(self, source_jid, profile): | 123 def removeParrot(self, source_jid, profile): |
124 """Remove parrot link | 124 """Remove parrot link |
125 @param source_jid: this entity will no more be repeated | 125 @param source_jid: this entity will no more be repeated |
126 @param profile: %(doc_profile_key)s""" | 126 @param profile: %(doc_profile_key)s""" |