1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-02 07:54:27 +00:00

Add search files RPC (#417)

* Add search files RPC

* Not case sensitive when searching files
This commit is contained in:
feiniks
2020-10-27 18:06:37 +08:00
committed by GitHub
parent 50ab9a8ffe
commit be8231ffc2
11 changed files with 202 additions and 1 deletions

View File

@@ -808,6 +808,10 @@ class SeafServerThreadedRpcClient(NamedPipeClient):
def pop_event(channel):
pass
@searpc_func("objlist", ["string", "string"])
def search_files(self, repo_id, search_str):
pass
#user management
@searpc_func("int", ["string", "string", "int", "int"])
def add_emailuser(self, email, passwd, is_staff, is_active):

View File

@@ -838,6 +838,9 @@ class SeafileAPI(object):
def pop_event(self, channel):
return seafserv_threaded_rpc.pop_event(channel)
def search_files(self, repo_id, search_str):
return seafserv_threaded_rpc.search_files(repo_id, search_str)
seafile_api = SeafileAPI()