MCPcopy Create free account
hub / github.com/alephdata/aleph / get_entityset

Function get_entityset

aleph/views/util.py:114–117  ·  view source on GitHub ↗
(entityset_id, action=Authz.READ)

Source from the content-addressed store, hash-verified

112
113
114def get_entityset(entityset_id, action=Authz.READ):
115 eset = obj_or_404(EntitySet.by_id(entityset_id))
116 require(request.authz.can(eset.collection_id, action))
117 return eset
118
119
120def get_nested(data, obj_field, id_field):

Callers 9

bulkFunction · 0.90
viewFunction · 0.90
updateFunction · 0.90
deleteFunction · 0.90
entities_indexFunction · 0.90
entities_updateFunction · 0.90
item_indexFunction · 0.90
item_updateFunction · 0.90
get_entityset_idFunction · 0.90

Calls 4

obj_or_404Function · 0.85
requireFunction · 0.85
canMethod · 0.80
by_idMethod · 0.45

Tested by

no test coverage detected