summaryrefslogtreecommitdiff
path: root/Mailman/interfaces/member.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/interfaces/member.py')
-rw-r--r--Mailman/interfaces/member.py48
1 files changed, 48 insertions, 0 deletions
diff --git a/Mailman/interfaces/member.py b/Mailman/interfaces/member.py
new file mode 100644
index 000000000..5d5e3f717
--- /dev/null
+++ b/Mailman/interfaces/member.py
@@ -0,0 +1,48 @@
+# Copyright (C) 2007 by the Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+# USA.
+
+
+"""Interface describing the basics of a member."""
+
+from zope.interface import Interface, Attribute
+
+
+
+class IMember(Interface):
+ """A member of a mailing list."""
+
+ mailing_list = Attribute(
+ """The mailing list subscribed to.""")
+
+ address = Attribute(
+ """The email address that's subscribed to the list.""")
+
+ preferences = Attribute(
+ """The set of preferences for this subscription.
+
+ This will return an IPreferences object using the following lookup
+ rules:
+
+ 1. member
+ 2. address
+ 3. user
+ 4. mailing list
+ 5. system default
+ """)
+
+ role = Attribute(
+ """The role of this membership.""")