summaryrefslogtreecommitdiffstats
path: root/pyLoadCli.py
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 /pyLoadCli.py
parentcleanup (diff)
downloadpyload-670fb45a46d8723b2c7bf3d667911c567c433283.tar.xz
new api class + documentation
Diffstat (limited to 'pyLoadCli.py')
-rwxr-xr-xpyLoadCli.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pyLoadCli.py b/pyLoadCli.py
index 12e601029..f572cf7e5 100755
--- a/pyLoadCli.py
+++ b/pyLoadCli.py
@@ -30,20 +30,23 @@ from threading import Thread, Lock
from time import sleep
from traceback import print_exc
+import ConfigParser
+
from codecs import getwriter
if os.name == "nt":
enc = "cp850"
else:
enc = "utf8"
+
sys.stdout = getwriter(enc)(sys.stdout, errors = "replace")
from module import InitHomeDir
from module.cli.printer import *
from module.cli import AddPackage, ManageFiles
+from module.Api import Destination
from module.utils import formatSize, decode
-import ConfigParser
from module.remote.thriftbackend.ThriftClient import ThriftClient, NoConnection, NoSSL, WrongLogin, ConnectionClosed
from module.lib.Getch import Getch
from module.lib.rename_process import renameProcess
@@ -233,7 +236,7 @@ class Cli:
self.setHandler(ManageFiles)
elif char == "3":
self.setHandler(ManageFiles)
- self.bodyHandler.target = 0
+ self.bodyHandler.target = Destination.Collector
elif char == "4":
self.client.togglePause()
self.setInput()