1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-03 08:24:27 +00:00

add rpc publish_event() , pop_event() and remove cevent (#253)

This commit is contained in:
Xiangyue Cai
2019-07-22 11:18:32 +08:00
committed by Jiaqiang Xu
parent b85d194b4b
commit aa0185203b
13 changed files with 208 additions and 90 deletions

View File

@@ -827,6 +827,12 @@ class SeafileAPI(object):
def convert_repo_path(self, repo_id, path, user, is_org=False):
return seafserv_threaded_rpc.convert_repo_path(repo_id, path, user, 1 if is_org else 0)
def publish_event(self, channel, content):
return seafserv_threaded_rpc.publish_event(channel, content)
def pop_event(self, channel):
return seafserv_threaded_rpc.pop_event(channel)
seafile_api = SeafileAPI()
class CcnetAPI(object):