summaryrefslogtreecommitdiff
path: root/Mailman/interfaces/roster.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/interfaces/roster.py')
-rw-r--r--Mailman/interfaces/roster.py22
1 files changed, 13 insertions, 9 deletions
diff --git a/Mailman/interfaces/roster.py b/Mailman/interfaces/roster.py
index 7ddbd5101..281e02a05 100644
--- a/Mailman/interfaces/roster.py
+++ b/Mailman/interfaces/roster.py
@@ -22,21 +22,25 @@ from zope.interface import Interface, Attribute
class IRoster(Interface):
- """A roster is a collection of IUsers."""
+ """A roster is a collection of IMembers."""
name = Attribute(
"""The name for this roster.
Rosters are considered equal if they have the same name.""")
- addresses = Attribute(
- """An iterator over all the addresses managed by this roster.""")
+ members = Attribute(
+ """An iterator over all the IMembers managed by this roster.""")
+
+ users = Attribute(
+ """An iterator over all the IUsers reachable by this roster.
- def create(email_address, real_name=None):
- """Create an IAddress and return it.
+ This returns all the users for all the members managed by this roster.
+ """)
- email_address is textual email address to add. real_name is the
- optional real name that gets associated with the email address.
+ addresses = Attribute(
+ """An iterator over all the IAddresses reachable by this roster.
- Raises ExistingAddressError if address already exists.
- """
+ This returns all the addresses for all the users for all the members
+ managed by this roster.
+ """)