changeset 220:f7d6ae06c42f

python 3 port: replaced iteritems() by items() for dictionaries
author Goffi <goffi@goffi.org>
date Tue, 13 Aug 2019 08:56:22 +0200
parents de4ec87c06d9
children 471d3b7fc282
files sat_templates/templates/default/event/admin.html sat_templates/templates/default/file/discover.html
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/sat_templates/templates/default/event/admin.html	Tue Aug 13 08:57:03 2019 +0200
+++ b/sat_templates/templates/default/event/admin.html	Tue Aug 13 08:56:22 2019 +0200
@@ -33,7 +33,7 @@
                 <th>{% trans %}name{% endtrans %}</th>
                 <th>{% trans %}coming?{% endtrans %}</th>
                 <th>{% trans %}guests{% endtrans %}</th>
-            {% for name, data in invitees.iteritems() %}
+            {% for name, data in invitees.items() %}
                 <tr>
                     <td>{{name}}</td>
                     <td>{{data.attend|default('')}}</td>
--- a/sat_templates/templates/default/file/discover.html	Tue Aug 13 08:57:03 2019 +0200
+++ b/sat_templates/templates/default/file/discover.html	Tue Aug 13 08:56:22 2019 +0200
@@ -16,7 +16,7 @@
         <div class="files__services">
             {{ block.separator(_("services")) }}
             <ul class="grid grid--center">
-                {% for entity,ident in disco_service_entities.iteritems() %}
+                {% for entity,ident in disco_service_entities.items() %}
                     <li class='grid__item grid__item--medium grid__item--selectable'>
                         <a href="{{entities_url[entity]}}">
                             {{ icon('server', cls='file__icon') }}
@@ -37,7 +37,7 @@
         <div class="files__own">
             {{ block.separator(_("your devices")) }}
             <ul class="grid grid--center">
-                {% for entity,ident in disco_own_entities.iteritems() %}
+                {% for entity,ident in disco_own_entities.items() %}
                     <li class='grid__item grid__item--medium grid__item--selectable'>
                         <a href="{{entities_url[entity]}}">
                             {{images.get_icon_client(ident)}}
@@ -52,7 +52,7 @@
         <div class="files__roster">
             {{ block.separator(_("your contacts devices")) }}
             <ul class="grid grid--center">
-                {% for entity,ident in disco_roster_entities.iteritems() %}
+                {% for entity,ident in disco_roster_entities.items() %}
                     <li class='grid__item grid__item--medium grid__item--selectable'>
                         <a href="{{entities_url[entity]}}">
                             {{images.get_icon_client(ident)}}