[PATCH inlinedit] [py3] .iteritems() -> .items()

Philippe Pepiot philippe.pepiot at logilab.fr
Fri Jun 15 17:04:17 CEST 2018


# HG changeset patch
# User Philippe Pepiot <philippe.pepiot at logilab.fr>
# Date 1529075033 -7200
#      Fri Jun 15 17:03:53 2018 +0200
# Branch stable
# Node ID 91edb25a12b33a6ade8e1dc8e0c32379203b42b2
# Parent  0674641cca9cf46753869329901778cc3840e50c
# Available At https://hg.logilab.org/review/cubes/inlinedit
#              hg pull https://hg.logilab.org/review/cubes/inlinedit -r 91edb25a12b3
[py3] .iteritems() -> .items()

diff --git a/views/reledit.py b/views/reledit.py
--- a/views/reledit.py
+++ b/views/reledit.py
@@ -265,7 +265,7 @@ class ReleditFormHandler(appobject.AppOb
                                  'logo': xml_escape(self._cw.data_url(self._editzonelogo))}
 
     def _setup_form_arguments(self, form, event_args):
-        for pname, pvalue in event_args.iteritems():
+        for pname, pvalue in event_args.items():
             if pname == 'reload':
                 pvalue = json_dumps(pvalue)
             form.add_hidden('__reledit|' + pname, pvalue)


More information about the cubicweb-devel mailing list