Revision: 8128
http://svn.sourceforge.net/mailman/?rev=8128&view=rev
Author: bwarsaw
Date: 2006-12-31 15:20:48 -0800 (Sun, 31 Dec 2006)
Log Message:
-----------
Import list topics and header filters. Still to do: user topic selections.
Modified Paths:
--------------
trunk/mailman/Mailman/bin/import.py
Modified: trunk/mailman/Mailman/bin/import.py
===================================================================
--- trunk/mailman/Mailman/bin/import.py 2006-12-30 22:47:12 UTC (rev 8127)
+++ trunk/mailman/Mailman/bin/import.py 2006-12-31 23:20:48 UTC (rev 8128)
@@ -96,12 +96,14 @@
value = int(value)
except ValueError:
value = float(value)
- elif vtype == 'header_filter':
- # XXX
+ elif vtype in ('header_filter', 'topics'):
value = []
- elif vtype == 'topics':
- # XXX
- 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 :(
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org