summaryrefslogtreecommitdiff
path: root/Mailman/tests/test_documentation.py
diff options
context:
space:
mode:
authorBarry Warsaw2007-07-24 18:45:25 -0400
committerBarry Warsaw2007-07-24 18:45:25 -0400
commit7a7826e112a1d3f1999cb7a11e6df98cfcb712c9 (patch)
treea4c0679185aeb4f4e482e88198b6bee8737837f2 /Mailman/tests/test_documentation.py
parent8158f01c930d856b0ff892aab53cfbbcc25c85ec (diff)
downloadmailman-7a7826e112a1d3f1999cb7a11e6df98cfcb712c9.tar.gz
mailman-7a7826e112a1d3f1999cb7a11e6df98cfcb712c9.tar.zst
mailman-7a7826e112a1d3f1999cb7a11e6df98cfcb712c9.zip
Add setuptools plug-in entry point for defining different database backends.
Now someone could distribute a setuptools package that provided say, a MySQL database implementation and very easily override the stock database. How awesome is setuptools? Removed MANAGERS_INIT_FUNCTION since setuptools gives us a much more standard way of defining this plug-in entry point. Remove other old crud from Defaults.py. Restructure our own 'stock' database backend to be a plugin so it's totally on par with any other package. The only special case is that if more than one such entry point is defined, we filter out the 'stock' one (i.e. ours) under the assumption that the user is overriding it. If we still have more than one plug-in, it's an error. Restructure the initialization subsystem to use the plug-in, doing all the proper assertions and what not. The IDatabase interface defines what the database back-end plugin must provide. I've no doubt this will eventually need a bit more fleshing out, but it gives all this stuff a principled hook point instead of something ad-hoc.
Diffstat (limited to 'Mailman/tests/test_documentation.py')
0 files changed, 0 insertions, 0 deletions