[PATCH 17 of 52 Narval cube] Fix 'dict' object has no attribute 'iteritems'

Nsukami Patrick ptrck at nskm.xyz
Wed Apr 1 11:34:17 CEST 2020


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585419417 0
#      Sat Mar 28 18:16:57 2020 +0000
# Node ID 5c9077800dbeeb9ae2fe05d62a080262ddf152e7
# Parent  f5ff79df42326880a79dd80cdec1e1b0c248fd82
Fix 'dict' object has no attribute 'iteritems'

diff --git a/cubicweb_narval/views/startplan.py b/cubicweb_narval/views/startplan.py
--- a/cubicweb_narval/views/startplan.py
+++ b/cubicweb_narval/views/startplan.py
@@ -41,7 +41,7 @@
     def action(self):
         return self.edited_entity.absolute_url(vid='narval.startplan')
 
-    priority = ff.IntField(choices=[(l, str(v)) for l, v in PRIORITY.iteritems()],
+    priority = ff.IntField(choices=[(l, str(v)) for l, v in PRIORITY.items()],
                            value=str(MEDIUM),
                            label=_('execution priority'),
                            sort=False, internationalizable=True)




More information about the cubicweb-devel mailing list