summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-11-29 16:29:53 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-11-29 16:29:53 +0100
commit672932abf1cc860ebef67fb8385ffdf04aaf5215 (patch)
tree75c4660c7f7f5f30c5db94b14a33f8b671efaaf9 /pyLoadCore.py
parentlinks.pkl now in module, nicer terminal kill (diff)
downloadpyload-672932abf1cc860ebef67fb8385ffdf04aaf5215.tar.xz
new xmlrpc method
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index cb6714f85..d1677a17b 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -354,6 +354,25 @@ class Core(object):
"url": f.url
})
data.append(ds)
+ return data
+
+ def get_collector_packages(self):
+ data = []
+ for q in self.file_list.data["packages"]:
+ ds = {
+ "id": q.data.id,
+ "name": q.data.package_name,
+ "folder": q.data.folder,
+ "files": []
+ }
+ for f in q.links:
+ ds["files"].append({
+ "name": f.status.name,
+ "status": f.status.type,
+ "url": f.url
+ })
+ data.append(ds)
+ return data
#def move_urls_up(self, ids):
# for id in ids: