'Get a representation dict for a list of pe_ids
@param entities: the pe_ids of the entities'

def _entity_represent(self, entities):

    T = current.T
    pe_ids = [e for e in entities if ((e is not None) and (e != 0))]
    if pe_ids:
        representation = current.s3db.pr_get_entities(pe_ids=pe_ids)
    else:
        representation = Storage()
    representation[None] = T('Default    Realm')
    representation[0] = T('All    Entities')
    return representation
