1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-01 15:36:37 +00:00

Add rpc for getting trash repo owner

This commit is contained in:
cuihaikuo
2017-08-03 13:52:28 +08:00
parent f257becc8a
commit 3204e11073
7 changed files with 36 additions and 0 deletions

View File

@@ -964,3 +964,7 @@ class SeafServerThreadedRpcClient(ccnet.RpcClientBase):
@searpc_func("object", ["string", "string"])
def get_file_count_info_by_path(repo_id, path):
pass
@searpc_func("string", ["string"])
def get_trash_repo_owner(repo_id):
pass

View File

@@ -675,6 +675,9 @@ class SeafileAPI(object):
def get_file_count_info_by_path(self, repo_id, path):
return seafserv_threaded_rpc.get_file_count_info_by_path(repo_id, path)
def get_trash_repo_owner (self, repo_id):
return seafserv_threaded_rpc.get_trash_repo_owner(repo_id)
seafile_api = SeafileAPI()
class CcnetAPI(object):