diff options
| author | bwarsaw | 2007-01-14 03:24:31 +0000 |
|---|---|---|
| committer | bwarsaw | 2007-01-14 03:24:31 +0000 |
| commit | 898eeaebe945b82c270a31578dabd19728f4475b (patch) | |
| tree | 7c85252428206288b9df74075ea8b15097dfb390 /Mailman/bin/import.py | |
| parent | 758c067131369c35b4b737d409ca7809dcd4920a (diff) | |
| download | mailman-898eeaebe945b82c270a31578dabd19728f4475b.tar.gz mailman-898eeaebe945b82c270a31578dabd19728f4475b.tar.zst mailman-898eeaebe945b82c270a31578dabd19728f4475b.zip | |
Diffstat (limited to 'Mailman/bin/import.py')
| -rw-r--r-- | Mailman/bin/import.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Mailman/bin/import.py b/Mailman/bin/import.py index b643de389..e9171f73a 100644 --- a/Mailman/bin/import.py +++ b/Mailman/bin/import.py @@ -34,11 +34,9 @@ from Mailman.MailList import MailList from Mailman.i18n import _ from Mailman.initialize import initialize - __i18n_templates__ = True - def nodetext(node): # Expect only one TEXT_NODE in the list of children @@ -211,6 +209,20 @@ def create(all_listdata): mlist.Lock() try: for option, value in list_config.items(): + # XXX Here's what sucks. Some properties need to have + # _setValue() called on the gui component, because those + # methods do some pre-processing on the values before they're + # applied to the MailList instance. But we don't have a good + # way to find a category and sub-category that a particular + # property belongs to. Plus this will probably change. So + # for now, we'll just hard code the extra post-processing + # here. The good news is that not all _setValue() munging + # needs to be done -- for example, we've already converted + # everything to dollar strings. + if option in ('filter_mime_types', 'pass_mime_types', + 'filter_filename_extensions', + 'pass_filename_extensions'): + value = value.splitlines() setattr(mlist, option, value) for member in list_roster: mid = member['id'] |
