def update(person): if type(person) == list: return list(map(lambda p: update(p), person)) id = define_id(person) entity = Datastore.update(KIND, person, id=id) logger.debug('Update person %s', id) return Datastore.entity_to_dict(entity)
def update(detail): if type(detail) == list: return list(map(lambda d: update(d), detail)) id = define_id(detail) entity = Datastore.update(KIND, detail, id=id) logger.debug('Update detail %s', id) return Datastore.entity_to_dict(entity)
def update(cluster): if type(cluster) == list: return list(map(lambda c: update(c), cluster)) id = define_id(cluster) entity = Datastore.update(KIND, cluster, id=id) logger.debug('Update cluster %s', id) return Datastore.entity_to_dict(entity)