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

Base class for all Param classes. A Param is a descriptor for storing data, which means that a single Param instance will manage the data values for multiple instances of the class that owns it. Example:

class Coord(CompoundParam):
    x: int
    y: int

An instance of the Coord class can be created normally, and Params can be accessed as normal attributes:

coord = Coord()
coord.x = 4

When a Param value is set, the valueChanged signal is emitted. Params can be serialized and deserialized to and from JSON. Params can also be nested:

class Atom(CompoundParam):
    coord: Coord
    element: str
password: str

Base class for all Param classes. A Param is a descriptor for storing data, which means that a single Param instance will manage the data values for multiple instances of the class that owns it. Example:

class Coord(CompoundParam):
    x: int
    y: int

An instance of the Coord class can be created normally, and Params can be accessed as normal attributes:

coord = Coord()
coord.x = 4

When a Param value is set, the valueChanged signal is emitted. Params can be serialized and deserialized to and from JSON. Params can also be nested:

class Atom(CompoundParam):
    coord: Coord
    element: str
passwordChanged

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

passwordReplaced

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

usernameChanged

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

usernameReplaced

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

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/savedbuilds/2024-4/NB/build-117/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