self._service=build('people','v1',credentials=notification.data.credentials,http=Http(timeout=10),cache_discovery=False)# todo: what's the best fix for cache?
self._service=build('people','v1',credentials=notification.data.credentials,http=Http(timeout=10),cache_discovery=False)# todo: what's the best fix for cache?
exceptExceptionase:
log.error('Error fetching Google contacts: %s'%str(e))
else:
self.active=True
self.active=True
self.sync_contacts()# sync_contacts is always scheduled in order to not queue posting notifications until after sync_contacts finishes, when called from a notification handler
self.sync_contacts()# sync_contacts is always scheduled in order to not queue posting notifications until after sync_contacts finishes, when called from a notification handler