mxcubecore.HardwareObjects.UserTypeISPyBLims#
Classes
|
ISPyB user-based client |
- class mxcubecore.HardwareObjects.UserTypeISPyBLims.UserTypeISPyBLims(name)[source]#
Bases:
ISPyBAbstractLIMS
ISPyB user-based client
- get_proposals_by_user(user_name)[source]#
Returns a list with proposal dictionaries for login_id
- Proposal dictionary structure:
- {
“Proposal”: proposal, “Person”: , “Laboratory”:, “Session”:,
}
- login(loginID, psd, ldap_connection=None) LimsSessionManager [source]#
Login to LIMS, returns a list of Session objects for login_id
- Parameters:
login_id – username
password – password
create_session – True if session should be created by LIMS if it does not exist otherwise False
- Return type:
LimsSessionManager
- mxcubecore.HardwareObjects.UserTypeISPyBLims.suds_encode(self, /, encoding='utf-8', errors='strict')#
Decode the bytes using the codec registered for encoding.
- encoding
The encoding with which to decode the bytes.
- errors
The error handling scheme to use for the handling of decoding errors. The default is ‘strict’ meaning that decoding errors raise a UnicodeDecodeError. Other possible values are ‘ignore’ and ‘replace’ as well as any other name registered with codecs.register_error that can handle UnicodeDecodeErrors.