Project

General

Profile

Development #64295

Publik - Project management #64274: montée de version django (→ 3.2 LTS)

tourner avec django 3.2

Added by Frédéric Péters 12 months ago. Updated 8 months ago.

Status:
Fermé
Priority:
Normal
Target version:
-
Start date:
17 April 2022
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:
No
Tags:

Description

LTS après 2.2, qui côté debian est disponible dans bullseye-backports.


Files

Associated revisions

Revision f4c8017d (diff)
Added by Frédéric Péters 12 months ago

misc: force str() on gettext strings used with TemplateIO (#64295)

Lazy gettext strings from Django have a radd method in 3.2 and this
makes adding to TemplateIO raise a TypeError (unsupported operand type(s)
for +: 'TemplateIO' and 'str')

Revision 016c34bf (diff)
Added by Frédéric Péters 12 months ago

misc: update address sanity check for django 3.2 (#64295)

Revision 303176d3 (diff)
Added by Frédéric Péters 12 months ago

misc: adapt dbshell command for django 3.2 (#64295)

Revision 702a4331 (diff)
Added by Frédéric Péters 12 months ago

tests: adapt for django 3.2 not failing on B date format character (#64295)

History

#1

Updated by Frédéric Péters 12 months ago

0001 pour ajouter un str() explicite quand on ajoute une chaine traduite à un objet TemplateIO(), ce qu'il se passe c'est qu'il y a eu introduction de méthodes __radd__ (et __add__) sur les objets lazy django, ça se trouve appelé quand on fait r (un TemplateIO) += _('plop') et ça donne unsupported operand type(s) for +: 'TemplateIO' and 'str'). J'ai regardé si éventuellement ça avait changé dans une nouvelle version de quixote (non) puis si c'était envisageable de modifier le TemplateIO pour avoir aussi ces méthodes et éviter ça puis j'ai regardé le nombre d'occurences et c'était pas tant que ça donc j'y suis allé pour ajouter de manière explicite les str().

0002 parce que sanitize_address lève désormais parfois ValueError, et accepte les chaines vides.

0003 la commande dbshell a totalement changé et il faut faire différemment.

0004 avant "B" dans une date levait une NotImplementedError, plus maintenant (ça écrit juste B).

(0005 pour lancer les tests avec 2.2 et 3.2 mais je serais pour d'abord intégrer les modifications et seulement plus tard introduire l'exécution dans jenkins).

#2

Updated by Emmanuel Cazenave 12 months ago

  • Status changed from Solution proposée to Solution validée
#3

Updated by Frédéric Péters 12 months ago

  • Status changed from Solution validée to Résolu (à déployer)
commit 702a4331c0e0fc1953160143496d1d5e564ad627
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sun Apr 17 19:19:13 2022 +0200

    tests: adapt for django 3.2 not failing on B date format character (#64295)

commit 303176d3787a2811c50d41363055eba8192e6708
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sun Apr 17 17:59:04 2022 +0200

    misc: adapt dbshell command for django 3.2 (#64295)

commit 016c34bff219f2da5bafb38d449b413a658ea0d9
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sun Apr 17 17:35:23 2022 +0200

    misc: update address sanity check for django 3.2 (#64295)

commit f4c8017d8b4e06a2d4a8dcb100f5ea8c472e74cc
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sun Apr 17 14:58:43 2022 +0200

    misc: force str() on gettext strings used with TemplateIO (#64295)

    Lazy gettext strings from Django have a __radd__ method in 3.2 and this
    makes adding to TemplateIO raise a TypeError (unsupported operand type(s)
    for +: 'TemplateIO' and 'str')
#4

Updated by Transition automatique 12 months ago

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

Updated by Transition automatique 10 months ago

Automatic expiration

#6

Updated by Agate (Absente jusqu'au 12/04/2023) 8 months ago

  • Parent task set to #64274

Also available in: Atom PDF