equal
deleted
inserted
replaced
312 cubes = config.cubes() |
312 cubes = config.cubes() |
313 # deactivate every hooks but those responsible to set metadata |
313 # deactivate every hooks but those responsible to set metadata |
314 # so, NO INTEGRITY CHECKS are done, to have quicker db creation. |
314 # so, NO INTEGRITY CHECKS are done, to have quicker db creation. |
315 # Active integrity is kept else we may pb such as two default |
315 # Active integrity is kept else we may pb such as two default |
316 # workflows for one entity type. |
316 # workflows for one entity type. |
317 with cnx._cnx.deny_all_hooks_but('metadata', 'activeintegrity'): |
317 with cnx.deny_all_hooks_but('metadata', 'activeintegrity'): |
318 # execute cubicweb's pre<event> script |
318 # execute cubicweb's pre<event> script |
319 mhandler.cmd_exec_event_script('pre%s' % event) |
319 mhandler.cmd_exec_event_script('pre%s' % event) |
320 # execute cubes pre<event> script if any |
320 # execute cubes pre<event> script if any |
321 for cube in reversed(cubes): |
321 for cube in reversed(cubes): |
322 mhandler.cmd_exec_event_script('pre%s' % event, cube) |
322 mhandler.cmd_exec_event_script('pre%s' % event, cube) |