Skip to content
Snippets Groups Projects

ENH: add resolve_value to Property

Merged Henrik tom Wörden requested to merge f-resolve-value into dev
1 file
+ 0
20
Compare changes
  • Side-by-side
  • Inline
+ 0
20
@@ -85,26 +85,6 @@ def new_record(record_type, name=None, description=None,
return r
def id_query(ids):
q = "FIND ENTITY WITH " + " OR ".join(["ID={}".format(id) for id in ids])
return execute_query(q)
def retrieve_entity_with_id(eid):
return execute_query("FIND ENTITY WITH ID={}".format(eid), unique=True)
def retrieve_entities_with_ids(entities):
collection = Container()
step = 20
for i in range(len(entities)//step+1):
collection.extend(id_query(entities[i*step:(i+1)*step]))
return collection
def get_type_of_entity_with(id_):
objs = retrieve_entities_with_ids([id_])
Loading