migration/2.2.1_Any.py
author Julien Cristau <julien.cristau@logilab.fr>
Thu, 24 Jul 2014 14:39:57 +0200
changeset 1561 ea7b1e630c1b
parent 802 e08097e621ee
permissions -rw-r--r--
Silence cubicweb 3.16 deprecation warnings set_attributes/set_relations became cw_set.


for step in rql('RecipeStep RS WHERE RS target %(target)s', {'target': u'apycot.get_dependancies'}).entities():
    step.cw_set(target=u'apycot.get_dependencies')

rql('DELETE Recipe R WHERE R name IN ("apycot.recipe.debian", "apycot.recipe.experimental")')

commit()