summaryrefslogtreecommitdiff
path: root/Mailman/interfaces/database.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/interfaces/database.py')
-rw-r--r--Mailman/interfaces/database.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/Mailman/interfaces/database.py b/Mailman/interfaces/database.py
index 23405b9e8..f4dd693a4 100644
--- a/Mailman/interfaces/database.py
+++ b/Mailman/interfaces/database.py
@@ -30,12 +30,24 @@ from zope.interface import Interface, Attribute
class IDatabase(Interface):
"""Database layer interface."""
- def initialize():
- """Initialize the database layer, using whatever means necessary."""
+ def initialize(debug=None):
+ """Initialize the database layer, using whatever means necessary.
+
+ :param debug: When None (the default), the configuration file
+ determines whether the database layer should have increased
+ debugging or not. When True or False, this overrides the
+ configuration file setting.
+ """
def flush():
"""Flush current database changes."""
+ def _reset():
+ """Reset the database to its pristine state.
+
+ This is only used by the test framework.
+ """
+
# XXX Eventually we probably need to support a transaction manager
# interface, e.g. begin(), commit(), abort(). We will probably also need
# to support a shutdown() method for cleanly disconnecting from the