summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-06-27 20:59:11 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-06-27 20:59:11 +0200
commit070e7152727f8e04910df30bf1d7a92f90a9613f (patch)
treee17fc21bb3797a17122bff7dc65969ce3dfe6cd8 /pyLoadCore.py
parentgui displays downloads (diff)
downloadpyload-070e7152727f8e04910df30bf1d7a92f90a9613f.tar.xz
basic gui functions are working
Diffstat (limited to 'pyLoadCore.py')
-rw-r--r--pyLoadCore.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 3f45ca332..b250d3f55 100644
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -269,6 +269,20 @@ class Core(object):
def get_links(self):
return self.file_list.data
+ def move_links_up(self, ids):
+
+ for id in ids:
+ self.file_list.move(id)
+
+ self.file_list.save()
+
+ def move_links_down(self, ids):
+
+ for id in ids:
+ self.file_list.move(id, 1)
+
+ self.file_list.save()
+
def toggle_pause(self):
if self.thread_list.pause:
self.thread_list.pause = False