Loading ccserver/handlers.py +1 −9 Original line number Diff line number Diff line Loading @@ -14,13 +14,8 @@ def listed(func): class CCHandler(RpcHandler): ''' Base class for handlers of CloudControl server. :cvar role_name: the name of the role binded to the handler :type role_name: str or None is not applicable ''' role_name = None def __init__(self, server): self._server = server Loading Loading @@ -53,16 +48,13 @@ class HypervisorHandler(OnlineCCHandler): ''' Handler binded to 'node' role. ''' role_name = 'hypervisor' pass class ClientHandler(OnlineCCHandler): ''' Handler binded to 'cli' role. ''' role_name = 'client' @pure @listed def list(self, query): Loading Loading
ccserver/handlers.py +1 −9 Original line number Diff line number Diff line Loading @@ -14,13 +14,8 @@ def listed(func): class CCHandler(RpcHandler): ''' Base class for handlers of CloudControl server. :cvar role_name: the name of the role binded to the handler :type role_name: str or None is not applicable ''' role_name = None def __init__(self, server): self._server = server Loading Loading @@ -53,16 +48,13 @@ class HypervisorHandler(OnlineCCHandler): ''' Handler binded to 'node' role. ''' role_name = 'hypervisor' pass class ClientHandler(OnlineCCHandler): ''' Handler binded to 'cli' role. ''' role_name = 'client' @pure @listed def list(self, query): Loading