summaryrefslogtreecommitdiffstats
path: root/module/cli
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-01 13:51:34 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-01 13:51:34 +0200
commit670fb45a46d8723b2c7bf3d667911c567c433283 (patch)
treefb8de33ae76f8e146ad88b6c0e485fbfec0ead27 /module/cli
parentcleanup (diff)
downloadpyload-670fb45a46d8723b2c7bf3d667911c567c433283.tar.xz
new api class + documentation
Diffstat (limited to 'module/cli')
-rw-r--r--module/cli/ManageFiles.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/cli/ManageFiles.py b/module/cli/ManageFiles.py
index f0f9ec93a..4d0377d9d 100644
--- a/module/cli/ManageFiles.py
+++ b/module/cli/ManageFiles.py
@@ -24,13 +24,13 @@ from time import time
from Handler import Handler
from printer import *
-from module.remote.thriftbackend.thriftgen.pyload.Pyload import PackageData, PackageDoesNotExists
+from module.Api import Destination, PackageData
class ManageFiles(Handler):
""" possibility to manage queue/collector """
def init(self):
- self.target = 1 #queue and collector are swapped
+ self.target = Destination.Queue
self.pos = 0 #position in queue
self.package = -1 #choosen package
self.mode = "" # move/delete/restart
@@ -155,7 +155,7 @@ class ManageFiles(Handler):
if self.cache and self.time + 2 < time():
return self.cache
- if self.target == 1:
+ if self.target == Destination.Queue:
data = self.client.getQueue()
else:
data = self.client.getCollector()