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

Added Files:
        mailinglist.py 
Log Message:
intermediate

--- NEW FILE: mailinglist.py ---
# Copyright (C) 2004 Barry A. Warsaw
#
# 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., 59 Temple
# Place - Suite 330, Boston, MA 02111-1307, USA.

"""Interface for mailing lists.
"""

from protocols import Interface, Attribute
from mailman.interfaces.profile import DeliveryStatus, DeliveryMode



class IList(Interface):
    """Interface for mailing lists memberships."""

    listid = Attribute('Unique identifier for this mailing list.')

    mailhost = Attribute('The fqdn for the email interface to this list')

    webhost = Attribute('The fqdn for the web interface to this list')

    created = Attribute('The date the list was created.')

    def is_member(user):
        """Return True if the user uid is a member of this list."""

    def get_addresses(status=DeliveryStatus.Enabled,
                      mode=DeliveryMode.Regular):
        """Return an iterator providing IUser list members.

        The users returned must match the given criteria:

        status - If not None, specifies the delivery status for the users.

        mode - If not None, specifies the delivery mode for the users.
        """

    def subscribe(address):
        """Subscribe the IAddress to the mailing list.

        Raises AlreadySubscribedError if the address is already subscribed to
        the mailing list.
        """


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

Reply via email to