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

Method updateAccount

module/plugins/AccountManager.py:149–157  ·  view source on GitHub ↗

add or update account

(self, plugin , user, password=None, options={})

Source from the content-addressed store, hash-verified

147
148 @lock
149 def updateAccount(self, plugin , user, password=None, options={}):
150 """add or update account"""
151 if plugin in self.accounts:
152 p = self.getAccountPlugin(plugin)
153 updated = p.updateAccounts(user, password, options)
154 #since accounts is a ref in plugin self.accounts doesnt need to be updated here
155
156 self.saveAccounts()
157 if updated: p.scheduleRefresh(user, force=False)
158
159 @lock
160 def removeAccount(self, plugin, user):

Callers

nothing calls this directly

Calls 4

getAccountPluginMethod · 0.95
saveAccountsMethod · 0.95
scheduleRefreshMethod · 0.80
updateAccountsMethod · 0.45

Tested by

no test coverage detected