misc/migration/bootstrapmigration_repository.py
changeset 4843 5f7363416765
parent 4835 13b0b96d7982
child 4944 65533aee8d0a
--- a/misc/migration/bootstrapmigration_repository.py	Tue Mar 09 08:59:43 2010 +0100
+++ b/misc/migration/bootstrapmigration_repository.py	Tue Mar 09 11:00:48 2010 +0100
@@ -30,7 +30,7 @@
     session.set_pool()
     permsdict = ss.deserialize_ertype_permissions(session)
 
-    changes = session.disable_hooks_category.add('integrity')
+    changes = session.disable_hook_categories.add('integrity')
     for rschema in repo.schema.relations():
         rpermsdict = permsdict.get(rschema.eid, {})
         for rdef in rschema.rdefs.values():
@@ -71,7 +71,7 @@
         drop_relation_definition('CWRType', '%s_permission' % action, 'CWGroup', commit=False)
         drop_relation_definition('CWRType', '%s_permission' % action, 'RQLExpression')
     if changes:
-        session.enable_hooks_category.add(*changes)
+        session.enable_hook_categories.add(*changes)
 
 if applcubicwebversion < (3, 4, 0) and cubicwebversion >= (3, 4, 0):