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

Modified Files:
        mlist.py 
Log Message:
__getattribute__() -> __getattr__()

open(): domainName -> domain

delete(): Added


Index: mlist.py
===================================================================
RCS file: /cvsroot/mailman/mailman3/src/mailman/mlist.py,v
retrieving revision 3.2
retrieving revision 3.3
diff -u -d -r3.2 -r3.3
--- mlist.py    12 Apr 2004 00:31:14 -0000      3.2
+++ mlist.py    1 May 2004 03:54:16 -0000       3.3
@@ -32,9 +32,9 @@
 
     __implements__ = IList
 
-    def open(listname, domainName):
+    def open(listname, domain):
         """An alternative interface to construct MailList objects."""
-        listid = '[EMAIL PROTECTED]' % (listname, domainName)
+        listid = '[EMAIL PROTECTED]' % (listname, domain)
         return MailList(listid)
     open = staticmethod(open)
 
@@ -73,9 +73,7 @@
             raise errors.NoListError(listid)
         self._listid = listid
 
-    def __getattribute__(self, attr):
-        if attr.startswith('_'):
-            return super(MailList, self).__getattribute__(attr)
+    def __getattr__(self, attr):
         return dbmgr.lists.get(self._listid, attr)
 
     def __setattr__(self, attr, val):
@@ -83,3 +81,6 @@
             super(MailList, self).__setattr__(attr, val)
             return
         dbmgr.lists.set(self._listid, attr, val)
+
+    def delete(self):
+        dbmgr.lists.delete_list(self._listid)


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

Reply via email to