diff options
| author | bwarsaw | 2006-07-16 22:03:56 +0000 |
|---|---|---|
| committer | bwarsaw | 2006-07-16 22:03:56 +0000 |
| commit | 7958b4d57dd75cb25894da523440c4dde78a0fa1 (patch) | |
| tree | 829382c297bf2e84bfe84ec4718bd7f49cd95c29 /Mailman/bin/request.py | |
| parent | 2863de361a5a597006d7ce57dc58f9c538021855 (diff) | |
| download | mailman-7958b4d57dd75cb25894da523440c4dde78a0fa1.tar.gz mailman-7958b4d57dd75cb25894da523440c4dde78a0fa1.tar.zst mailman-7958b4d57dd75cb25894da523440c4dde78a0fa1.zip | |
Add a framework for easier use of alternative MemberAdaptor implementations.
Also add an experimental (and currently non-functioning) SQLAlchemy
implementation.
The MemberAdaptor.py interface has been updated in a couple of ways. First, a
"transaction interface" has been added so that Mailman can properly sync with
the member adaptor. Newly supported methods are load(), lock(), save(), and
unlock() and these correspond to methods in the MailList object. Second,
__init__() is officially documented to take a MailList instance and nothing
else. Third, some of the existing docstrings were incorrect w.r.t. the
OldStyleMemberships implementation (such as rasing BadPasswordError in some
cases). Most of these should not be the responsibility of the MemberAdaptor,
so the docstrings have been updated.
Test cases have been added and a new Defaults.py.in variable called
MEMBER_ADAPTOR_CLASS has been added which names the class to use. Of course
OldStyleMemberships are named by default. There's also a
SQLALCHEMY_ENGINE_URL variable for use with the experimental member adaptor.
Fix a bug in Configuration where if the etc/mailman.cfg file wasn't found and
the mm_cfg.py file was used as a fallback, it would blow away the original
namespace copied from Defaults.py.in. This wasn't a problem until we started
adding additional names to that namespace, such as 'add_domain'.
Diffstat (limited to 'Mailman/bin/request.py')
0 files changed, 0 insertions, 0 deletions
