cwctl.py
changeset 2743 b0e79a77ad67
parent 2654 6512522860aa
child 2790 968108e16066
child 2905 b23bbb31368c
--- 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()