[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mailman-cvs
Subject:    [Mailman-checkins] [Branch ~mailman-coders/mailman/2.2] Rev 1050:
From:       noreply () launchpad ! net
Date:       2009-03-15 20:00:13
Message-ID: 20090315200013.1843.81077.launchpad () loganberry ! canonical ! com
[Download RAW message or body]

------------------------------------------------------------
revno: 1050
committer: Mark Sapiro <mark@msapiro.net>
branch nick: 2.2
timestamp: Sun 2009-03-15 12:42:23 -0700
message:
  UserDesc instance returned by Pending._update() needed more attributes.
modified:
  Mailman/Pending.py

=== modified file 'Mailman/Pending.py'
--- Mailman/Pending.py	2009-03-14 22:13:15 +0000
+++ Mailman/Pending.py	2009-03-15 19:42:23 +0000
@@ -175,11 +175,14 @@
         # separate, but require the prepending of a record type indicator.  We
         # know that the only things that were kept in the old format were
         # subscription requests.  Also, the old request format didn't have the
-        # subscription language so we leave it as None in the UserDesc and
-        # confirmation processing will take care of it.
+        # subscription language.  Best we can do here is use the server
+        # default.  We also need a fullname because confirmation processing
+        # references all those UserDesc attributes.
         ud = UserDesc.UserDesc(address=data[0],
+                               fullname = '',
                                password=data[1],
                                digest=data[2],
+                               lang=mm_cfg.DEFAULT_SERVER_LANGUAGE,
                                )
         db[cookie] = (SUBSCRIPTION, ud)
         # The old database format kept the timestamp as the time the request



--
Active development version (web u/i update)
https://code.launchpad.net/~mailman-coders/mailman/2.2

Your team Mailman Checkins is subscribed to branch lp:mailman/2.2.
To unsubscribe from this branch go to \
https://code.launchpad.net/~mailman-coders/mailman/2.2/+edit-subscription. \
_______________________________________________ Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/mailman-cvs%40progressive-comp.com



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic