Revision: 8183
http://svn.sourceforge.net/mailman/?rev=8183&view=rev
Author: tkikuchi
Date: 2007-03-26 23:35:12 -0700 (Mon, 26 Mar 2007)
Log Message:
-----------
passwords.py: 'utf-8' normalization.
Cgi/create.py: password scheme lookup.
Modified Paths:
--------------
trunk/mailman/Mailman/Cgi/create.py
trunk/mailman/Mailman/passwords.py
Modified: trunk/mailman/Mailman/Cgi/create.py
===================================================================
--- trunk/mailman/Mailman/Cgi/create.py 2007-03-27 02:52:48 UTC (rev 8182)
+++ trunk/mailman/Mailman/Cgi/create.py 2007-03-27 06:35:12 UTC (rev 8183)
@@ -161,7 +161,8 @@
# We've got all the data we need, so go ahead and try to create the list
mlist = MailList.MailList()
try:
- pw = passwords.make_secret(password, config.PASSWORD_SCHEME)
+ scheme = passwords.lookup_scheme(config.PASSWORD_SCHEME.lower())
+ pw = passwords.make_secret(password, scheme)
try:
mlist.Create(fqdn_listname, owner, pw, langs)
except Errors.EmailAddressError, s:
Modified: trunk/mailman/Mailman/passwords.py
===================================================================
--- trunk/mailman/Mailman/passwords.py 2007-03-27 02:52:48 UTC (rev 8182)
+++ trunk/mailman/Mailman/passwords.py 2007-03-27 06:35:12 UTC (rev 8183)
@@ -241,8 +241,7 @@
scheme_enum = _SCHEMES_BY_TAG.get(scheme, _DEFAULT_SCHEME)
scheme_class = _SCHEMES_BY_ENUM[scheme_enum]
if isinstance(rest_group, unicode):
- # decode() fails. (challenge is from database)
- rest_group = str(rest_group)
+ rest_group = rest_group.encode('utf-8')
return scheme_class.check_response(rest_group, response, *scheme_parts[1:])
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org