Evolution #2310
the sha module is deprecated
Description
Chercher et corriger les DeprecationWarning :
/usr/lib/pymodules/python2.6/posh/api/user_api.py:40: DeprecationWarning: the sha module is deprecated; use the hashlib module instead from sha import sha
Révisions associées
Allow customization of global client-side behavior via a client page class.
This change refactors most Athena global JavaScript state into a client-side PageWidget class, and allows that class to be specified by application code. The page widget javascript class is responsible for, among other things, handling the "connection lost" notification, which allows for pages which intelligently reconnect or otherwise provide customized behavior in response to a connection-lost notification. A brief interactive example of a page which can reconnect without alerting the user is included.
In addition to the refactorings, this change touches a lot of old code, and thereby adds a lot of unit test coverage to code which was either completely uncovered or covered only by nits.
Fixes #2310
Fixes #2334
Author: glyph, moe
Reviewer: exarkun
see #2310 Remove option from config form
see #2310 remove existing calls to authldaps_id_extra
Correction du DeprecationWarning, utilisation du module hashlib plutot que sha (fixes #2310)
Historique
#1 Mis à jour par Lionel Morin il y a environ 12 ans
- Version cible changé de Envole 3.2.1 RC à Envole 3.3.0 RC
#2 Mis à jour par Lionel Morin il y a presque 12 ans
- Assigné à mis à Lionel Morin
#3 Mis à jour par Lionel Morin il y a presque 12 ans
- Statut changé de Nouveau à Résolu
- % réalisé changé de 0 à 100
Appliqué par commit 65455f41e31e1713c818fbc0631e0dc4e8ba954c.
#4 Mis à jour par Joël Cuissinat il y a presque 12 ans
- Statut changé de Résolu à Fermé
OK dans paquet candidat : eole-python-posh 2.3-eole8~2.gbpe12194
root@reseau:/usr/share/pyshared/posh# grep "import sha" * -r api/user_api.py: from hashlib import sha1