diff src/core/sat_main.py @ 1573:6338677f3a89

core (client): added a sendError method to easily build error response from <IQ\> stanza
author Goffi <goffi@goffi.org>
date Wed, 11 Nov 2015 14:56:05 +0100
parents 465d4d484e7c
children 846a39900fa6
line wrap: on
line diff
--- a/src/core/sat_main.py	Sun Nov 08 15:16:14 2015 +0100
+++ b/src/core/sat_main.py	Wed Nov 11 14:56:05 2015 +0100
@@ -478,6 +478,7 @@
     def getJidNStream(self, profile_key):
         """Convenient method to get jid and stream from profile key
         @return: tuple (jid, xmlstream) from profile, can be None"""
+        # TODO: deprecate this method (getClient is enough)
         profile = self.memory.getProfileName(profile_key)
         if not profile or not self.profiles[profile].isConnected():
             return (None, None)