--- a/server/schemaserial.py Thu Jul 23 15:29:07 2009 +0200
+++ b/server/schemaserial.py Thu Jul 23 15:33:03 2009 +0200
@@ -277,12 +277,13 @@
"""synchronize schema and permissions in the database according to
current schema
"""
- print 'serializing the schema, this may take some time'
+ _title = '-> storing the schema in the database '
+ print _title,
eschemas = schema.entities()
aller = eschemas + schema.relations()
if not verbose:
pb_size = len(aller) + len(CONSTRAINTS) + len([x for x in eschemas if x.specializes()])
- pb = ProgressBar(pb_size)
+ pb = ProgressBar(pb_size, title=_title)
for cstrtype in CONSTRAINTS:
rql = 'INSERT CWConstraintType X: X name "%s"' % cstrtype
if verbose: