comparison src/core/sat_main.py @ 2176:61128d260eef

plugin account: removed dependency to Prosody/prosodyctl and properly use in-band registration instead
author Goffi <goffi@goffi.org>
date Thu, 09 Mar 2017 00:06:13 +0100
parents 255830fdb80b
children 83bcd9ec4782
comparison
equal deleted inserted replaced
2175:75002ac33801 2176:61128d260eef
437 """Convenient method to get client from profile key 437 """Convenient method to get client from profile key
438 438
439 @return: client or None if it doesn't exist 439 @return: client or None if it doesn't exist
440 @raise exceptions.ProfileKeyUnknown: the profile or profile key doesn't exist 440 @raise exceptions.ProfileKeyUnknown: the profile or profile key doesn't exist
441 @raise exceptions.NotFound: client is not available 441 @raise exceptions.NotFound: client is not available
442 This happen if profile has not been use yet 442 This happen if profile has not been used yet
443 """ 443 """
444 profile = self.memory.getProfileName(profile_key) 444 profile = self.memory.getProfileName(profile_key)
445 if not profile: 445 if not profile:
446 raise exceptions.ProfileKeyUnknown 446 raise exceptions.ProfileKeyUnknown
447 try: 447 try: