[cli] fixed seaf-cli

clone/download rpc params has changed in seafile version 3.0+
This commit is contained in:
lins05 2014-04-21 19:11:35 +08:00
parent 653f11dced
commit 0f3f230618

View File

@ -375,6 +375,7 @@ def seaf_download(args):
relay_port = tmp['relay_port']
email = tmp['email']
repo_name = tmp['repo_name']
version = tmp.get('repo_version', 0)
print "Starting to download ..."
print "Library %s will be downloaded to %s" % (repo, download_dir)
@ -384,6 +385,7 @@ def seaf_download(args):
repo_passwd = None
seafile_rpc.download(repo,
version,
relay_id,
repo_name.encode('utf-8'),
download_dir.encode('utf-8'),
@ -451,6 +453,7 @@ def seaf_sync(args):
relay_port = tmp['relay_port']
email = tmp['email']
repo_name = tmp['repo_name']
version = tmp.get('repo_version', 0)
print "Starting to download ..."
if encrypted == 1:
@ -459,6 +462,7 @@ def seaf_sync(args):
repo_passwd = None
seafile_rpc.clone(repo,
version,
relay_id,
repo_name.encode('utf-8'),
folder,