From: Stephane Wirtel Date: Tue, 25 Nov 2008 11:25:22 +0000 (+0100) Subject: [FIX] Remove the password for the dump and the restore of database X-Git-Tag: 5.0.0-rc1-addons~60 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=be08323c6207f01f0d1f1c20ecc8ee14e4f7d790;p=odoo%2Fodoo.git [FIX] Remove the password for the dump and the restore of database bzr revid: stephane@tinyerp.com-20081125112522-iglichvetklo3hyv --- diff --git a/bin/service/web_services.py b/bin/service/web_services.py index 9128ca1..2c6d2c1 100644 --- a/bin/service/web_services.py +++ b/bin/service/web_services.py @@ -163,11 +163,6 @@ class db(netsvc.Service): security.check_super(password) logger = netsvc.Logger() - if tools.config['db_password']: - logger.notifyChannel("web-service", netsvc.LOG_ERROR, - 'DUMP DB: %s doesn\'t work with password' % (db_name,)) - raise Exception, "Couldn't dump database with password" - cmd = ['pg_dump', '--format=c'] if tools.config['db_user']: cmd.append('--username=' + tools.config['db_user']) @@ -198,11 +193,6 @@ class db(netsvc.Service): 'RESTORE DB: %s already exists' % (db_name,)) raise Exception, "Database already exists" - if tools.config['db_password']: - logger.notifyChannel("web-service", netsvc.LOG_ERROR, - 'RESTORE DB: %s doesn\'t work with password' % (db_name,)) - raise Exception, "Couldn't restore database with password" - db = sql_db.db_connect('template1', serialize=1) db.truedb.autocommit() cr = db.cursor()