schema.py
changeset 10662 10942ed172de
parent 10661 e6eb0c7c2e98
child 10663 54b8a1f249fb
--- a/schema.py	Tue Sep 08 18:04:57 2015 +0200
+++ b/schema.py	Tue Sep 15 16:15:03 2015 +0200
@@ -329,7 +329,7 @@
         """
         creating = kwargs.get('creating')
         if not creating and self.eid is not None:
-            key = (self.eid, tuple(sorted(kwargs.iteritems())))
+            key = (self.eid, tuple(sorted(kwargs.items())))
             try:
                 return _cw.local_perm_cache[key]
             except KeyError:
@@ -717,7 +717,7 @@
 def check_permission_definitions(self):
     orig_check_permission_definitions(self)
     schema = self.subject.schema
-    for action, groups in self.permissions.iteritems():
+    for action, groups in self.permissions.items():
         for group_or_rqlexpr in groups:
             if action == 'read' and \
                    isinstance(group_or_rqlexpr, RQLExpression):