ProxyManager

Incomplete documentation - sorry!

Note

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

methods and attributes

class lib_openmolar.admin.db_tools.proxy_manager.ProxyManager[source]

Bases: object

A ProxyManager manages the openmolar-servers running and provides an interface for them to manage postgres.

__init__()[source]
PermissionError

alias of _PermissionError

add_postgres_user(*args, **kwargs)
advise(message, importance=None)[source]

advise function. normally overwritten

create_database(*args, **kwargs)[source]
create_demo_database()[source]

initiates the demo database

create_demo_user()[source]

create and grant privileges to om_demo

display_proxy_message()[source]

display the proxy message. this function should be overwritten by subclasses of ProxyManager. it is called whenever the client message should be refreshed.

drop_db(*args, **kwargs)[source]
forget_proxies()[source]
log(message)[source]

dummy function often overwritten

om_connect()[source]

connect to a 230 server

om_disconnect()[source]

disconnect from the 230 server

proxy_clients[source]

A list of ProxyClient

selected_client[source]

return the currently selected :doc:ProxyClient (by default this is item 0 of _proxy_clients)

selected_index = 0
selected_server[source]

return the currently selected proxy server

set_proxy_index(index)[source]

:param:index(int) choose which server to use

switch_server_user()[source]

this needs to be a function to change the user of the proxy should be overwritten by subclasses

truncate_db(*args, **kwargs)[source]
wait(*args)[source]

dummy function can overwritten

Table Of Contents

Previous topic

PopulateDemoDialog

Next topic

RelationalDatabaseTableViewer