[migration] don't ask confirm here 3.5
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 21 Aug 2009 14:56:15 +0200
branch3.5
changeset 2956 6a57c0be0e58
parent 2955 6bb5025c9fc7
child 2957 2daabf4c646e
[migration] don't ask confirm here
server/migractions.py
--- a/server/migractions.py	Fri Aug 21 14:52:07 2009 +0200
+++ b/server/migractions.py	Fri Aug 21 14:56:15 2009 +0200
@@ -918,14 +918,14 @@
         if not isinstance(wfof, (list, tuple)):
             wfof = (wfof,)
         for etype in wfof:
-            rset = self.rqlexec('SET X workflow_of ET '
-                                'WHERE X eid %(x)s, ET name %(et)s',
-                                {'x': wf.eid, 'et': etype}, 'x')
+            rset = self.rqlexec(
+                'SET X workflow_of ET WHERE X eid %(x)s, ET name %(et)s',
+                {'x': wf.eid, 'et': etype}, 'x', ask_confirm=False)
             assert rset, 'unexistant entity type %s' % etype
             if default:
-                rset = self.rqlexec('SET ET default_workflow X '
-                                    'WHERE X eid %(x)s, ET name %(et)s',
-                                    {'x': wf.eid, 'et': etype}, 'x')
+                self.rqlexec(
+                    'SET ET default_workflow X WHERE X eid %(x)s, ET name %(et)s',
+                    {'x': wf.eid, 'et': etype}, 'x', ask_confirm=False)
         if commit:
             self.commit()
         return wf