From 670fb45a46d8723b2c7bf3d667911c567c433283 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 1 Jul 2011 13:51:34 +0200 Subject: new api class + documentation --- module/cli/ManageFiles.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/cli') 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() -- cgit v1.2.3