summaryrefslogtreecommitdiff
path: root/Mailman/Commands/cmd_who.py
diff options
context:
space:
mode:
authorBarry Warsaw2007-07-14 21:23:28 -0400
committerBarry Warsaw2007-07-14 21:23:28 -0400
commit327865eaf118f40063366acad9c7d97487e010d6 (patch)
treeeda494bb7560b1427813ae7ec51a22e3d0444703 /Mailman/Commands/cmd_who.py
parent288ae405b09baa443eb1b39422c48c315fbb2e5a (diff)
downloadmailman-327865eaf118f40063366acad9c7d97487e010d6.tar.gz
mailman-327865eaf118f40063366acad9c7d97487e010d6.tar.zst
mailman-327865eaf118f40063366acad9c7d97487e010d6.zip
Diffstat (limited to 'Mailman/Commands/cmd_who.py')
-rw-r--r--Mailman/Commands/cmd_who.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/Mailman/Commands/cmd_who.py b/Mailman/Commands/cmd_who.py
index 8470ef9d6..ecd1786d8 100644
--- a/Mailman/Commands/cmd_who.py
+++ b/Mailman/Commands/cmd_who.py
@@ -17,8 +17,8 @@
from email.Utils import parseaddr
-from Mailman import mm_cfg
from Mailman import i18n
+from Mailman.configuration import config
STOP = 1
@@ -79,8 +79,8 @@ def process(res, args):
# Public rosters
if args:
if len(args) == 1:
- if mlist.Authenticate((mm_cfg.AuthListModerator,
- mm_cfg.AuthListAdmin),
+ if mlist.Authenticate((config.AuthListModerator,
+ config.AuthListAdmin),
args[0]):
full = True
else:
@@ -102,15 +102,15 @@ def process(res, args):
usage(res)
return STOP
if mlist.isMember(address) and mlist.Authenticate(
- (mm_cfg.AuthUser,
- mm_cfg.AuthListModerator,
- mm_cfg.AuthListAdmin),
+ (config.AuthUser,
+ config.AuthListModerator,
+ config.AuthListAdmin),
password, address):
# Then
ok = True
if mlist.Authenticate(
- (mm_cfg.AuthListModerator,
- mm_cfg.AuthListAdmin),
+ (config.AuthListModerator,
+ config.AuthListAdmin),
password):
# Then
ok = full = True
@@ -119,8 +119,8 @@ def process(res, args):
if len(args) <> 1:
usage(res)
return STOP
- if mlist.Authenticate((mm_cfg.AuthListModerator,
- mm_cfg.AuthListAdmin),
+ if mlist.Authenticate((config.AuthListModerator,
+ config.AuthListAdmin),
args[0]):
ok = full = True
if not ok:
@@ -137,7 +137,7 @@ def process(res, args):
def addmembers(members):
for member in members:
if not full and mlist.getMemberOption(member,
- mm_cfg.ConcealSubscription):
+ config.ConcealSubscription):
continue
realname = mlist.getMemberName(member)
if realname: