@read_session
def list_identities(session=None, **kwargs):
    '\n    Returns a list of all identities.\n\n    :param session: The database session in use.\n\n    returns: A list of all identities.\n    '
    id_list = []
    for id in session.query(models.Identity).order_by(models.Identity.identity):
        id_list.append((id.identity, id.identity_type))
    return id_list
Returns a list of all identities.

:param session: The database session in use.

returns: A list of all identities.
@read_session
def list_identities(session=None, **kwargs):
    '\n    Returns a list of all identities.\n\n    :param session: The database session in use.\n\n    returns: A list of all identities.\n    '
    id_list = []
    for id in session.query(models.Identity).order_by(models.Identity.identity):
        id_list.append((id.identity, id.identity_type))
    return id_list