server/schemaserial.py
branchstable
changeset 3854 8633cd05b6b5
parent 3689 deb13e88e037
child 3857 6676a839dc97
--- a/server/schemaserial.py	Mon Nov 16 09:37:06 2009 +0100
+++ b/server/schemaserial.py	Mon Nov 16 10:31:32 2009 +0100
@@ -7,6 +7,7 @@
 """
 __docformat__ = "restructuredtext en"
 
+import os
 import sys
 from itertools import chain
 
@@ -280,7 +281,7 @@
     print _title,
     eschemas = schema.entities()
     aller = eschemas + schema.relations()
-    if not verbose:
+    if not verbose and not os.environ.get('APYCOT_ROOT'):
         pb_size = len(aller) + len(CONSTRAINTS) + len([x for x in eschemas if x.specializes()])
         pb = ProgressBar(pb_size, title=_title)
     rql = 'INSERT CWConstraintType X: X name %(ct)s'