diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-01-28 01:41:20 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-01-28 01:41:20 +0100 |
commit | c42dd6617d4da7767097190cc243cf45aa021259 (patch) | |
tree | 5172e69dc2459ae1779533c440298ab52eb1c83e /archaeological_operations | |
parent | c730975bd9dab4deaf79880075fb919ed9f96427 (diff) | |
download | Ishtar-c42dd6617d4da7767097190cc243cf45aa021259.tar.bz2 Ishtar-c42dd6617d4da7767097190cc243cf45aa021259.zip |
Fix Bibracte import - add finds imports
Diffstat (limited to 'archaeological_operations')
-rw-r--r-- | archaeological_operations/data_importer.py | 2 | ||||
-rw-r--r-- | archaeological_operations/management/commands/import_operations.py | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/archaeological_operations/data_importer.py b/archaeological_operations/data_importer.py index 6b7c390cd..de0965ed8 100644 --- a/archaeological_operations/data_importer.py +++ b/archaeological_operations/data_importer.py @@ -198,7 +198,7 @@ class ParcelImporterBibracte(Importer): # [UnicodeFormater(4), UnicodeFormater(6),], # regexp=RE_PARCEL_SECT_NUM, # regexp_formater_args=[0, 1], required=False, - # duplicate_field='external_id',), + # duplicate_fields=['external_id'],), ImportFormater('external_id', UnicodeFormater(12), required=False,), diff --git a/archaeological_operations/management/commands/import_operations.py b/archaeological_operations/management/commands/import_operations.py index 92b9cc4b2..de64931a0 100644 --- a/archaeological_operations/management/commands/import_operations.py +++ b/archaeological_operations/management/commands/import_operations.py @@ -36,6 +36,14 @@ try: except ImportError: pass +try: + from archaeological_finds.data_importer import * + IMPORTERS['bibracte-finds'] = FindsImporterBibracte + IMPORTERS['bibracte-finds-alt'] = FindAltImporterBibracte + IMPORTERS['bibracte-treatments'] = TreatmentImporterBibracte +except ImportError: + pass + class Command(BaseCommand): args = '<filename> <importer_name> [<nb lines skipped>]' help = "Import archaeological operations" |