diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-01-28 18:01:24 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-01-28 18:01:24 +0100 |
commit | 9859c31976a88c63baf36a66839d13eb3fdd3b88 (patch) | |
tree | 717cef3f16eca89b1a5496489a0889fbd7dafc27 /archaeological_operations/management | |
parent | c42dd6617d4da7767097190cc243cf45aa021259 (diff) | |
download | Ishtar-9859c31976a88c63baf36a66839d13eb3fdd3b88.tar.bz2 Ishtar-9859c31976a88c63baf36a66839d13eb3fdd3b88.zip |
Add external_id to sources. Bibracte import for sources.
Diffstat (limited to 'archaeological_operations/management')
-rw-r--r-- | archaeological_operations/management/commands/import_operations.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/archaeological_operations/management/commands/import_operations.py b/archaeological_operations/management/commands/import_operations.py index de64931a0..09bfe23b6 100644 --- a/archaeological_operations/management/commands/import_operations.py +++ b/archaeological_operations/management/commands/import_operations.py @@ -27,12 +27,13 @@ from archaeological_operations.data_importer import * IMPORTERS = { 'bibracte-operation':OperationImporterBibracte, 'bibracte-parcelle':ParcelImporterBibracte, + 'bibracte-docs':DocImporterBibracte, } try: from archaeological_context_records.data_importer import * - IMPORTERS['bibracte-UE'] = ContextRecordsImporterBibracte - IMPORTERS['bibracte-rel-UE'] = ContextRecordsRelationImporterBibracte + IMPORTERS['bibracte-ue'] = ContextRecordsImporterBibracte + IMPORTERS['bibracte-ue-rel'] = ContextRecordsRelationImporterBibracte except ImportError: pass @@ -53,7 +54,7 @@ class Command(BaseCommand): raise CommandError("No file provided.") if len(args) < 2 or args[1] not in IMPORTERS: msg = "Bad importer. \nAvailable importers are:\n" - for key in IMPORTERS: + for key in sorted(IMPORTERS.keys()): msg += "\t* %s: %s\n" % (key, IMPORTERS[key].DESC.encode('utf-8') or "-") raise CommandError(msg) |