schrodinger.application.livedesign.login module¶
Login page of the Maestro LiveDesign Export GUI.
Copyright Schrodinger, LLC. All rights reserved.
-
class
schrodinger.application.livedesign.login.LiveDesignLoginDialog(*args, **kwargs)¶ Bases:
schrodinger.ui.qt.appframework2.settings.SettingsPanelMixin,schrodinger.ui.qt.basewidgets.BaseWidget-
initSetOptions()¶ Suggested subclass use: set instance variables, excluding layouts and subwidgets.
-
initSetUp()¶ Creates widget from
uiand stores itui_widget.Suggested subclass use: create and initialize subwidgets, and connect signals.
-
setDefaults()¶
-
definePanelSettings()¶ See parent class for docstring
-
connectToLD()¶ Returns False if an error occurred.
Returns: Whether to continue to the next panel. Return type: bool
-
checkHost()¶ Checks the host field, adds http protocol if none, and removes any trailing ‘/’
-
setupLDClient()¶ Fetches client.py from the given host.
-
removePreviousExistingFiles(name)¶ This helper method removed all files and directories matching the given name in the schrodinger tmp directory.
Parameters: name (str) – to match any files or directories in the form of ‘name*’
-
onProjectClosed()¶ If current project is closed, then all saved credentials will be reset.
-
-
schrodinger.application.livedesign.login.required_login_info_set()¶ Checks and returns whether the required login information is set in order to setup LDClient
-
schrodinger.application.livedesign.login.get_ld_client_and_models()¶ Returns a new instance of ldclient.client.LDClient() and ld_client.models using the login credentials and the host server set in the Live Design login panel. If the instantiation was unsuccessful, the first object in the tuple will hold the error msg - otherwise, it will hold an empty str.
Returns: tuple of error msg str, new instance of the LD Client, and the ldclient.models module Return type: (str, ldclient.client.LDClient(), ldclient.models)
-
schrodinger.application.livedesign.login.get_host()¶
-
schrodinger.application.livedesign.login.get_username()¶
-
schrodinger.application.livedesign.login.get_LD_version(ld_client)¶ Given an LDClient instance, return the LD version number.
Parameters: ld_client ( ld_client.LDClient) – instance of the LDClientReturns: the version number of the LD server - ex: 8.0 Return type: float
-
schrodinger.application.livedesign.login.panel()¶