server/__init__.py
changeset 3536 f6c9a5df80fb
parent 3530 7dfe9d2c0fe7
child 3647 2941f4a0aab9
child 3699 20ba545e00e1
equal deleted inserted replaced
3524:a3431f4e2f40 3536:f6c9a5df80fb
   145     sqlexec(schemasql, execute, pbtitle=_title)
   145     sqlexec(schemasql, execute, pbtitle=_title)
   146     # install additional driver specific sql files
   146     # install additional driver specific sql files
   147     for fpath in glob(join(CW_SOFTWARE_ROOT, 'schemas', '*.sql.%s' % driver)):
   147     for fpath in glob(join(CW_SOFTWARE_ROOT, 'schemas', '*.sql.%s' % driver)):
   148         print '-> installing', fpath
   148         print '-> installing', fpath
   149         sqlexec(open(fpath).read(), execute, False, delimiter=';;')
   149         sqlexec(open(fpath).read(), execute, False, delimiter=';;')
   150     for directory in config.cubes_path():
   150     for directory in reversed(config.cubes_path()):
   151         for fpath in glob(join(directory, 'schema', '*.sql.%s' % driver)):
   151         for fpath in glob(join(directory, 'schema', '*.sql.%s' % driver)):
   152             print '-> installing', fpath
   152             print '-> installing', fpath
   153             sqlexec(open(fpath).read(), execute, False, delimiter=';;')
   153             sqlexec(open(fpath).read(), execute, False, delimiter=';;')
   154     sqlcursor.close()
   154     sqlcursor.close()
   155     sqlcnx.commit()
   155     sqlcnx.commit()