Projet

Général

Profil

Bug #10048

data source python contenant des accents

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

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
Début:
22 février 2016
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Valider le formulaire réaffiche le formulaire, sans erreur; et puis une fois oui mais le fichier créé (dans datasources/6) est vide et la trace suivante arrive :

Exception:
  type = '<type 'exceptions.KeyError'>', value = ''

Stack trace (most recent call first):
  File "/home/fred/src/eo/wcs/wcs/qommon/storage.py", line 363, in get_filename
   361             if ignore_errors:
   362                 return None
>  363             raise KeyError()
   364         o.__class__ = cls
   365         if not ignore_migration:

  locals:
     ignore_migration = False
     e = EOFError()
     i = 9
     filename = '/var/tmp/wcs/auquo/datasources/6'
     current_position = 0
     fd = <closed file '/var/tmp/wcs/auquo/datasources/6', mode 'r' at 0x7f2a7664d9c0>
     ignore_errors = False
     cls = <class 'wcs.data_sources.NamedDataSource'>

  File "/home/fred/src/eo/wcs/wcs/qommon/storage.py", line 286, in get
   284         filename = os.path.join(cls.get_objects_dir(), fix_key(id))
   285         return cls.get_filename(filename, ignore_errors=ignore_errors,
>  286                                 ignore_migration=ignore_migration)
   287     get = classmethod(get)
   288

Fichiers

Révisions associées

Révision 622566ff (diff)
Ajouté par Frédéric Péters il y a environ 8 ans

misc: make sure data sources with unicode are correctly serialized (#10048)

Historique

#1

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

#2

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

Ack

#3

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

  • Statut changé de En cours à Résolu (à déployer)
commit 622566ff533c821ecfea283630ebb23c51fe7d41
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Mon Feb 29 22:49:17 2016 +0100

    misc: make sure data sources with unicode are correctly serialized (#10048)
#4

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

  • Version cible mis à v1.36
#5

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

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

Formats disponibles : Atom PDF