misc/migration/bootstrapmigration_repository.py
changeset 8696 0bb18407c053
parent 8694 d901c36bcfce
child 8800 8ca1a0da5a29
--- a/misc/migration/bootstrapmigration_repository.py	Thu Feb 14 15:38:25 2013 +0100
+++ b/misc/migration/bootstrapmigration_repository.py	Thu Feb 14 16:01:24 2013 +0100
@@ -76,7 +76,7 @@
     with hooks_control(session, session.HOOKS_ALLOW_ALL, 'integrity'):
         for rschema in repo.schema.relations():
             rpermsdict = permsdict.get(rschema.eid, {})
-            for rdef in rschema.rdefs.values():
+            for rdef in rschema.rdefs.itervalues():
                 for action in rdef.ACTIONS:
                     actperms = []
                     for something in rpermsdict.get(action == 'update' and 'add' or action, ()):