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:
@@ -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):
|
||||
|
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user