# HG changeset patch # User Katia Saurfelt <katia.saurfelt@logilab.fr> # Date 1489481560 -3600 # Tue Mar 14 09:52:40 2017 +0100 # Node ID 88bf524c4346cea2b229d296108f3fd42770ac22 # Parent 9e877d975a94509f3c6a22e9e0d7d033e0a56589 [hook] cleaning: `parent` arg is no more used diff --git a/hooks.py b/hooks.py --- a/hooks.py +++ b/hooks.py @@ -99,10 +99,6 @@ # kwargs below must be container data. kwargs['id'] = json['eid'] kwargs['doc_type'] = getattr(serializer, 'doc_type', json['cw_etype']) - if json.get('parent'): - kwargs['parent'] = json.pop('parent') - else: # TODO only for types that have parents - kwargs['routing'] = entity.eid try: # TODO option for async ? es.index(**kwargs)