mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-03 16:34:33 +00:00
Modify scripts to support python3.
This commit is contained in:
@@ -284,8 +284,8 @@ class RPC(object):
|
||||
import ccnet
|
||||
ccnet_dir = os.environ['CCNET_CONF_DIR']
|
||||
central_config_dir = os.environ['SEAFILE_CENTRAL_CONF_DIR']
|
||||
self.rpc_client = ccnet.CcnetThreadedRpcClient(
|
||||
ccnet.ClientPool(ccnet_dir, central_config_dir=central_config_dir))
|
||||
ccnet_named_pipe_path = ccnet_dir + '/' + 'ccnet-rpc.sock'
|
||||
self.rpc_client = ccnet.CcnetThreadedRpcClient(ccnet_named_pipe_path)
|
||||
|
||||
def get_db_email_users(self):
|
||||
return self.rpc_client.get_emailusers('DB', 0, 1)
|
||||
|
Reference in New Issue
Block a user