summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/Account.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/Account.py')
-rw-r--r--pyload/plugins/Account.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pyload/plugins/Account.py b/pyload/plugins/Account.py
index ed0769fb4..d62825cad 100644
--- a/pyload/plugins/Account.py
+++ b/pyload/plugins/Account.py
@@ -212,9 +212,6 @@ class Account(Base):
finally:
req.close()
- self.logDebug("Account Info: %s" % str(infos))
- self.timestamp = time()
-
self.restoreDefaults() # reset to initial state
if type(infos) == dict: # copy result from dict to class
for k, v in infos.iteritems():
@@ -223,6 +220,10 @@ class Account(Base):
else:
self.logDebug("Unknown attribute %s=%s" % (k, v))
+ self.logDebug("Account Info: %s" % str(infos))
+ self.timestamp = time()
+ self.core.evm.dispatchEvent("account:loaded", self.toInfoData())
+
#TODO: remove user
def loadAccountInfo(self, req):
""" Overwrite this method and set account attributes within this method.