diff options
| author | rpa (Open ERP) <rpa@tinyerp.com> | 2010-09-21 18:51:34 +0530 |
|---|---|---|
| committer | rpa (Open ERP) <rpa@tinyerp.com> | 2010-09-21 18:51:34 +0530 |
| commit | bf566331ea9cde73cc925b9d00bf307eecf607e9 (patch) | |
| tree | f40167394a4e97fe4ad8d3f477b6a961e68d7492 /bin/tools/misc.py | |
| parent | 2889dd48cfddb7a21e1d15ac768c9a01957242ae (diff) | |
| parent | 6af5da11d14cdb41d3454ab9b395f86e6477fc93 (diff) | |
[MERGE]: Merge with lp:openobject-server
bzr revid: rpa@tinyerp.com-20100921132134-eb51fo5ueaoqxy12
Diffstat (limited to 'bin/tools/misc.py')
| -rw-r--r-- | bin/tools/misc.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/tools/misc.py b/bin/tools/misc.py index 2baf7c0c227..1256adb46f6 100644 --- a/bin/tools/misc.py +++ b/bin/tools/misc.py @@ -62,9 +62,7 @@ _logger = logging.getLogger('tools') def init_db(cr): import addons f = addons.get_module_resource('base', 'base.sql') - for line in file_open(f).read().split(';'): - if (len(line)>0) and (not line.isspace()): - cr.execute(line) + cr.execute(file_open(f).read()) cr.commit() for i in addons.get_modules(): |
