summaryrefslogtreecommitdiff
path: root/archaeological_operations
diff options
context:
space:
mode:
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
commitc42dd6617d4da7767097190cc243cf45aa021259 (patch)
tree5172e69dc2459ae1779533c440298ab52eb1c83e /archaeological_operations
parentc730975bd9dab4deaf79880075fb919ed9f96427 (diff)
downloadIshtar-c42dd6617d4da7767097190cc243cf45aa021259.tar.bz2
Ishtar-c42dd6617d4da7767097190cc243cf45aa021259.zip
Fix Bibracte import - add finds imports
Diffstat (limited to 'archaeological_operations')
-rw-r--r--archaeological_operations/data_importer.py2
-rw-r--r--archaeological_operations/management/commands/import_operations.py8
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"