summaryrefslogtreecommitdiff
path: root/archaeological_files/data_importer.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_files/data_importer.py')
-rw-r--r--archaeological_files/data_importer.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/archaeological_files/data_importer.py b/archaeological_files/data_importer.py
index ad05bca4c..a1dc0fc3a 100644
--- a/archaeological_files/data_importer.py
+++ b/archaeological_files/data_importer.py
@@ -119,10 +119,9 @@ class FileImporterSraPdL(FilePostProcessing, Importer):
'general_contractor__town'],
[UnicodeFormater(500, clean=True),
UnicodeFormater(5, re_filter=RE_CD_POSTAL_FILTER),
- TownFormater(town_full_dct=tf._town_full_dct,
- town_dct=tf._town_dct)],
+ UnicodeFormater(70, clean=True),],
regexp=RE_ADD_CD_POSTAL_TOWN,
- regexp_formater_args=[[0], [1], [2, 1]], required=False,
+ regexp_formater_args=[[0], [1], [2]], required=False,
comment=u"Aménageur - adresse"),
ImportFormater(
"general_contractor__title", # E, 5
@@ -166,10 +165,9 @@ class FileImporterSraPdL(FilePostProcessing, Importer):
[UnicodeFormater(300, clean=True),
UnicodeFormater(300, clean=True),
UnicodeFormater(5, re_filter=RE_CD_POSTAL_FILTER),
- TownFormater(town_full_dct=tf._town_full_dct,
- town_dct=tf._town_dct)],
+ UnicodeFormater(70, clean=True),],
regexp=RE_NAME_ADD_CD_POSTAL_TOWN,
- regexp_formater_args=[[0], [1], [2], [3, 2]],
+ regexp_formater_args=[[0], [1], [2], [3]],
comment=u"Aménageur - adresse",
required=False),
ImportFormater('comment', # S, 19
@@ -180,7 +178,7 @@ class FileImporterSraPdL(FilePostProcessing, Importer):
DateFormater(['%d/%m/%Y', '%d/%m/%Y']),
comment=u"Date de création",
required=False,
- duplicate_fields=['creation_date']),
+ duplicate_fields=[['creation_date', False]]),
None, # U, 21
None, # V, 22
None, # W, 23