I'm trying to figure out how to extract the moderation flag for each user
in a list's config.pck file.
I know from Defaults.py that it's in the "Bitfield for user options"
section (below). But for a config.pck with the following:
'user_options': {'[email protected]': 296,
'[email protected]': 392,
'[email protected]': 408,
'[email protected]': 328},
How can I tell which ones are moderated? Automatically, I mean.
I know the "moderated" value is 128, but I don't understand how (or if it's
even possible) to pull out the value for a single flag.
# Bitfield for user options. See DEFAULT_NEW_MEMBER_OPTIONS above to set
# defaults for all new lists.
Digests = 0 # handled by other mechanism, doesn't need a flag.
DisableDelivery = 1 # Obsolete; use set/getDeliveryStatus()
DontReceiveOwnPosts = 2 # Non-digesters only
AcknowledgePosts = 4
DisableMime = 8 # Digesters only
ConcealSubscription = 16
SuppressPasswordReminder = 32
ReceiveNonmatchingTopics = 64
Moderate = 128
DontReceiveDuplicates = 256
--
===============================================
Russell Clemings
<[email protected]>
===============================================
------------------------------------------------------
Mailman-Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/[email protected]/
https://mail.python.org/archives/list/[email protected]/
Member address: [email protected]