Bug #10048
data source python contenant des accents
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
Historique
Mis à jour par Frédéric Péters il y a environ 8 ans
- Fichier 0001-misc-make-sure-data-sources-with-unicode-are-correct.patch 0001-misc-make-sure-data-sources-with-unicode-are-correct.patch ajouté
- Statut changé de Nouveau à En cours
- Patch proposed changé de Non à Oui
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)
misc: make sure data sources with unicode are correctly serialized (#10048)