Exemple #1
0
def get_entityset(entityset_id):
    return EntitySet.by_id(entityset_id)
Exemple #2
0
def get_entityset(entityset_id, action=Authz.READ):
    eset = obj_or_404(EntitySet.by_id(entityset_id))
    require(request.authz.can(eset.collection_id, action))
    return eset