Projet

Général

Profil

Bug #45634

appel de |getlist sur une chaine

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

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
31 juillet 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Exception:
  type = '<class 'AttributeError'>', value = ''str' object has no attribute 'getlist''

Stack trace (most recent call first):
  File "/usr/lib/python3/dist-packages/wcs/qommon/templatetags/qommon.py", line 68, in getlist
    66 @register.filter
    67 def getlist(mapping, key):
>   68     return mapping.getlist(key)
    69
    70

  locals:
     key = 'montant'
     mapping = 'Liste de règlements'

Le gabarit en question :

     template = '<p>{% with f0=form_var_reglement_bis|getlist:"montant"|sum|decimal %}{{f0}}{% endwith %}</p>'

Fichiers

Révisions associées

Révision 74b62af6 (diff)
Ajouté par Thomas Noël il y a plus de 3 ans

misc: avoid crashes when getlist filter not used on a block (#45634)

Historique

#1

Mis à jour par Thomas Noël il y a plus de 3 ans

  • Assigné à mis à Thomas Noël
#2

Mis à jour par Thomas Noël il y a plus de 3 ans

#3

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

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

Ok.

#4

Mis à jour par Thomas Noël il y a plus de 3 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 74b62af6d7a94f5aa34188d4402761ddd6e2de37
Author: Thomas NOEL <tnoel@entrouvert.com>
Date:   Fri Jul 31 10:06:05 2020 +0200

    misc: avoid crashes when getlist filter not used on a block (#45634)

#5

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

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

Formats disponibles : Atom PDF