def getAccountInfos(self, force=True, refresh=False):
        data = {}

        if refresh:
            self.core.scheduler.addJob(0, self.core.accountManager.getAccountInfos)
            force = False
        
        for p in self.accounts.keys():
            if self.accounts[p]:
                p = self.getAccountPlugin(p)
                data[p.__name__] = p.getAllAccounts(force)
            else:
                data[p] = []
        e = AccountUpdateEvent()
        self.core.pullManager.addEvent(e)
        return data
Exemple #2
0
 def sendChange(self):
     e = AccountUpdateEvent()
     self.core.pullManager.addEvent(e)
Exemple #3
0
 def sendChange(self):
     e = AccountUpdateEvent()
     get_pull_manager().addEvent(e)