MCPcopy Index your code
hub / github.com/pyload/pyload / getAccountInfos

Method getAccountInfos

module/plugins/AccountManager.py:170–189  ·  view source on GitHub ↗
(self, force=True, refresh=False)

Source from the content-addressed store, hash-verified

168
169 @lock
170 def getAccountInfos(self, force=True, refresh=False):
171 data = {}
172
173 if refresh:
174 self.core.scheduler.addJob(0, self.core.accountManager.getAccountInfos)
175 force = False
176
177 for k in self.accounts.keys():
178 if self.accounts[k]:
179 p = self.getAccountPlugin(k)
180 if p:
181 data[p.__name__] = p.getAllAccounts(force)
182 else:
183 self.core.log.error(_("Bad or missing plugin: ACCOUNT %s") % k)
184 data[k] = []
185 else:
186 data[k] = []
187 e = AccountUpdateEvent()
188 self.core.pullManager.addEvent(e)
189 return data
190
191 def sendChange(self):
192 e = AccountUpdateEvent()

Callers 2

startMethod · 0.80
getAccountsMethod · 0.80

Calls 8

getAccountPluginMethod · 0.95
AccountUpdateEventClass · 0.90
addJobMethod · 0.80
getAllAccountsMethod · 0.80
_Function · 0.50
keysMethod · 0.45
errorMethod · 0.45
addEventMethod · 0.45

Tested by

no test coverage detected