diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-01 13:51:34 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-01 13:51:34 +0200 |
commit | 670fb45a46d8723b2c7bf3d667911c567c433283 (patch) | |
tree | fb8de33ae76f8e146ad88b6c0e485fbfec0ead27 /module/cli | |
parent | cleanup (diff) | |
download | pyload-670fb45a46d8723b2c7bf3d667911c567c433283.tar.xz |
new api class + documentation
Diffstat (limited to 'module/cli')
-rw-r--r-- | module/cli/ManageFiles.py | 6 |
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() |