[IMP] don't manually split'n load base.sql, cr.execute has no problem eating a whole file (as far as I can see)
bzr revid: xmo@openerp.com-20100921130657-bkqqyscgzmryhap1
This commit is contained in:
parent
47ff957f42
commit
773839ed75
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue