Part of lp.registry.interfaces.mailinglist View In Hierarchy
PublicPersonChoice | team | The team that this mailing list is associated with. |
PublicPersonChoice | registrant | The person who registered the mailing list. |
Datetime | date_registered | The date on which this mailing list was registered. |
PublicPersonChoice | reviewer | The person who reviewed this mailing list registration, or None if the registration has not yet been reviewed. |
Datetime | date_reviewed | The date on which this mailing list registration was reviewed, or None if the registration has not yet been reviewed. |
Datetime | date_activated | The date on which this mailing list was activated, meaning that the Mailman process has successfully created it. This may be None if the mailing list has not yet been activated, or that its activation has failed. |
Choice | status | The status of the mailing list. |
Text | welcome_message | Any instructions or links that should be sent to new subscribers to this mailing list. |
TextLine | address | The text representation of this team's email address. |
TextLine | archive_url | This is the url to the archive if the mailing list has ever activated. Such a list, even if now inactive, may still have an archive. If the list has never been activated, this will be None. |
Bool | is_public | Undocumented |
Bool | is_usable | This doesn't necessarily mean that the list is in perfect shape; its status might be MailingListStatus.MOD_FAILED . But it should be able to handle messages. |
Method | startConstructing | Set the status to the MailingListStatus.CONSTRUCTING state. |
Method | startUpdating | Set the status to the MailingListStatus.UPDATING state. |
Method | transitionToStatus | Transition the list's state after a remote action has taken place. |
Method | deactivate | Deactivate the mailing list. |
Method | reactivate | Reactivate the mailing list. |
Method | getSubscription | Get a person's subscription details for the mailing list. |
Method | subscribe | Subscribe a person to the mailing list. |
Method | unsubscribe | Unsubscribe the person from the mailing list. |
Method | changeAddress | Change the address a person is subscribed with. |
Method | getSubscribers | Return the set of subscribers. |
Method | holdMessage | Hold a message for approval on this mailing list. |
Method | getReviewableMessages | Return the set of all held messages for this list requiring review. |
Method | purge | Place the mailing list into the PURGED state, if safe to do so. |
MailingListStatus.MOD_FAILED
. But it should be able to handle messages.MailingListStatus.CONSTRUCTING
state.
This state change happens when Mailman pulls the list approved mailing lists and begins constructing them.
Raises | AssertionError | When prior to constructing, the status of the
mailing list is not MailingListStatus.APPROVED . |
MailingListStatus.UPDATING
state.
This state change happens when Mailman pulls the list of modified mailing lists and begins updating them.
Raises | AssertionError | When prior to updating, the status if the
mailing list is not MailingListStatus.MODIFIED . |
This sets the status of the mailing list to reflect the results of action by Mailman. It handles various state changes, updating other attributes such as the activate date as necessary.
Parameters | target_state | The new state. |
Raises | AssertionError | When an invalid state transition is made. |
This sets the status to MailingListStatus.INACTIVE
.
Raises | AssertionError | When prior to deactivation, the status of the
mailing list is not MailingListStatus.ACTIVE . |
This sets the status to MailingListStatus.APPROVED
.
Raises | AssertionError | When prior to reactivation, the status of the
mailing list is not MailingListStatus.INACTIVE . |
Parameters | person | The person whose subscription details to get. |
Returns | If the person is subscribed to this mailing list, an IMailingListSubscription. Otherwise, None. |
Parameters | person | The person to subscribe to the mailing list. The person must be a member (either direct or indirect) of the team linked to this mailing list. |
address | The IEmailAddress to use for the subscription. The
address must be owned by person . If None (the default), then
the person's preferred email address is used. If the person's
preferred address changes, their subscription address will change
as well. | |
Raises | CannotSubscribe | Raised when the person is not allowed to
subscribe to the mailing list with the given address. For
example, this is raised when the person is not a member of the
team linked to this mailing list, when person is a team, or when
person does not own the given email address. |
Parameters | person | A member of the mailing list. |
Raises | CannotUnsubscribe | Raised when the person is not a member of the mailing list. |
Parameters | person | The mailing list subscriber. |
address | The new IEmailAddress to use for the subscription.
The address must be owned by person . If None, the person's
preferred email address is used. If the person's preferred
address changes, their subscription address will change as well. | |
Raises | CannotChangeSubscription | Raised when the person is not a
allowed to change their subscription address. For example, this
is raised when the person is not a member of the team linked to
this mailing list, when person is a team, or when person does
not own the given email address. |
Return the set of subscribers. :return: a result set of the subscribers sorted by full name. These are the people who will receive messages posted to the mailing list.
Parameters | message | The IMessage to hold. |
Returns | The IMessageApproval representing the held message. |
Parameters | message_id_filter | If supplied only messages with message ids in the filter are returned. |
Returns | A sequence of IMessageApproval`s for this mailing list,
where the status is `PostedMessageStatus.NEW . The returned set
is ordered first by the date the message was posted, then by
Message-ID. |