diff options
| author | bwarsaw | 2007-04-03 02:03:18 +0000 |
|---|---|---|
| committer | bwarsaw | 2007-04-03 02:03:18 +0000 |
| commit | 43f516b5d72a3d20f13957cee7f9c8a6699120ad (patch) | |
| tree | 98078bf1e0796a187df7584440c35ca3b50fdcf7 /Mailman/database/dbcontext.py | |
| parent | 6362c6e0a021eb5939d14b8ae4a2ed7b80371580 (diff) | |
| download | mailman-43f516b5d72a3d20f13957cee7f9c8a6699120ad.tar.gz mailman-43f516b5d72a3d20f13957cee7f9c8a6699120ad.tar.zst mailman-43f516b5d72a3d20f13957cee7f9c8a6699120ad.zip | |
Diffstat (limited to 'Mailman/database/dbcontext.py')
| -rw-r--r-- | Mailman/database/dbcontext.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Mailman/database/dbcontext.py b/Mailman/database/dbcontext.py index 306e0b2bb..3482122c9 100644 --- a/Mailman/database/dbcontext.py +++ b/Mailman/database/dbcontext.py @@ -129,7 +129,6 @@ class DBContext(object): # Higher level interface def api_lock(self, mlist): - self.session.expire(mlist) # Don't try to re-lock a list if mlist.fqdn_listname in self._mlist_txns: return @@ -152,6 +151,11 @@ class DBContext(object): txn.rollback() del mlist._txnkey + def api_load(self, mlist): + # Mark the MailList object such that future attribute accesses will + # refresh from the database. + self.session.expire(mlist) + def api_save(self, mlist): # When dealing with MailLists, .Save() will always be followed by # .Unlock(). However lists can also be unlocked without saving. But |
