Development #40501
adapter les templates suite au passage d'authentic en python3
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
06 mars 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Sur les pages de login:
{% for id, login_block in blocks.iteritems %}
alors qu'en python3 il faut utiliser items
.
Fichiers
Demandes liées
Révisions associées
Historique
Mis à jour par Serghei Mihai il y a environ 4 ans
- Lié à Development #28276: Fonctionner avec Python3 pour Django1.11 ajouté
Mis à jour par Nicolas Roche il y a environ 4 ans
- Fichier 0001-python3-use-items-in-templates-40501.patch 0001-python3-use-items-in-templates-40501.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
J'ai cette erreur sur la page de login du thème toodego, mais je l'ai aussi en python2 :
Error during template rendering In template /var/lib/combo/tenants/combo.dev.publik.love/theme/templates/variants/toodego/theme.html, error at line 2 : {% load static gnm assets combo %} 'gnm' is not a registered tag library. Must be one of: admin_list admin_modify admin_static admin_urls assets cache calendar cells combo dashboard gadjo humanize i18n l10n log pwa rest_framework sorl_thumbnail static staticfiles thumbnail tz
Mis à jour par Nicolas Roche il y a environ 4 ans
- Lié à Development #40403: Tourner authentic2 en python3 ajouté
Mis à jour par Thomas Noël il y a environ 4 ans
- Statut changé de Solution proposée à Solution validée
"gnm" vient du plugin http://git.entrouvert.org/combo-plugin-gnm.git/tree/combo_plugin_gnm/templatetags/gnm.py, si tu n'as pas installé le thème toodego ne passe pas.
Mis à jour par Nicolas Roche il y a environ 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 094ec4b2f62baf39ae7548a4c69f6205a7bf8193 Author: Nicolas ROCHE <nroche@entrouvert.com> Date: Fri Mar 6 13:54:19 2020 +0100 python3: use items in templates (#40501)
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
python3: use items in templates (#40501)