From ed89dc9c5e3ab0e4cf6bc571217fce947bf8db86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20L=C3=B3pez?= Date: Sat, 17 Jul 2010 17:00:52 -0300 Subject: [PATCH] Support full sync on check pending invite Currently, papyon requests a delta sync to look for pending contacts. If this fails with a FullSyncRequired, papyon does not request a full sync. This patch makes papyon try a full sync when a FullSyncRequired error occurs while looking for pending contacts. --- .../scenario/contacts/check_pending_invite.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/papyon/service/AddressBook/scenario/contacts/check_pending_invite.py b/papyon/service/AddressBook/scenario/contacts/check_pending_invite.py index d26f0cd..ad6e257 100644 --- a/papyon/service/AddressBook/scenario/contacts/check_pending_invite.py +++ b/papyon/service/AddressBook/scenario/contacts/check_pending_invite.py @@ -44,5 +44,10 @@ class CheckPendingInviteScenario(BaseScenario): def __membership_findall_errback(self, error_code): errcode = AddressBookError.UNKNOWN + if error_code == 'FullSyncRequired': + self.__sharing.FindMembership((self.__membership_findall_callback,), + (self.__membership_findall_errback,), + self._scenario, ['Messenger'], False) + return self.errback(errcode) -- 1.7.0.4