Development #56612
réduire form_links_whatever à juste le LazyFormData
Début:
02 septembre 2021
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Aujourd'hui le form_links_whatever retourne un
{'form': <wcs.variables.LazyFormData object at 0x7fee88d65be0>, 'attachments': <wcs.workflows.AttachmentsSubstitutionProxy object at 0x7fee8883f128>, 'category_name': 'Publik Famille - Famille', 'category_id': 'usagers', 'category_slug': 'usagers', 'category_description': None}
parce que ça fait
return part.formdata.get_substitution_variables()
le seul truc utile là-dedans c'est 'form', avant que le reste ne se trouve utilisé, ça serait bien de réduire ça à juste la clé 'form'.
(si quelqu'un craint un form_links_whatever_attachments_... déjà quelque part, le dire)
Fichiers
Révisions associées
Historique
Mis à jour par Lauréline Guérin il y a plus de 2 ans
- Fichier 0003-wf-simplify-form_links_whatever-expose-form-only-566.patch 0003-wf-simplify-form_links_whatever-expose-form-only-566.patch ajouté
- Fichier 0002-misc-split-workflow-carddata-tests.patch 0002-misc-split-workflow-carddata-tests.patch ajouté
- Fichier 0001-misc-move-workflows-tests-for-splitting.patch 0001-misc-move-workflows-tests-for-splitting.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Frédéric Péters il y a plus de 2 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Lauréline Guérin il y a plus de 2 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit dfb69a1477336df55515f84810938b680390c062 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Thu Sep 9 10:44:45 2021 +0200 wf: simplify form_links_whatever, expose 'form' only (#56612)
Mis à jour par Frédéric Péters il y a plus de 2 ans
- Statut changé de Résolu (à déployer) à Solution déployée
wf: simplify form_links_whatever, expose 'form' only (#56612)