server/__init__.py
branchstable
changeset 4837 54969eec48eb
parent 4759 af2e6c377c71
child 4845 dc351b96f596
equal deleted inserted replaced
4836:3e3c4917e94e 4837:54969eec48eb
   143             sqlcnx.rollback()
   143             sqlcnx.rollback()
   144     # schema entities and relations tables
   144     # schema entities and relations tables
   145     # can't skip entities table even if system source doesn't support them,
   145     # can't skip entities table even if system source doesn't support them,
   146     # they are used sometimes by generated sql. Keeping them empty is much
   146     # they are used sometimes by generated sql. Keeping them empty is much
   147     # simpler than fixing this...
   147     # simpler than fixing this...
   148     if sqlcnx.logged_user != source['db-user']:
   148     schemasql = sqlschema(schema, driver)
   149         schemasql = sqlschema(schema, driver, user=source['db-user'])
   149     #skip_entities=[str(e) for e in schema.entities()
   150     else:
   150     #               if not repo.system_source.support_entity(str(e))])
   151         schemasql = sqlschema(schema, driver)
       
   152         #skip_entities=[str(e) for e in schema.entities()
       
   153         #               if not repo.system_source.support_entity(str(e))])
       
   154     sqlexec(schemasql, execute, pbtitle=_title)
   151     sqlexec(schemasql, execute, pbtitle=_title)
   155     sqlcursor.close()
   152     sqlcursor.close()
   156     sqlcnx.commit()
   153     sqlcnx.commit()
   157     sqlcnx.close()
   154     sqlcnx.close()
   158     session = repo.internal_session()
   155     session = repo.internal_session()