Projet

Général

Profil

Bug #48504

filtre dynamique vs booléens

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:
13 novembre 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description


Exception:
  type = '<class 'TypeError'>', value = 'argument of type 'bool' is not iterable'

Stack trace (most recent call first):
  File "/usr/lib/python3/dist-packages/wcs/qommon/template.py", line 523, in is_template_string
   521     @classmethod
   522     def is_template_string(cls, string):
>  523         return string and ('{{' in string or '{%' in string or '[' in string)
   524
   525

  locals:
     cls = <class 'wcs.qommon.template.Template'>
     string = True

  File "/usr/lib/python3/dist-packages/wcs/carddef.py", line 210, in get_data_source_items
   208             criterias.extend(cls.get_data_source_criterias(carddef, custom_view))
   209             for criteria in criterias:
>  210                 if not Template.is_template_string(criteria.value):
   211                     continue
   212                 criteria.value = WorkflowStatusItem.compute(criteria.value)


Fichiers

Révisions associées

Révision 08eb5dbd (diff)
Ajouté par Frédéric Péters il y a plus de 3 ans

misc: check templates are strings (#48504)

Révision c84d7698 (diff)
Ajouté par Frédéric Péters il y a plus de 3 ans

misc: check templates are strings (#48504)

Historique

#1

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

  • Assigné à mis à Frédéric Péters
#2

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

Qui pourrait se retrouver en hotfix.

#3

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

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

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

  • Statut changé de Solution validée à Résolu (à déployer)
commit 08eb5dbdf1a414a436adf9eb863779decffaaa82
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Nov 13 08:31:03 2020 +0100

    misc: check templates are strings (#48504)
#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