Projet

Général

Profil

Bug #69237

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

Ajouté par Sentry Io il y a plus d'un an. Mis à jour il y a plus d'un an.

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

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

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

Demandes liées

Lié à w.c.s. - Bug #72312: geojson d'un champ image dans un bloc (AttributeError: 'memoryview' object has no attribute 'replace')Fermé12 décembre 2022

Actions

Révisions associées

Révision c19aa536 (diff)
Ajouté par Frédéric Péters il y a plus d'un an

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

Historique

#1

Mis à jour par Lauréline Guérin il y a plus d'un an

  • Projet changé de Suivi des traces à w.c.s.
  • Sujet changé de AttributeError: 'memoryview' object has no attribute 'replace' à 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

Mis à jour par Frédéric Péters il y a plus d'un an

  • Statut changé de Nouveau à Fermé

Traité par #72312.

#5

Mis à jour par Frédéric Péters il y a plus d'un an

  • Lié à Bug #72312: geojson d'un champ image dans un bloc (AttributeError: 'memoryview' object has no attribute 'replace') ajouté

Formats disponibles : Atom PDF