[migration] Don't ask_confirm to commit
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 13 Dec 2017 09:54:16 +0100
changeset 2926 9d8dcc178c64
parent 2925 5af6328d0b3d
child 2927 a94fa8b3611a
[migration] Don't ask_confirm to commit this is so annoying.
cubicweb_seda/migration/0.13.0_Any.py
--- a/cubicweb_seda/migration/0.13.0_Any.py	Wed Dec 13 09:53:46 2017 +0100
+++ b/cubicweb_seda/migration/0.13.0_Any.py	Wed Dec 13 09:54:16 2017 +0100
@@ -9,8 +9,8 @@
         for idx, child in enumerate(rql('Any X WHERE X {} P, P eid %(p)s'.format(rtype),
                                     {'p': peid}).entities()):
             child.cw_set(ordering=idx + 1)
-    commit()
+    commit(ask_confirm=False)
 
 rql('SET X ordering 1 WHERE X ordering NULL')
 
-commit()
+commit(ask_confirm=False)