# HG changeset patch # User Sylvain Thénault # Date 1250859375 -7200 # Node ID 6a57c0be0e58684716c674747a1053698450d1bc # Parent 6bb5025c9fc774180862518baafe5d5df8cc3cf3 [migration] don't ask confirm here diff -r 6bb5025c9fc7 -r 6a57c0be0e58 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