summaryrefslogtreecommitdiff
path: root/Mailman/bin
diff options
context:
space:
mode:
authorbwarsaw2006-12-31 23:20:48 +0000
committerbwarsaw2006-12-31 23:20:48 +0000
commit7971cdb1d36862db483547c974f1e2e40980f3d3 (patch)
tree8df90cf1a4fe74d5b4a08ad57df9c4c3bf3dbc41 /Mailman/bin
parenta951f422ff1adb5533b5ec52495c0c25e060cab9 (diff)
downloadmailman-7971cdb1d36862db483547c974f1e2e40980f3d3.tar.gz
mailman-7971cdb1d36862db483547c974f1e2e40980f3d3.tar.zst
mailman-7971cdb1d36862db483547c974f1e2e40980f3d3.zip
Import list topics and header filters. Still to do: user topic selections.
Diffstat (limited to 'Mailman/bin')
-rw-r--r--Mailman/bin/import.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/Mailman/bin/import.py b/Mailman/bin/import.py
index b4d62a8f2..3d1210c8f 100644
--- a/Mailman/bin/import.py
+++ b/Mailman/bin/import.py
@@ -96,12 +96,14 @@ def parse_config(node):
value = int(value)
except ValueError:
value = float(value)
- elif vtype == 'header_filter':
- # XXX
- value = []
- elif vtype == 'topics':
- # XXX
+ elif vtype in ('header_filter', 'topics'):
value = []
+ fakebltins = dict(__builtins__ = dict(True=True, False=False))
+ for subnode in nodegen(child):
+ reprstr = nodetext(subnode)
+ # Turn the reprs back into tuples, in a safe way
+ tupleval = eval(reprstr, fakebltins)
+ value.append(tupleval)
else:
value = nodetext(child)
# And now some special casing :(