diff -r 3b79a0fc91db -r c5aec27c1bf7 server/__init__.py --- a/server/__init__.py Mon Mar 08 09:51:29 2010 +0100 +++ b/server/__init__.py Mon Mar 08 17:57:29 2010 +0100 @@ -145,12 +145,9 @@ # can't skip entities table even if system source doesn't support them, # they are used sometimes by generated sql. Keeping them empty is much # simpler than fixing this... - if sqlcnx.logged_user != source['db-user']: - schemasql = sqlschema(schema, driver, user=source['db-user']) - else: - schemasql = sqlschema(schema, driver) - #skip_entities=[str(e) for e in schema.entities() - # if not repo.system_source.support_entity(str(e))]) + schemasql = sqlschema(schema, driver) + #skip_entities=[str(e) for e in schema.entities() + # if not repo.system_source.support_entity(str(e))]) sqlexec(schemasql, execute, pbtitle=_title) sqlcursor.close() sqlcnx.commit() @@ -237,8 +234,8 @@ config.set_hooks_mode(oldmode) -# sqlite'stored procedures have to be registered at connexion opening time -SQL_CONNECT_HOOKS = {} +# sqlite'stored procedures have to be registered at connection opening time +from logilab.db import SQL_CONNECT_HOOKS # add to this set relations which should have their add security checking done # *BEFORE* adding the actual relation (done after by default)