Use list of strings instead of block string for config changes
This commit is contained in:
parent
ff944231d8
commit
812affd0ae
@ -51,26 +51,27 @@ class ListManager:
|
|||||||
)
|
)
|
||||||
|
|
||||||
def config_list(self):
|
def config_list(self):
|
||||||
config_changes = """
|
config_changes = "\n".join(
|
||||||
# TODO: set real_name, moderator, subject prefix, and reply-to address
|
[
|
||||||
from_is_list = 1
|
# TODO: set real_name, moderator, subject prefix, and reply-to address
|
||||||
anonymous_list = 1
|
"from_is_list = 1",
|
||||||
first_strip_reply_to = 1
|
"anonymous_list = 1",
|
||||||
reply_goes_to_list = 2
|
"first_strip_reply_to = 1",
|
||||||
|
# Use explicit address for Reply-To
|
||||||
# quiet member management
|
"reply_goes_to_list = 2",
|
||||||
send_reminders = 0
|
# quiet member management
|
||||||
send_welcome_msg = 0
|
"send_reminders = 0",
|
||||||
send_goodbye_msg = 0
|
"send_welcome_msg = 0",
|
||||||
|
"send_goodbye_msg = 0",
|
||||||
new_member_options = 272
|
# ConcealSubscription | DontReceiveDuplicates
|
||||||
advertised = 0
|
"new_member_options = 272",
|
||||||
private_roster = 2 # only admins can view the roster
|
"advertised = 0",
|
||||||
default_member_moderation = 1
|
"private_roster = 2", # only admins can view the roster
|
||||||
|
"default_member_moderation = 1",
|
||||||
generic_nonmember_action = 3 # discard non-member emails
|
"generic_nonmember_action = 3", # discard non-member emails
|
||||||
forward_auto_discards = 0 # don't notify admin about discards
|
"forward_auto_discards = 0", # don't notify admin about discards
|
||||||
"""
|
]
|
||||||
|
)
|
||||||
|
|
||||||
with tempfile.NamedTemporaryFile("w", suffix=".py") as config_file:
|
with tempfile.NamedTemporaryFile("w", suffix=".py") as config_file:
|
||||||
config_file.write(config_changes)
|
config_file.write(config_changes)
|
||||||
|
Loading…
Reference in New Issue
Block a user