diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2015-10-20 22:57:54 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2015-10-20 22:57:54 +0200 | 
| commit | 66cef8dae427c28860951df566fbd1f85a37ba8f (patch) | |
| tree | dc211417690fe8e14a9c3beb023e7dde9f225aaa /archaeological_files/data_importer.py | |
| parent | baed485b051d9fa0bb92d079b83844e6cda1d838 (diff) | |
| download | Ishtar-66cef8dae427c28860951df566fbd1f85a37ba8f.tar.bz2 Ishtar-66cef8dae427c28860951df566fbd1f85a37ba8f.zip | |
Imports: match file - fix sra pdl import
Diffstat (limited to 'archaeological_files/data_importer.py')
| -rw-r--r-- | archaeological_files/data_importer.py | 12 | 
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 | 
