1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-08-31 15:11:08 +00:00

Add rpc cancel_zip_task().

This commit is contained in:
cuihaikuo
2017-12-27 18:32:04 +08:00
parent bb89603e5b
commit 17aeec7304
9 changed files with 52 additions and 2 deletions

View File

@@ -280,6 +280,10 @@ class SeafServerRpcClient(ccnet.RpcClientBase):
pass
query_zip_progress = seafile_query_zip_progress
@searpc_func("int", ["string"])
def cancel_zip_task(token):
pass
###### GC ####################
@searpc_func("int", [])
def seafile_gc():

View File

@@ -49,6 +49,9 @@ class SeafileAPI(object):
"""
return seafserv_rpc.query_zip_progress(token)
def cancel_zip_task(self, token):
return seafserv_rpc.cancel_zip_task(token)
# password
def is_password_set(self, repo_id, username):