From de4539d73cf9e54746c274fe67ef2c251fe6bc0a Mon Sep 17 00:00:00 2001 From: ced <> Date: Mon, 12 Mar 2007 12:40:37 +0000 Subject: [PATCH] TOOLS: remove print bzr revid: ced-ced9690f693b0aa2151886b12bf288d7656822f8 --- bin/tools/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/tools/config.py b/bin/tools/config.py index b50526bdd24..76eab4d0510 100644 --- a/bin/tools/config.py +++ b/bin/tools/config.py @@ -32,6 +32,8 @@ import ConfigParser,optparse,os,sys class configmanager(object): def __init__(self, fname=None): + import netsvc + logger = netsvc.Logger() self.options = { 'verbose': False, 'interface': '', # this will bind the server to all interfaces @@ -113,7 +115,7 @@ class configmanager(object): (opt, args) = parser.parse_args() if (opt.translate_in or opt.translate_out) and (not opt.language or not opt.db_name): - print "Error: the i18n-import and i18n-export options cannot be used without the language (-l) and database (-d) options" + logger.notifyChannel("init", netsvc.LOG_ERROR, "the i18n-import and i18n-export options cannot be used without the language (-l) and database (-d) options") sys.exit(2) # place/search the config file on Win32 near the server installation @@ -192,7 +194,6 @@ class configmanager(object): p = ConfigParser.ConfigParser() p.add_section('options') for o in [opt for opt in self.options.keys() if opt not in ('version','language','translate_out','translate_in','init','update')]: - print o, self.options[o] p.set('options', o, self.options[o]) # try to create the directories and write the file