[FIX] web_services: set PGPASSWORD in environment only when db_password is set in...
authorOlivier Dony <odo@openerp.com>
Mon, 18 Mar 2013 14:15:32 +0000 (15:15 +0100)
committerOlivier Dony <odo@openerp.com>
Mon, 18 Mar 2013 14:15:32 +0000 (15:15 +0100)
commit8d6e91219fa1eaab7616da10ae82c71fa9c71425
tree3a19bb4272b53f878840ebde96f698c4e7ff2699
parent5cdc6aa4a129fd4b18697d9190af00d2aebd3eb2
[FIX] web_services: set PGPASSWORD in environment only when db_password is set in the config

This prevents an error when trying to set an
environment variable to `False`, and is the
second part of the regression introduced in
revision 4424. See previous partial fix
at revision 4893

lp bug: https://launchpad.net/bugs/1155523 fixed

bzr revid: odo@openerp.com-20130318141532-m2xsahh5u5pi5bth
openerp/service/web_services.py