src/contacts.py
def update(self, force=False):
        """Load contacts from cache and update cached data if old."""
        # Load cached contacts
        self.contacts = wf.cached_data('contacts', max_age=0)
        if self.contacts is None:
            self.contacts = {}

        # Update if required
        if not wf.cached_data_fresh('contacts', MAX_CACHE_AGE) or force:
            log.debug('Updating contacts cache ...')
            cmd = ['/usr/bin/python', wf.workflowfile('update_contacts.py')]
            run_in_background('update-contacts', cmd)
Load contacts from cache and update cached data if old.
Load contacts from cache and update cached data if old.
Load contacts from cache and update cached data if old .
def update(self, force=False):
        self.contacts = wf.cached_data('contacts', max_age=0)
        if self.contacts is None:
            self.contacts = {}
        if not wf.cached_data_fresh('contacts', MAX_CACHE_AGE) or force:
            log.debug('Updating contacts cache ...')
            cmd = ['/usr/bin/python', wf.workflowfile('update_contacts.py')]
            run_in_background('update-contacts', cmd)
def update ( self , force = False ) : self . contacts = wf . cached_data ( 'contacts' , max_age = 0 ) if self . contacts is None : self . contacts = { } if not wf . cached_data_fresh ( 'contacts' , MAX_CACHE_AGE ) or force : log . debug ( 'Updating contacts cache ...' ) cmd = [ '/usr/bin/python' , wf . workflowfile ( 'update_contacts.py' ) ] run_in_background ( 'update-contacts' , cmd )
Load contacts from cache and update cached data if old.
Load contacts from cache and update cached data if old .
"""Load contacts from cache and update cached data if old.""" # Load cached contacts # Update if required
self
force