summaryrefslogtreecommitdiff
path: root/Mailman/database/listmanager.py
diff options
context:
space:
mode:
authorBarry Warsaw2007-11-08 11:54:25 -0500
committerBarry Warsaw2007-11-08 11:54:25 -0500
commitb28433d0eb1d8cf024f7926cabb37a740571800e (patch)
treea61a7640881f7f051920e46a6697932a56fc6c12 /Mailman/database/listmanager.py
parent73cd0202ff15835139ad4e1d6bfab3a35e804e5b (diff)
downloadmailman-b28433d0eb1d8cf024f7926cabb37a740571800e.tar.gz
mailman-b28433d0eb1d8cf024f7926cabb37a740571800e.tar.zst
mailman-b28433d0eb1d8cf024f7926cabb37a740571800e.zip
More Unicodification; fixed two more doctests.
Diffstat (limited to 'Mailman/database/listmanager.py')
-rw-r--r--Mailman/database/listmanager.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Mailman/database/listmanager.py b/Mailman/database/listmanager.py
index 1a17cb96e..cd1f03fe2 100644
--- a/Mailman/database/listmanager.py
+++ b/Mailman/database/listmanager.py
@@ -49,8 +49,12 @@ class ListManager(object):
mlist.delete()
def get(self, fqdn_listname):
+ # Avoid circular imports.
+ from Mailman.database.model import MailingList
listname, hostname = split_listname(fqdn_listname)
- mlist = MailingList.get_by(list_name=listname, host_name=hostname)
+ mlist = config.db.store.find(MailingList,
+ list_name=listname,
+ host_name=hostname).one()
if mlist is not None:
# XXX Fixme
mlist._restore()