server/sqlutils.py
changeset 3629 559cad62c786
parent 3623 9b838e2d72bb
child 3689 deb13e88e037
--- a/server/sqlutils.py	Wed Oct 07 12:38:30 2009 +0200
+++ b/server/sqlutils.py	Fri Oct 09 16:39:26 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
     """