def get_all_project_owners(project_ids=None, **kwargs):
    """
        Get the project owner entries for all the requested projects.
        If the project_ids argument is None, return all the owner entries
        for ALL projects
    """


    projowner_qry = db.DBSession.query(ProjectOwner)

    if project_ids is not None:
       projowner_qry = projowner_qry.filter(ProjectOwner.project_id.in_(project_ids))

    project_owners_i = projowner_qry.all()

    return [JSONObject(project_owner_i) for project_owner_i in project_owners_i]