sobjects/cwxmlparser.py
changeset 10662 10942ed172de
parent 10603 65ad6980976e
child 10687 d394bfcd8c25
--- a/sobjects/cwxmlparser.py	Tue Sep 08 18:04:57 2015 +0200
+++ b/sobjects/cwxmlparser.py	Tue Sep 15 16:15:03 2015 +0200
@@ -125,7 +125,7 @@
 
     def list_actions(self):
         reg = self._cw.vreg['components']
-        return sorted(clss[0].action for rid, clss in reg.iteritems()
+        return sorted(clss[0].action for rid, clss in reg.items()
                       if rid.startswith('cw.entityxml.action.'))
 
     # mapping handling #########################################################
@@ -221,7 +221,7 @@
 
     def process_relations(self, entity, rels):
         etype = entity.cw_etype
-        for (rtype, role, action), rules in self.source.mapping.get(etype, {}).iteritems():
+        for (rtype, role, action), rules in self.source.mapping.get(etype, {}).items():
             try:
                 related_items = rels[role][rtype]
             except KeyError: