comparison src/core/sat_main.py @ 1325:49f967fc87aa frontends_multi_profiles

core, quick_frontends: fixes one typo and a variable naming issue
author souliane <souliane@mailoo.org>
date Sat, 21 Feb 2015 17:22:39 +0100
parents 8adcdf2cdfe1
children 33a21f06551d
comparison
equal deleted inserted replaced
1324:948dc273ad93 1325:49f967fc87aa
638 """Remove contact from roster list""" 638 """Remove contact from roster list"""
639 profile = self.memory.getProfileName(profile_key) 639 profile = self.memory.getProfileName(profile_key)
640 assert profile 640 assert profile
641 d1 = self.profiles[profile].roster.removeItem(to_jid) 641 d1 = self.profiles[profile].roster.removeItem(to_jid)
642 d2 = self.profiles[profile].presence.unsubscribe(to_jid) 642 d2 = self.profiles[profile].presence.unsubscribe(to_jid)
643 d_list = defer.DefferedList([d1, d2]) 643 d_list = defer.DeferredList([d1, d2])
644 def check_result(list_result): 644 def check_result(list_result):
645 for success, value in list_result: 645 for success, value in list_result:
646 if not success: 646 if not success:
647 raise value 647 raise value
648 d_list.addCallback(check_result) 648 d_list.addCallback(check_result)