server/sqlutils.py
branchstable
changeset 3623 9b838e2d72bb
parent 2759 23d7a75693f8
child 3689 deb13e88e037
--- 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
     """