schrodinger.application.livedesign.login_gui2 module

class schrodinger.application.livedesign.login_gui2.AuthenticationMode

Bases: IntEnum

CREDENTIALS = 0
SINGLE = 1
classmethod getItemFromInt(value: int)
Returns:

the enum value corresponding to the supplied integer, if any

class schrodinger.application.livedesign.login_gui2.LDLoginPanelModel(*args, _param_type=<object object>, **kwargs)

Bases: CompoundParam

authentication_mode: AuthenticationMode

A parameter of the class.

credentials_host: str

A parameter of the class.

single_sign_on_host: str

A parameter of the class.

username: str

A parameter of the class.

password: str

A parameter of the class.

A parameter of the class.

token: str

A parameter of the class.

error_msg: str

A parameter of the class.

getActiveHost() str
Returns:

the host value associated with the selected authentication mode

getUsername() Optional[str]
Returns:

the username value if credentials mode is selected, otherwise None

getPassword() Optional[str]
Returns:

the password value if credentials mode is selected, otherwise None

getToken() Optional[str]
Returns:

the token value if single sign-on mode is selected, otherwise None

authentication_modeChanged

A pyqtSignal emitted by instances of the class.

authentication_modeReplaced

A pyqtSignal emitted by instances of the class.

credentials_hostChanged

A pyqtSignal emitted by instances of the class.

credentials_hostReplaced

A pyqtSignal emitted by instances of the class.

error_msgChanged

A pyqtSignal emitted by instances of the class.

error_msgReplaced

A pyqtSignal emitted by instances of the class.

passwordChanged

A pyqtSignal emitted by instances of the class.

passwordReplaced

A pyqtSignal emitted by instances of the class.

single_sign_on_hostChanged

A pyqtSignal emitted by instances of the class.

single_sign_on_hostReplaced

A pyqtSignal emitted by instances of the class.

tokenChanged

A pyqtSignal emitted by instances of the class.

tokenReplaced

A pyqtSignal emitted by instances of the class.

token_linkChanged

A pyqtSignal emitted by instances of the class.

token_linkReplaced

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.livedesign.login_gui2.LDLoginPanel(*args, **kwargs)

Bases: Panel

Panel for logging into LiveDesign using standard credentials or SAML token.

ui_module = <module 'schrodinger.application.livedesign.login2_ui' from '/scr/buildbot/builds/core-suite-build/core-suite-build/build/internal/lib/python3.11/site-packages/schrodinger/application/livedesign/login2_ui.py'>
model_class

alias of LDLoginPanelModel

APPLY_LEGACY_STYLESHEET = False
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.

initSetDefaults()

@overrides: widgetmixins.InitMixin

initFinalize()

Suggested subclass use: perform any remaining initialization.

defineMappings()

Override this in the subclass to define mappings. Should return a list of tuples [(<target>, <param>)]. Targets can be:

  1. a basic widget, like QLineEdit or QComboBox

  2. a custom object that inherits MapperMixin or TargetMixin

  3. a TargetSpec instance

  4. a slot

For common widgets, standard signals and getter/setter methods will be used, as defined in mappers._get_default_access_names().

For more fine-grained custom control, instantiate a TargetSpec object, which allows custom setters, getters, and signals to be specified.

Supplying a slot as the first element of the tuple is equivalent to providing TargetSpec(slot=my_slot).

Note that all target slots are triggered on setModel() as well as in response to the specified signal.

The param is an abstract param reference, e.g. MyModel.my_param.

Example:

def defineMappings(self):
    combo = self.style_combo
    return [(self.name_le, MyModel.name),
            (TargetSpec(combo,
                    getter=combo.currentText,
                    setter=combo.setCurrentText), MyModel.style),
            (self.coord_widget, MyModel.coord),
            (self._onASLTextChanged, MyModel.asl_text)]
connectToLD()
schrodinger.application.livedesign.login_gui2.login_using_last_session_credentials()

Attempt to access last session’s login credentials to log into livedesign.

schrodinger.application.livedesign.login_gui2.log_into_livedesign() bool

Log into livedesign. Login attempt is made in the following order:

  1. Credential cached in the session.

  2. Credential cached in the last session.

  3. Login via the GUI.

On successful connection show livedesign entry point in favorite bar.

Returns:

Whether connected to a LiveDesign server.

schrodinger.application.livedesign.login_gui2.show_ld_connector()

Show livedesign entry point in favorite toolbar.

schrodinger.application.livedesign.login_gui2.panel()

This function was used when user want to open login panel by executing this file. This method does not notify maestro about LiveDesign entry point state update.