Projet

Général

Profil

Bug #38857

AttributeError at /manage/lingo/regies/5/edit

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

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
09 janvier 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

File "/usr/lib/python3/dist-packages/combo/apps/lingo/models.py" in get_payment
  102.         return eopayment.Payment(self.service, self.service_options)

File "/usr/lib/python3/dist-packages/eopayment/__init__.py" in __init__
  88.         self.backend = get_backend(kind)(options, logger=logger)

File "/usr/lib/python3/dist-packages/eopayment/common.py" in __init__
  129.                 setattr(self, key, options.get(key, None) or value['default'])

Exception Type: AttributeError at /manage/lingo/regies/5/edit
Exception Value: 'str' object has no attribute 'get'

...

   options :
('\n'
 '              {\n'
 '               "payment_means": "VISA,MASTERCARD,MAESTRO",\n'
 '               "platform": "test",\n'
 '               "secret_key": "002001000000001_KEY1",\n'
 '               "merchant_id": "002001000000001",\n'
 '               "key_version": "1"\n'
 '              }')

Pas testé en local, c'est une trace chez imio, possible que ça soit à cause de leur postgresql 9.3 qui n'a pas de colonne jsonb.


Fichiers

Révisions associées

Révision fca2f063 (diff)
Ajouté par Frédéric Péters il y a plus de 4 ans

lingo: add compatibility with jsonfield used on postgresql < 9.4 (#38857)

Historique

#1

Mis à jour par Frédéric Péters il y a plus de 4 ans

#2

Mis à jour par Benjamin Dauvergne il y a plus de 4 ans

  • Statut changé de Solution proposée à Solution validée
#3

Mis à jour par Frédéric Péters il y a plus de 4 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit fca2f063713cb3da74690c70d6ed1a7f9d04c8ce
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sat Jan 11 18:00:46 2020 +0100

    lingo: add compatibility with jsonfield used on postgresql < 9.4 (#38857)
#4

Mis à jour par Frédéric Péters il y a plus de 4 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF