author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Thu, 08 Oct 2009 15:25:09 +0200 | |
branch | stable |
changeset 3623 | 9b838e2d72bb |
parent 3622 | f4317edf4058 |
child 3624 | 05932c6f7db2 |
--- a/server/sqlutils.py Thu Oct 08 12:34:31 2009 +0200 +++ b/server/sqlutils.py Thu Oct 08 15:25:09 2009 +0200 @@ -33,7 +33,8 @@ SQL_PREFIX = 'cw_' -def sqlexec(sqlstmts, cursor_or_execute, withpb=True, pbtitle='', delimiter=';'): +def sqlexec(sqlstmts, cursor_or_execute, withpb=not os.environ.get('APYCOT_ROOT'), + pbtitle='', delimiter=';'): """execute sql statements ignoring DROP/ CREATE GROUP or USER statements error. If a cnx is given, commit at each statement """