[c-c] fix confirm
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 07 Aug 2009 16:50:53 +0200
changeset 2743 b0e79a77ad67
parent 2742 9439c61eb84c
child 2744 66048c669933
[c-c] fix confirm
cwctl.py
--- a/cwctl.py	Fri Aug 07 16:50:29 2009 +0200
+++ b/cwctl.py	Fri Aug 07 16:50:53 2009 +0200
@@ -103,7 +103,7 @@
         for appid in args:
             if askconfirm:
                 print '*'*72
-                if not confirm('%s instance %r ?' % (self.name, appid)):
+                if not ASK.confirm('%s instance %r ?' % (self.name, appid)):
                     continue
             self.run_arg(appid)
 
@@ -137,7 +137,7 @@
         for appid in args:
             if askconfirm:
                 print '*'*72
-                if not confirm('%s instance %r ?' % (self.name, appid)):
+                if not ASK.confirm('%s instance %r ?' % (self.name, appid)):
                     continue
             if forkcmd:
                 status = system('%s %s' % (forkcmd, appid))
@@ -307,8 +307,8 @@
         errors = config.i18ncompile(langs)
         if errors:
             print '\n'.join(errors)
-            if not confirm('error while compiling message catalogs, '
-                           'continue anyway ?'):
+            if not ASK.confirm('error while compiling message catalogs, '
+                               'continue anyway ?'):
                 print 'creation not completed'
                 return
         # create the additional data directory for this instance
@@ -487,7 +487,7 @@
         for appid in args:
             if askconfirm:
                 print '*'*72
-                if not confirm('%s instance %r ?' % (self.name, appid)):
+                if not ASK.confirm('%s instance %r ?' % (self.name, appid)):
                     continue
             self.stop_instance(appid)
             stopped.append(appid)
@@ -676,8 +676,8 @@
         errors = config.i18ncompile(langs)
         if errors:
             print '\n'.join(errors)
-            if not confirm('Error while compiling message catalogs, '
-                           'continue anyway ?'):
+            if not ASK.confirm('Error while compiling message catalogs, '
+                               'continue anyway ?'):
                 print '-> migration not completed.'
                 return
         mih.shutdown()