# HG changeset patch # User Sylvain Thénault # Date 1249656653 -7200 # Node ID b0e79a77ad67256c3ba1315fa4facc82c0cb406f # Parent 9439c61eb84ce823e47fef607e5a9847ea0844e9 [c-c] fix confirm diff -r 9439c61eb84c -r b0e79a77ad67 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()