[cleaning] use `cw_set` instead of `set_relations` stable
authorKatia Saurfelt <katia.saurfelt@logilab.fr>
Wed, 07 May 2014 10:59:19 +0200
branchstable
changeset 153 c29ba186a7db
parent 152 69e5736fdc1e
child 154 32d7a9f177dd
[cleaning] use `cw_set` instead of `set_relations` ``set_relations`` is now deprecated
hooks.py
--- a/hooks.py	Mon Jan 13 15:45:20 2014 +0100
+++ b/hooks.py	Wed May 07 10:59:19 2014 +0200
@@ -118,4 +118,4 @@
         for child, parent in closure:
             descendants = [p.eid for p in child.descendant_of]
             if not parent.eid in descendants:
-                child.set_relations(descendant_of=parent)
+                child.cw_set(descendant_of=parent)