From d74abc30a75b47730a2be8e4ae28f6523edbda1e Mon Sep 17 00:00:00 2001 From: Antoine Millet Date: Mon, 27 Dec 2010 11:54:53 +0100 Subject: [PATCH] Added proxy_client to the client handler. Allow to proxify a call to a client from the server. --- ccserver/handlers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ccserver/handlers.py b/ccserver/handlers.py index b6203d4..e59b217 100644 --- a/ccserver/handlers.py +++ b/ccserver/handlers.py @@ -208,6 +208,10 @@ class ClientHandler(OnlineCCHandler): ''' self._server.conf.remove_account(login) + @pure + def proxy_client(self, login, command, *args, **kwargs): + client = self._server.get_connection(login) + return client.connection.call(command, *args, **kwargs) class AuthenticationError(Exception): pass -- GitLab