From e5f4fd5bc800695d335456ca2103fbbe650ce890 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 29 Jan 2015 00:43:20 +0100 Subject: Fix Bibratce Import - Fix context record window --- archaeological_operations/data_importer.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'archaeological_operations/data_importer.py') diff --git a/archaeological_operations/data_importer.py b/archaeological_operations/data_importer.py index c1fd99fe1..2c016b588 100644 --- a/archaeological_operations/data_importer.py +++ b/archaeological_operations/data_importer.py @@ -192,14 +192,11 @@ class ParcelImporterBibracte(Importer): # code OA ImportFormater('operation__operation_code', IntegerFormater(),), # identifiant parcelle - #ImportFormater(['section', 'parcel_number'], - # [UnicodeFormater(4), UnicodeFormater(6),], - # regexp=RE_PARCEL_SECT_NUM, - # regexp_formater_args=[0, 1], required=False, - # duplicate_fields=['external_id'],), - ImportFormater('external_id', - UnicodeFormater(12), - required=False,), + ImportFormater(['section', 'parcel_number'], + [UnicodeFormater(4), UnicodeFormater(6),], + regexp=RE_PARCEL_SECT_NUM, + regexp_formater_args=[[0], [1]], required=False, + duplicate_fields=['external_id'],), # numero parcelle ImportFormater('parcel_number', UnicodeFormater(6), required=False,), -- cgit v1.2.3