Update of /cvsroot/mailman/mailman3/src/mailman/categories
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20319

Modified Files:
        properties.py 
Log Message:
EmailList.parse(): getOrCreateProfile() is gone now so fix this method to
simply return a list of (realname, address) tuples.  We'll need to make this
stuff jive with the current implementations.


Index: properties.py
===================================================================
RCS file: /cvsroot/mailman/mailman3/src/mailman/categories/properties.py,v
retrieving revision 3.0
retrieving revision 3.1
diff -u -d -r3.0 -r3.1
--- properties.py       29 Mar 2004 05:18:50 -0000      3.0
+++ properties.py       7 Apr 2004 03:23:10 -0000       3.1
@@ -20,7 +20,6 @@
 from mailman.categories import constants
 from mailman.cgi.zpt import MailmanTemplate
 from mailman.interfaces.enum import Enum
-from mailman.profile import getOrCreateProfile
 
 NL = '\n'
 
@@ -120,24 +119,7 @@
         return NL.join(addrs)
 
     def parse(self, val):
-        rtn = []
-        # val is a list of lines, one email address per line
-        for line in val[0].splitlines():
-            name, addr = parseaddr(line)
-            profile, isNew = getOrCreateProfile(addr)
-            if isNew:
-                # Create a password for this user
-                password = utils.mksyllables(8)
-                profile.realname = name
-                profile.password = utils.hashPassword(password)
-                # XXX Sent notification to owner
-                from binascii import hexlify
-                print 'address:', profile.address, \
-                      'realname:', profile.realname, \
-                      'password:', password, \
-                      'userid:', hexlify(profile.userid)
-            rtn.append(profile)
-        return rtn
+        return [parseaddr(line) for line in val[0].splitlines()]
 
     def default(self):
         return []


_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to