[FIX]:AttributeError

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

bzr revid: nch@tinyerp.com-20110505102600-0zch200zndsdf383
This commit is contained in:
Naresh (OpenERP) 2011-05-05 15:56:00 +05:30
parent 906ef185c5
commit 89af288c3b
1 changed files with 4 additions and 1 deletions

View File

@ -159,7 +159,7 @@ def exec_pg_command(name, *args):
if not prog:
raise Exception('Couldn\'t find %s' % name)
args2 = (prog,) + args
return subprocess.call(args2)
def exec_pg_command_pipe(name, *args):
@ -1283,6 +1283,9 @@ def detect_server_timezone():
def get_server_timezone():
# timezone detection is safe in multithread, so lazy init is ok here
if config['timezone'] and \
not isinstance(config['timezone'], basestring):
return 'UTC'
if (not config['timezone']):
config['timezone'] = detect_server_timezone()
return config['timezone']