Projet

Général

Profil

Bug #7057

Export ods avec valeur None

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

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

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Dans un export à l'AUF,

Exception:
  type = '<type 'exceptions.TypeError'>', value = 'coercing to Unicode: need string or buffer, NoneType found'

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/wcs/qommon/ods.py", line 98, in __init__
    96     def __init__(self, worksheet, value, hint=None):
    97         if type(value) is not unicode:
>   98             value = unicode(value, 'utf-8')
    99         self.value = value
   100         self.worksheet = worksheet

  locals:
     worksheet = <qommon.ods.WorkSheet object at 0xa4a6eac>
     self = <qommon.ods.WorkCell object at 0xa6f4e8c>
     value = None
     hint = None

Fichiers

Révisions associées

Révision af4b73b3 (diff)
Ajouté par Frédéric Péters il y a environ 9 ans

backoffice: don't fail on None value in ods export (#7057)

Historique

#1

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

#2

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

Ack

#3

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

  • Statut changé de En cours à Résolu (à déployer)
commit af4b73b3ad5eed5558dd652749fcff10752da4a9
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Mon Apr 27 19:22:35 2015 +0200

    backoffice: don't fail on None value in ods export (#7057)
#4

Mis à jour par Thomas Noël il y a plus de 8 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF