Projet

Général

Profil

Bug #63150

TypeError: join requires a list of strings

Ajouté par Sentry Io il y a environ 2 ans. Mis à jour il y a environ 2 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
24 mars 2022
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

https://sentry.entrouvert.org/entrouvert/gplexpert/issues/54895/

TypeError: join requires a list of strings
(13 additional frame(s) were not displayed)
...
  File "wcs/backoffice/management.py", line 2321, in ods
    job.execute()
  File "wcs/backoffice/management.py", line 4035, in execute
    return self.create_export(formdef, fields, items, total_count)
  File "wcs/backoffice/management.py", line 4081, in create_export
    for j, item in enumerate(self.get_spreadsheet_line(fields, formdata)):
  File "wcs/backoffice/management.py", line 4006, in get_spreadsheet_line
    element = data.get_field_view_value(field) or ''
  File "wcs/formdata.py", line 849, in get_field_view_value
    return htmltext(', ').join(get_value(field, d) for d in data.get('data') or [])

Fichiers


Demandes liées

Lié à w.c.s. - Bug #62424: TypeError: join requires a list of stringsFermé04 mars 2022

Actions

Révisions associées

Révision 09bdef5a (diff)
Ajouté par Lauréline Guérin il y a environ 2 ans

backoffice: handle file in fields block in listing exports (#63150)

Historique

#1

Mis à jour par Lauréline Guérin il y a environ 2 ans

  • Projet changé de Suivi des traces à w.c.s.
#2

Mis à jour par Lauréline Guérin il y a environ 2 ans

  • Lié à Bug #62424: TypeError: join requires a list of strings ajouté
#3

Mis à jour par Lauréline Guérin il y a environ 2 ans

ressemble à #62424 mais cette fois on a du PicklableUpload

#4

Mis à jour par Lauréline Guérin il y a environ 2 ans

contenu de data:

{
    data: [
        {
            bf7052d6c7-471f-45a8-874b-c3002722149f: <PicklableUpload at 7faac77bf518: xxx.pdf>
        }
    ],
    schema: {
        bf7052d6c7-471f-45a8-874b-c3002722149f: 'file'
    }
}

#5

Mis à jour par Lauréline Guérin il y a environ 2 ans

  • Assigné à mis à Lauréline Guérin
#6

Mis à jour par Lauréline Guérin il y a environ 2 ans

Fix similaire à #62424
Attention, changement impactant dans wcs/qommon/ods.py, mais normalement maîtrisé

#7

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

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

Oui ods.py j'aurais peut-être entouré d'un str() mais ack ainsi.

#8

Mis à jour par Lauréline Guérin il y a environ 2 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 09bdef5a2638db743d7b06e9450a10bf9b178748
Author: Lauréline Guérin <zebuline@entrouvert.com>
Date:   Mon Apr 11 11:46:25 2022 +0200

    backoffice: handle file in fields block in listing exports (#63150)
#9

Mis à jour par Transition automatique il y a environ 2 ans

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

Mis à jour par Transition automatique il y a presque 2 ans

Automatic expiration

Formats disponibles : Atom PDF