summaryrefslogtreecommitdiffstats
path: root/module/FileManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-12 12:49:42 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-12 12:49:42 +0100
commit6232db5a1d3b8b5e4412af67d5bc7ca65f94333c (patch)
tree02a95e1216ace355d84a9704fb9070bd744b17c2 /module/FileManager.py
parentadded missing file (diff)
downloadpyload-6232db5a1d3b8b5e4412af67d5bc7ca65f94333c.tar.xz
renamed most events, push events to webui
Diffstat (limited to 'module/FileManager.py')
-rw-r--r--module/FileManager.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/module/FileManager.py b/module/FileManager.py
index 082bdb4d4..0d8a35a64 100644
--- a/module/FileManager.py
+++ b/module/FileManager.py
@@ -292,7 +292,6 @@ class FileManager:
return pyfile
- #TODO
def getDownloadStats(self, user=None):
""" return number of downloads """
if user not in self.downloadstats:
@@ -377,7 +376,9 @@ class FileManager:
def updateFile(self, pyfile):
"""updates file"""
self.db.updateFile(pyfile)
- self.evm.dispatchEvent("file:updated", pyfile.fid, pyfile.packageid)
+
+ # This event is thrown with pyfile or only fid
+ self.evm.dispatchEvent("file:updated", pyfile)
def updatePackage(self, pypack):
"""updates a package"""
@@ -395,7 +396,7 @@ class FileManager:
# TODO: user context?
if not self.getQueueStats(None, True)[0]:
- self.core.addonManager.dispatchEvent("downloads:finished")
+ self.core.addonManager.dispatchEvent("download:allFinished")
self.core.log.debug("All downloads finished")
return True
@@ -409,7 +410,7 @@ class FileManager:
# TODO: user context?
if not self.db.processcount(fid):
- self.core.addonManager.dispatchEvent("downloads:processed")
+ self.core.addonManager.dispatchEvent("download:allProcessed")
self.core.log.debug("All downloads processed")
return True