Added IMember.subscriber to definitively return how a member is subscribed to
commit85afb7bac938eb2c2f00507482886e1470bdcaa1
authorBarry Warsaw <barry@list.org>
Tue, 14 Apr 2015 16:35:53 +0000 (14 12:35 -0400)
committerBarry Warsaw <barry@list.org>
Tue, 14 Apr 2015 16:35:53 +0000 (14 12:35 -0400)
treec65543aa61bc2dbdeaf4e914fb79160dcdffb864
parent7317b94a0b746f0287ecbc5654ec544ce0112adb
Added IMember.subscriber to definitively return how a member is subscribed to
the mailing list (via preferred address/user or explicit address).

IMember.get_member() is defined to return the explicit address when members
are subscribed in both ways.

IMember.get_memberships() returns a sequence of length 0, 1, or 2 containing
all the member records associated with the email address.

Fixed the AbstractMemberRoster methods query to properly return subscriptions
via the user's preferred address and via an explicit address.
src/mailman/interfaces/member.py
src/mailman/interfaces/roster.py
src/mailman/model/docs/membership.rst
src/mailman/model/member.py
src/mailman/model/roster.py
src/mailman/model/tests/test_roster.py