diff -r baed516c6f6e -r e4f11ef1face cubicweb/misc/migration/3.10.9_Any.py --- a/cubicweb/misc/migration/3.10.9_Any.py Fri Jun 10 16:45:20 2016 +0200 +++ b/cubicweb/misc/migration/3.10.9_Any.py Thu Jun 16 15:53:01 2016 +0200 @@ -14,7 +14,7 @@ enabled = interactive_mode with progress(title=title, nbops=nbops, size=30, enabled=enabled) as pb: for i, row in enumerate(rset): - with hooks_control(session, session.HOOKS_DENY_ALL, 'integrity'): + with session.deny_all_hooks_but('integrity'): data = {'eid': row[0], 'cwuri': row[1].replace(u'/eid', u'')} rql('SET X cwuri %(cwuri)s WHERE X eid %(eid)s', data) if not i % 100: # commit every 100 entities to limit memory consumption