Projet

Général

Profil

Bug #23147

rendu rst de tableau dont l'entête de ligne contient des accents

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

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
12 avril 2018
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Exception:
  type = '<type 'exceptions.UnicodeDecodeError'>', value = ''ascii' codec can't decode byte 0xc3 in position 8: ordinal not in range(128)'

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/wcs/fields.py", line 1712, in get_rst_view_value
  1710         for i, row in enumerate(self.rows):
  1711             r.append(' '.join([cell.center(max_width) for cell in [row] +
> 1712                     [get_value(i, x) for x in range(len(self.columns))]]))
  1713         r.append(' '.join(['='*max_width]*(len(self.columns)+1)))
  1714         return misc.site_encode('\n'.join([indent + x for x in r]))

  locals:
     cell = u'0'
     column = "Nombre d'\xc3\xa9l\xc3\xa8ves" 
     get_value = <function get_value at 0x7fdb554b5ed8>
     i = 1
     indent = '  '
     j = 0
     max_width = 37
     r = ['===================================== =====================================', u"                  /                              Nomb
re d'\xe9l\xe8ves           ", '===================================== =====================================', u'         Cours Primaire - CP
0                  ']
     row = 'Cours El\xc3\xa9mentaire 1\xc3\xa8re ann\xc3\xa9e - CE1'
     self = <wcs.fields.TableSelectField object at 0x7fdb552e7410>
     value = [['0'], ['0'], ['25'], ['0'], ['0']]

Fichiers

Révisions associées

Révision 87fbb4c7 (diff)
Ajouté par Frédéric Péters il y a environ 6 ans

fields: handle table with unicode row labels (#23147)

Historique

#1

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

#2

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

Ack

#3

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

  • Statut changé de En cours à Résolu (à déployer)
commit 87fbb4c783cc943165a958530de72234a3557bba
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Thu Apr 12 23:03:13 2018 +0200

    fields: handle table with unicode row labels (#23147)
#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