diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2015-01-29 00:43:20 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2015-01-29 00:43:20 +0100 | 
| commit | c7d253fc94038cd3eb20e190581eff3b461e463b (patch) | |
| tree | 48605e15c495926db24b34a9926a05d19ce3cfbd /archaeological_operations/data_importer.py | |
| parent | af29d3a7eb0dac8d46bed872b05502383d57e858 (diff) | |
| download | Ishtar-c7d253fc94038cd3eb20e190581eff3b461e463b.tar.bz2 Ishtar-c7d253fc94038cd3eb20e190581eff3b461e463b.zip  | |
Fix Bibratce Import - Fix context record window
Diffstat (limited to 'archaeological_operations/data_importer.py')
| -rw-r--r-- | archaeological_operations/data_importer.py | 13 | 
1 files changed, 5 insertions, 8 deletions
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,),  | 
