diff -r 6190852af97f -r 92bba46b853f server/__init__.py --- a/server/__init__.py Sat Jul 18 16:00:14 2009 +0200 +++ b/server/__init__.py Sat Jul 18 16:17:46 2009 +0200 @@ -45,7 +45,7 @@ assert len(repo.sources) == 1, repo.sources schema = repo.schema sourcescfg = config.sources() - print 'creating necessary tables into the system source' + print '-> creating necessary tables into the system source.' source = sourcescfg['system'] driver = source['db-driver'] sqlcnx = repo.system_source.get_connection() @@ -56,7 +56,7 @@ try: sqlexec(dropsql, execute) except Exception, ex: - print 'drop failed, skipped (%s)' % ex + print '-> drop failed, skipped (%s).' % ex sqlcnx.rollback() # schema entities and relations tables # can't skip entities table even if system source doesn't support them, @@ -71,11 +71,11 @@ sqlexec(schemasql, execute) # install additional driver specific sql files for fpath in glob(join(config.schemas_lib_dir(), '*.sql.%s' % driver)): - print 'install', fpath + print '-> installing', fpath sqlexec(open(fpath).read(), execute, False, delimiter=';;') for directory in config.cubes_path(): for fpath in glob(join(directory, 'schema', '*.sql.%s' % driver)): - print 'install', fpath + print '-> installing', fpath sqlexec(open(fpath).read(), execute, False, delimiter=';;') sqlcursor.close() sqlcnx.commit() @@ -90,7 +90,7 @@ login, pwd = manager_userpasswd(msg=msg, confirm=True) else: login, pwd = unicode(source['db-user']), source['db-password'] - print 'inserting default user and groups' + print '-> inserting default user and default groups.' needisfix = [] for group in BASEGROUPS: rset = session.execute('INSERT CWGroup X: X name %(name)s', @@ -140,7 +140,7 @@ config.bootstrap_schema = bootstrap_schema config.consider_user_state = True config.set_language = True - print 'application %s initialized' % config.appid + print '-> application %s initialized.' % config.appid def initialize_schema(config, schema, mhandler, event='create'):