ProxyClient

Incomplete documentation - sorry!

Note

Neil - please put some data in technical/class_headings/ProxyClient.rst

methods and attributes

class lib_openmolar.common.connect.proxy_client.ProxyClient(connection230_data, user=None)[source]

Bases: object

This class provides functionality for communicating with the 230 server. (the openmolar xmlrpc server)

__init__(connection230_data, user=None)[source]

:param:host(string) :param:port(int) :param:user ProxyUser or None

ConnectionError

alias of _ConnectionError

PermissionError

alias of _PermissionError

brief_name[source]
call(func, *args)

a wrapper to call server functions. this is useful as it automatically unpickles the payloads this is the equivalent of self.server.func(args)

returns an object of type PayLoad (or a DuckType thereof)

connect()[source]

attempt to connect to xmlrpc_server, and return this object raise a ConnectionError if no success.

get_management_functions()

get a list of management functions from the omserver (ie server side functions performed by user openmolar such as drop db, truncate db etc..) these are passed to a dialog for user interaction.

get_pg_user_list()

get a list of users know to the pg server

get_pg_user_perms(user, dbname)

get a list of users know to the pg server

grant_pg_user_perms(user, dbname, admin=False, client=False)

add user to group

host[source]
html[source]

poll the openmolar xml_rpc server for messages

is_connected[source]

A boolean value stating whether the client is connected (to a proxy server)

is_connecting[source]

A boolean stating whether the connection is in progress (happens in a thread)

poll the openmolar xml_rpc server for messages

name[source]
pre_execution_warning(func_name)
server[source]

a bridge to remote functions on the XMLRPC server

set_user(user)[source]
use_default_user()

Table Of Contents

Previous topic

ProgressWidget

Next topic

ProxyUser