Projet

Général

Profil

Bug #52885

wcs thème ezt local variable 'template' referenced before assignment

Ajouté par Frédéric Péters il y a environ 3 ans. Mis à jour il y a environ 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
09 avril 2021
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

File "/usr/lib/python3/dist-packages/wcs/compat.py" in process_request
  212.         output = self.filter_output(request, output)

File "/usr/lib/python3/dist-packages/wcs/compat.py" in filter_output
  162.             return self.render_response(output)

File "/usr/lib/python3/dist-packages/auquotidien/modules/template.py" in render_response
  68.     return template.decorate(body, response)

File "/usr/lib/python3/dist-packages/wcs/qommon/template.py" in decorate
  400.     template.generate(fd, vars)

Exception Type: UnboundLocalError at /
Exception Value: local variable 'template' referenced before assignment
>>/pre>

Fichiers

Révisions associées

Révision b5298bad (diff)
Ajouté par Frédéric Péters il y a environ 3 ans

misc: fix rendering of legacy themes (#52885)

Révision f356c9d9 (diff)
Ajouté par Frédéric Péters il y a environ 3 ans

misc: fix rendering of legacy themes (#52885)

Historique

#1

Mis à jour par Frédéric Péters il y a environ 3 ans

Dans le nettoyage pylint 021b73d4fb59db388a17569632f0b6c4d6f25d35 il y a eu suppression d'un "if True" et déindentation incomplète.

(ça concerne a priori juste les vieux thèmes wcs)

#2

Mis à jour par Lauréline Guérin il y a environ 3 ans

  • Statut changé de Solution proposée à Solution validée
#3

Mis à jour par Frédéric Péters il y a environ 3 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit b5298bad06b341a8536708a9bcd70cfe622853b8
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Apr 9 08:13:54 2021 +0200

    misc: fix rendering of legacy themes (#52885)
#4

Mis à jour par Frédéric Péters il y a environ 3 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF