From 95fc64b4894e5985bb8d0e5e944b2cda38c9a58c Mon Sep 17 00:00:00 2001 From: Abhilash Raj Date: Thu, 25 Sep 2014 18:36:24 +0530 Subject: Add support for postgresql * revert changes in message_id_has encoding by barry * Change message_id_hash column to LargeBinary (from previously mistaken one i.e.unicode) * add missing import in database/types.py * fix a bug in database/Model.py, transaction has no method abort(), instead it is rollback() --- src/mailman/utilities/importer.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mailman/utilities/importer.py') diff --git a/src/mailman/utilities/importer.py b/src/mailman/utilities/importer.py index 26b7261e3..99531194f 100644 --- a/src/mailman/utilities/importer.py +++ b/src/mailman/utilities/importer.py @@ -128,6 +128,12 @@ def nonmember_action_mapping(value): }[value] +def int_to_bool(value): + if value: + return True + else: + return False + def check_language_code(code): if code is None: @@ -172,6 +178,9 @@ TYPES = dict( personalize=Personalization, preferred_language=check_language_code, reply_goes_to_list=ReplyToMunging, + allow_list_posts=int_to_bool, + include_rfc2369_headers=int_to_bool, + nntp_prefix_subject_too=int_to_bool, ) -- cgit v1.2.3-70-g09d2