Project

General

Profile

Bug #69237

Listing des demandes, afficher une colonne fiche/fichier d'une donnée de traitement (AttributeError: 'memoryview' object has no attribute 'replace')

Added by Sentry Io 5 months ago. Updated about 2 months ago.

Status:
Fermé
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
19 September 2022
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

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

AttributeError: 'memoryview' object has no attribute 'replace'
(9 additional frame(s) were not displayed)
...
  File "quixote/directory.py", line 88, in _q_traverse
    return obj._q_traverse(path)
  File "quixote/directory.py", line 92, in _q_traverse
    return obj()
  File "wcs/backoffice/management.py", line 2151, in _q_index
    table = FormDefUI(self.formdef).listing(
  File "wcs/forms/backoffice.py", line 140, in listing
    r += htmltext(self.tbody(fields, items, url_action, include_checkboxes=include_checkboxes))
  File "wcs/forms/backoffice.py", line 363, in tbody
    r += field_value.replace('[download]', str('%sdownload' % link))

Related issues

Related to w.c.s. - Bug #72312: geojson d'un champ image dans un bloc (AttributeError: 'memoryview' object has no attribute 'replace')Solution déployée12 December 2022

Actions

Associated revisions

Revision c19aa536 (diff)
Added by Frédéric Péters about 1 month ago

tests: check it's possible to add a related card file field column (#69237)

History

#1

Updated by Lauréline Guérin 5 months ago

  • Project changed from Suivi des traces to w.c.s.
  • Subject changed from AttributeError: 'memoryview' object has no attribute 'replace' to Listing des demandes, afficher une colonne fiche/fichier d'une donnée de traitement (AttributeError: 'memoryview' object has no attribute 'replace')

Le cas client:
Un formulaire, une donnée de traitement qui pointe sur une source de données de type fiche.
Dans le modèle de fiche, un champ logo de type file.

En voulant ajouter la colonne <donnée de traitement>/<logo> dans le listing des demandes, on a une 500.

#4

Updated by Frédéric Péters about 2 months ago

  • Status changed from Nouveau to Fermé

Traité par #72312.

#5

Updated by Frédéric Péters about 2 months ago

  • Related to Bug #72312: geojson d'un champ image dans un bloc (AttributeError: 'memoryview' object has no attribute 'replace') added

Also available in: Atom PDF