diff -r d6fd82a5a4e8 -r a63d7886fcf5 server/__init__.py --- a/server/__init__.py Tue Mar 30 14:32:03 2010 +0200 +++ b/server/__init__.py Wed Mar 31 15:39:09 2010 +0200 @@ -210,8 +210,11 @@ paths = [p for p in config.cubes_path() + [config.apphome] if exists(join(p, 'migration'))] # deactivate every hooks but those responsible to set metadata - # so, NO INTEGRITY CHECKS are done, to have quicker db creation - with hooks_control(session, session.HOOKS_DENY_ALL, 'metadata'): + # so, NO INTEGRITY CHECKS are done, to have quicker db creation. + # Active integrity is kept else we may pb such as two default + # workflows for one entity type. + with hooks_control(session, session.HOOKS_DENY_ALL, 'metadata', + 'activeintegrity'): # execute cubicweb's pre script mhandler.exec_event_script('pre%s' % event) # execute cubes pre script if any