Project

General

Profile

Bug #39913

auquotidien/modules/payments.py: 'dict' object has no attribute 'iteritems'

Added by Thomas Noël 5 months ago. Updated 5 months ago.

Status:
Solution déployée
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
14 Feb 2020
Due date:
% Done:

0%

Patch proposed:
Yes
Planning:
No

Description

Exception:
  type = '<class 'AttributeError'>', value = ''dict' object has no attribute 'iteritems''

Stack trace (most recent call first):
  File "/usr/lib/python3/dist-packages/auquotidien/modules/payments.py", line 288, in perform
   286         invoice.request_kwargs = {}
   287         if self.request_kwargs:
>  288             for key, value in self.request_kwargs.iteritems():
   289                 invoice.request_kwargs[key] = self.compute(value)
   290         invoice.store()

  locals:
     formdata = <Accueils-Periscolaires-Achat-De-Carte-De-40-Cases-D-Une-Demi-Heure 'Accueil périscolaire : achat de carte de 32 cases à 1,00 euro - n°122-818' id:818>
     invoice = <Invoice id:20200214-r1-f122-51480-72>
     self = <PaymentWorkflowStatusItem 3>

  File "/usr/lib/python3/dist-packages/wcs/workflows.py", line 71, in perform_items
    69             url = item.perform(formdata) or url
    70         except AbortActionException:
>   71             break
    72         if formdata.status != old_status:
    73             break

...

PATH_INFO       '/vos-enfants/accueils-periscolaires-achat-de-carte-de-40-cases-d-une-demi-heure/'

0001-misc-iteritems-items-39913.patch View (2.75 KB) Thomas Noël, 14 Feb 2020 08:21 PM

Associated revisions

Revision a301d5f8 (diff)
Added by Thomas Noël 5 months ago

misc: iteritems() -> items() (#39913)

Revision f30934a2 (diff)
Added by Thomas Noël 5 months ago

misc: iteritems() -> items() (#39913)

History

#1 Updated by Thomas Noël 5 months ago

parce que python3, on remplace iteritems par items sur les dictionnaires, et donc je propose de le faire partout

#2 Updated by Frédéric Péters 5 months ago

  • Status changed from Solution proposée to Résolu (à déployer)

yep,

commit a301d5f8f3e5e618099cfd5959f04733f13a9e8d
Author: Thomas NOËL <tnoel@entrouvert.com>
Date:   Fri Feb 14 20:21:18 2020 +0100

    misc: iteritems() -> items() (#39913)

#3 Updated by Frédéric Péters 5 months ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF