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
-
checkHost
()¶ Checks the host field, adds http protocol if none, and removes any trailing ‘/’
-
connectToLD
()¶ Returns False if an error occurred.
Returns: Whether to continue to the next panel. Return type: bool
-
definePanelSettings
()¶ See parent class for docstring
-
initSetOptions
()¶
-
initSetUp
()¶
-
onProjectClosed
()¶ If current project is closed, then all saved credentials will be reset.
-
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*’
-
setDefaults
()¶
-
setupLDClient
()¶ Fetches client.py from the given host.
-
-
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.
get_host
()¶
-
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_username
()¶
-
schrodinger.application.livedesign.login.
panel
()¶
-
schrodinger.application.livedesign.login.
required_login_info_set
()¶ Checks and returns whether the required login information is set in order to setup LDClient