summaryrefslogtreecommitdiff
path: root/ishtar_common/data_importer.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-03-07 17:34:18 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-03-07 17:34:18 +0100
commit898e9e306d1bca2765bf0902cb67cb9d94e03c52 (patch)
tree0b5681eb64aca8616670ac6e03b0b64851b66880 /ishtar_common/data_importer.py
parent0dcab5e02a38a4151bb5a4d44bc351ce1062e072 (diff)
downloadIshtar-898e9e306d1bca2765bf0902cb67cb9d94e03c52.tar.bz2
Ishtar-898e9e306d1bca2765bf0902cb67cb9d94e03c52.zip
Exports: specific configuration to manage ambiguous column (refs #3446)
Diffstat (limited to 'ishtar_common/data_importer.py')
-rw-r--r--ishtar_common/data_importer.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ishtar_common/data_importer.py b/ishtar_common/data_importer.py
index 34394341c..61fae2721 100644
--- a/ishtar_common/data_importer.py
+++ b/ishtar_common/data_importer.py
@@ -47,8 +47,12 @@ class ImportFormater(object):
through_unicity_keys=None, duplicate_fields=[], regexp=None,
regexp_formater_args=[], force_value=None,
post_processing=False, concat=False, concat_str=False,
- comment="", force_new=None):
+ comment="", force_new=None, export_field_name=None):
self.field_name = field_name
+ if export_field_name:
+ self.export_field_name = export_field_name
+ else:
+ self.export_field_name = field_name
self.formater = formater
self.required = required
self.through = through