Projet

Général

Profil

Development #30442

variables category_* en mode lazy

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

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
06 février 2019
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Elles sont absentes.

patch :

--- a/wcs/formdata.py
+++ b/wcs/formdata.py
@@ -783,6 +783,8 @@ class FormData(StorableObject):
             'form': LazyFormData(self),
             'attachments': AttachmentsSubstitutionProxy(self),
         })
+        if self.formdef.category:
+            variables.update(self.formdef.category.get_substitution_variables(minimal=minimal))
         if minimal:
             return variables

auquel j'ajouterai des tests demain.


Fichiers

Révisions associées

Révision 1bdb38ad (diff)
Ajouté par Frédéric Péters il y a environ 5 ans

formdata: publish category variables in lazy mode (#30442)

Historique

#1

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

#2

Mis à jour par Thomas Noël il y a environ 5 ans

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

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

  • Statut changé de Solution validée à Résolu (à déployer)
commit 1bdb38ad5f8703a2911a5a0d2d5e9e8d104a79ad
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Thu Feb 7 09:48:13 2019 +0100

    formdata: publish category variables in lazy mode (#30442)
#4

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

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

Formats disponibles : Atom PDF