def create_authinfo(computer, store=False):
    'Allow the current user to use the given computer.'
    from aiida.orm import AuthInfo
    authinfo = AuthInfo(computer=computer, user=get_current_user())
    if store:
        authinfo.store()
    return authinfo
Allow the current user to use the given computer.
def create_authinfo(computer, store=False):
    
    from aiida.orm import AuthInfo
    authinfo = AuthInfo(computer=computer, user=get_current_user())
    if store:
        authinfo.store()
    return authinfo