blivetgui.communication package

Submodules

blivetgui.communication.client module

class blivetgui.communication.client.BlivetGUIClient(server_socket)

Bases: object

id_dict = {}
quit()

Quit the client

remote_call(method, *args)

Call a method on server

remote_control(command, *args)

Send a control command to server

remote_do_it(show_progress_clbk)
remote_key(proxy_id, key)

Ask for a member of iterable proxy_id object

remote_method(proxy_id, method_name, args, kwargs)

Call remotely a method on proxy_id object

remote_next(proxy_id)

Ask for a next member of iterable proxy_id object

remote_param(proxy_id, param_name)

Get a param of proxy_id object

class blivetgui.communication.client.ClientProxyObject(client, proxy_id)

Bases: object

attrs = ('client', 'proxy_id')

blivetgui.communication.constants module

class blivetgui.communication.constants.ServerInitResponse

Bases: object

EXCEPTION = 3
RUNNING = 1
UNUSABLE = 2

blivetgui.communication.errors module

exception blivetgui.communication.errors.CommunicationError

Bases: Exception

exception blivetgui.communication.errors.ServerConnectionError

Bases: CommunicationError

blivetgui.communication.proxy_utils module

class blivetgui.communication.proxy_utils.ProxyDataContainer(**kwargs)

Bases: object

A picklable container for multiple objects similar to namedtuple

kwargs = None
class blivetgui.communication.proxy_utils.ProxyID

Bases: object

A simple picklable object with a unique ID

blivetgui.communication.server module

class blivetgui.communication.server.BlivetProxyObject(blivet_object, obj_id)

Bases: object

Class representing unpicklable objects

attrs = ('blivet_object', 'id')
is_method(param_name)
class blivetgui.communication.server.BlivetUtilsServer(request, client_address, server)

Bases: BaseRequestHandler

blivet_utils = None
handle()

Handle request

object_dict = {}
proxy_objects = []

Module contents