Merge lp:~openerp-dev/openobject-server/trunk-bug-1100721-Sejal into lp:openobject-server

Proposed by Sejal Bhut(OpenERP Trainee)
Status: Merged
Merged at revision: 4881
Proposed branch: lp:~openerp-dev/openobject-server/trunk-bug-1100721-Sejal
Merge into: lp:openobject-server
Diff against target: 25 lines (+3/-3)
1 file modified
openerp/service/db.py (+3/-3)
To merge this branch: bzr merge lp:~openerp-dev/openobject-server/trunk-bug-1100721-Sejal
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+167012@code.launchpad.net

Description of the change

Hello,

I have fixed the issue of Backup Database

Thanks,
sejal

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'openerp/service/db.py'
2--- openerp/service/db.py 2013-04-04 13:07:04 +0000
3+++ openerp/service/db.py 2013-06-03 10:06:48 +0000
4@@ -197,7 +197,7 @@
5 return True
6
7 @contextlib.contextmanager
8-def _set_pg_password_in_environment(self):
9+def _set_pg_password_in_environment():
10 """ On systems where pg_restore/pg_dump require an explicit
11 password (i.e. when not connecting via unix sockets, and most
12 importantly on Windows), it is necessary to pass the PG user
13@@ -213,10 +213,10 @@
14 SaaS (giving SaaS users the super-admin password is not a good idea
15 anyway)
16 """
17- if os.environ.get('PGPASSWORD') or not tools.config['db_password']:
18+ if os.environ.get('PGPASSWORD') or not openerp.tools.config['db_password']:
19 yield
20 else:
21- os.environ['PGPASSWORD'] = tools.config['db_password']
22+ os.environ['PGPASSWORD'] = openerp.tools.config['db_password']
23 try:
24 yield
25 finally: