summaryrefslogtreecommitdiff
path: root/Mailman/LockFile.py
diff options
context:
space:
mode:
authorbwarsaw2007-03-22 04:29:31 +0000
committerbwarsaw2007-03-22 04:29:31 +0000
commit4b481c179c96440b3785ecc5a069af4d696f75a3 (patch)
tree09f5a1723223f4e2f22bcb04daa676eb69cf8147 /Mailman/LockFile.py
parentdaeb5dbf03fde77265e42392cae0913765423f94 (diff)
downloadmailman-4b481c179c96440b3785ecc5a069af4d696f75a3.tar.gz
mailman-4b481c179c96440b3785ecc5a069af4d696f75a3.tar.zst
mailman-4b481c179c96440b3785ecc5a069af4d696f75a3.zip
Restore the use of passwords.Schemes enum for selection of password hashing
scheme. Fix mmsitepass and test cases accordingly. Details: - set_global_password(): Instead of taking a string for 'scheme' argument, take None and then coerce that into passwords.Schemes.ssha - Add a base PasswordError and a BadPasswordSchemeError error that derives from that. For consistency, multiply inherit MMBadPasswordError and MMPasswordsMustMatch from PasswordError. - Add a passwords.lookup_scheme() method which turns scheme_names into scheme enum constants. It returns None if the lookup fails. - passwords.py: change the internal representation of _SCHEMES_BY_TAG dictionary to map scheme names to scheme enum values. Change internal uses of this dictionary to then turn those enum values into hash classes, or whatever else we need. - make_secret(): Raise BadPasswordSchemeErrorif the given schema (which should be an enum value) is invalid. - TestBase.tearDown(): Clear out any <site> locks that might hang around after a test case runs.
Diffstat (limited to 'Mailman/LockFile.py')
0 files changed, 0 insertions, 0 deletions