Projet

Général

Profil

Development #40501

adapter les templates suite au passage d'authentic en python3

Ajouté par Serghei Mihai il y a environ 4 ans. Mis à jour il y a environ 4 ans.

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

Lié à Authentic 2 - Development #28276: Fonctionner avec Python3 pour Django1.11Fermé23 novembre 2018

Actions
Lié à Publik Installation Développeur - Development #40403: Tourner authentic2 en python3Fermé04 mars 2020

Actions

Révisions associées

Révision 094ec4b2 (diff)
Ajouté par Nicolas Roche il y a environ 4 ans

python3: use items in templates (#40501)

Historique

#1

Mis à jour par Serghei Mihai il y a environ 4 ans

#2

Mis à jour par Nicolas Roche il y a environ 4 ans

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

#3

Mis à jour par Nicolas Roche il y a environ 4 ans

#4

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.

#5

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)

#6

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

Formats disponibles : Atom PDF