diff options
| author | Barry Warsaw | 2008-03-12 20:34:03 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2008-03-12 20:34:03 -0400 |
| commit | 91f84edd80b4470cb0c9dfca30890388af6daec8 (patch) | |
| tree | e6cd540bfb2f575ce65e41ac2de4b9fc3d0631fe /mailman/interfaces/database.py | |
| parent | 4e2070ca3d8bca288cbc2d96771a78c22a7ec031 (diff) | |
| download | mailman-91f84edd80b4470cb0c9dfca30890388af6daec8.tar.gz mailman-91f84edd80b4470cb0c9dfca30890388af6daec8.tar.zst mailman-91f84edd80b4470cb0c9dfca30890388af6daec8.zip | |
Diffstat (limited to 'mailman/interfaces/database.py')
| -rw-r--r-- | mailman/interfaces/database.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/mailman/interfaces/database.py b/mailman/interfaces/database.py index 0bacdaa3a..706613ba0 100644 --- a/mailman/interfaces/database.py +++ b/mailman/interfaces/database.py @@ -65,10 +65,14 @@ class IDatabase(Interface): 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 - # database.sy + def begin(): + """Begin the current transaction.""" + + def commit(): + """Commit the current transaction.""" + + def abort(): + """Abort the current transaction.""" list_manager = Attribute( """The IListManager instance provided by the database layer.""") |
