Fix error in 2.2.1 migration script stable
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 12 Dec 2011 15:22:28 +0100
branchstable
changeset 800 5902db684c1b
parent 799 c26ca1914724
child 801 af088cb19f61
Fix error in 2.2.1 migration script
migration/2.2.1_Any.py
--- a/migration/2.2.1_Any.py	Fri Nov 11 14:38:39 2011 +0100
+++ b/migration/2.2.1_Any.py	Mon Dec 12 15:22:28 2011 +0100
@@ -1,5 +1,5 @@
 
-for step in rql('RecipeStep RS WHERE RS target %(target)s', {'target': u'apycot.get_dependancies'}):
+for step in rql('RecipeStep RS WHERE RS target %(target)s', {'target': u'apycot.get_dependancies'}).entities():
     step.set_attributes(target=u'apycot.get_dependencies')
 
 commit()