예제 #1
0
def get_login_parameters(biobox_type):
    """
    Determines if the biobox type is currently supported for login. Returns
    a list of parameters for mounting data if it is.
    """
    params = yaml.load(asset.get_asset_file_contents("login_parameters.yml"))
    if biobox_type not in params:
        return None
    else:
        return params[biobox_type]
예제 #2
0
def get_login_parameters(biobox_type):
    """
    Determines if the biobox type is currently supported for login. Returns
    a list of parameters for mounting data if it is.
    """
    params = yaml.load(asset.get_asset_file_contents('login_parameters.yml'))
    if biobox_type not in params:
        return None
    else:
        return params[biobox_type]
예제 #3
0
def err_message(msg_key, locals_):
    errors = yaml.load(asset.get_asset_file_contents('error_messages.yml'))
    return errors[msg_key].format(**locals_)
예제 #4
0
def err_message(msg_key, locals_):
    errors = yaml.load(asset.get_asset_file_contents('error_messages.yml'))
    return errors[msg_key].format(**locals_)