Projet

Général

Profil

Bug #15781

vue json du schéma d'un formulaire contenant des champs "fichier" comme option de workflow

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

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
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

Révision 62f00075 (diff)
Ajouté par Frédéric Péters il y a environ 7 ans

formdef: add support for files in workflow options (#15781)

Historique

#1

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

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.

#2

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

Ack

#3

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)
#4

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

Formats disponibles : Atom PDF