Bug #15781
vue json du schéma d'un formulaire contenant des champs "fichier" comme option de workflow
Début:
06 avril 2017
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
Exception: type = '<type 'exceptions.AttributeError'>', value = 'UploadedFile instance has no attribute 'get_content'' Stack trace (most recent call first): File "/usr/lib/python2.7/dist-packages/wcs/qommon/misc.py", line 448, in default 446 'filename': obj.base_filename, 447 'content_type': obj.content_type or 'application/octet-stream', > 448 'content': base64.b64encode(obj.get_content()), 449 } 450 locals: self = <wcs.qommon.misc.JSONEncoder object at 0x7fc54029ec50> obj = <wcs.qommon.form.UploadedFile instance at 0x7fc5402609e0>
J'avais patché live la recette (cf #15728).
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a environ 7 ans
- Fichier 0001-formdef-add-support-for-files-in-workflow-options-15.patch 0001-formdef-add-support-for-files-in-workflow-options-15.patch ajouté
- Statut changé de Nouveau à En cours
- Patch proposed changé de Non à Oui
Ajouter la ligne c'était bien mais après fallait faire un test et les tests ils font export et import, et json et xml, donc voilà, prise en charge totale des fichiers présents dans les options.
Mis à jour par Frédéric Péters il y a environ 7 ans
- Statut changé de En cours à Résolu (à déployer)
commit 62f0007524a21d29f92de2c20d10180fbd2d11b0 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Thu Apr 6 13:10:24 2017 +0200 formdef: add support for files in workflow options (#15781)
Mis à jour par Frédéric Péters il y a plus de 5 ans
- Statut changé de Résolu (à déployer) à Solution déployée
formdef: add support for files in workflow options (#15781)