AdminMainWindow

Author:Neil Wallace (neil@openmolar.co)
Release:2.0.906~hg207

This class is the MainWindow for the admin application.

../../../_images/admin1.png

methods and attributes

class lib_openmolar.admin.qt4.admin_gui.AdminMainWindow(parent=None)[source]

Bases: lib_openmolar.common.qt4.postgres.postgres_mainwindow.PostgresMainWindow, lib_openmolar.admin.db_tools.proxy_manager.ProxyManager

This class is the core application.

__init__(parent=None)[source]
CONN_CLASS

alias of AdminConnection

add_pg_user()

raise a dialog and get a username and password to add as a postgres user

central_widget[source]

overwrite the property of the Base Class

chosen_pg_session[source]
closeEvent(event=None)[source]

re-implement the close event of QtGui.QMainWindow, and check the user really meant to do this.

configure_db(dbname)

raise a dialog, and provide database management tools

confirmDataOverwrite[source]

check that the user is prepared to lose any changes

connect_signals()[source]

set up signals/slots

create_demo_database()[source]

initiates the demo database

create_new_database()[source]

raise a dialog, then create a database with the chosen name

display_proxy_message()[source]

display the proxy message. overwrites ProxyManager function

end_pg_sessions(shutting_down=False)[source]

overwrite baseclass function

load_template()[source]

change the default template for a new database

log = <logging.Logger object at 0x4e9c450>
manage_db(dbname)[source]

raise a dialog, and provide database management tools

manage_pg_users(dbname)

raise a dialog, and provide database management tools

manage_shortcut(url)[source]

the admin browser (which commonly contains messages from the openmolar_server) is connected to this slot. when a url is clicked it finds it’s way here for management. unrecognised signals are send to the user via the notification.

new_session_widget[source]

overwrite the property of the Base Class

om_disconnect()[source]
populate_demo()[source]
remove_pg_user()

ask for confirmation, then remove the user

save_template()[source]

save the template, so it can be re-used in future

show_about()[source]

raise a dialog showing version info etc.

show_help()[source]

todo - this is the same as show_about

show_log()[source]

toggle the state of the log dock window

switch_server_user()[source]

to change the user of the proxy up to admin overwrites ProxyManager function

Table Of Contents

Previous topic

AdminMain

Next topic

AdminSessionWidget