From 96378f825fc71d917d49b3577d523cfa6167393a Mon Sep 17 00:00:00 2001 From: cathook Date: Sun, 16 Nov 2014 11:55:34 +0800 Subject: Big change: Simplify the json_package. Simplify the authority_string_transformer. Remove the VimVar and use ScopeVars because all the variable now just needs to store in python. Add new module request_handler for simplifying the module tcp_server. --- server/src/shared_vim_server.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'server/src/shared_vim_server.py') diff --git a/server/src/shared_vim_server.py b/server/src/shared_vim_server.py index a7f5201..9ec7fcd 100755 --- a/server/src/shared_vim_server.py +++ b/server/src/shared_vim_server.py @@ -57,14 +57,15 @@ class SharedVimServer(threading.Thread): raise _SharedVimServerError(str(e) + '\n' + _Args.DOCUMENT) self._users_text_manager = UsersTextManager(self._args.saved_filename) self._tcp_server = TCPServer(self._args.port, self._users_text_manager) - self._cmd_ui = CmdUI(self._users_text_manager, self._tcp_server, self) + self._cmd_ui = CmdUI(['load %s' % self._args.user_list_filename], + self._users_text_manager, self._tcp_server, self) log.info.interface = self._cmd_ui log.error.interface = self._cmd_ui def run(self): """Starts the program.""" self._tcp_server.start() - self._cmd_ui.start(['load %s' % self._args.user_list_filename]) + self._cmd_ui.start() self._cmd_ui.join() self._tcp_server.join() -- cgit v1.2.3