schrodinger.application.jobserver_cert_gui_dir.registration_dialogs module

class schrodinger.application.jobserver_cert_gui_dir.registration_dialogs.RegistrationInput(*args, _param_type=<object object>, **kwargs)

Bases: schrodinger.models.parameters.CompoundParam

username: str

A parameter of the class.

password: str

A parameter of the class.

passwordChanged

A pyqtSignal emitted by instances of the class.

passwordReplaced

A pyqtSignal emitted by instances of the class.

usernameChanged

A pyqtSignal emitted by instances of the class.

usernameReplaced

A pyqtSignal emitted by instances of the class.

class schrodinger.application.jobserver_cert_gui_dir.registration_dialogs.ServerRegistrationMixin

Bases: object

A mixin for providing shared logic for server registration GUIs.

Subclasses must also inherit from mappers.MapperMixin.

model_class

alias of schrodinger.application.jobserver_cert_gui_dir.registration_dialogs.RegistrationInput

defineMappings()
getSignalsAndSlots(model)
onUsernameOrPasswordChanged()
class schrodinger.application.jobserver_cert_gui_dir.registration_dialogs.RegistrationPanel(*args, **kwargs)

Bases: schrodinger.application.jobserver_cert_gui_dir.registration_dialogs.ServerRegistrationMixin, schrodinger.ui.qt.basewidgets.Panel

A panel to register for the certification of job server on a host address. The panel allows user to choose from already configured set of server addresses or register for a new server address as well.

ui_module = <module 'schrodinger.application.jobserver_cert_gui_dir.registration_panel_ui' from '/scr/buildbot/builds/core-suite-ci/core-suite-ci/build/internal/lib/python3.11/site-packages/schrodinger/application/jobserver_cert_gui_dir/registration_panel_ui.py'>
initSetOptions()

Suggested subclass use: set instance variables, excluding layouts and subwidgets. Also use here to (optionally) apply the legacy stylesheet spacing settings (PANEL-19101).

initSetUp()

Creates widget from ui and stores it ui_widget.

Suggested subclass use: create and initialize subwidgets, and connect signals.

hideDoNotShowCheckbox()
onUsernameOrPasswordChanged()

Enable the register button only when both username and password have text filled.

categorizeServers()

Categorize all registered servers into the four categories of registered, invalid registration, unregistered and unavailable.

initServersCombo()

Initialize the servers combobox to contain the servers in the order of invalid, unavailable, unregistered and registered.

onRegisterClicked()

Register the user with the provided credentials. Show the appropriate dialog box as per whether registration was successful or not.

register()

Register with a certificate for the current server address and user credentials.

See cert.get_cert for raised exceptions.

getCurrServerAddress()

Construct and return the current server address.

Return type

string