summaryrefslogtreecommitdiff
path: root/ishtar_common/management/commands/update_specific_importers.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-03-02 16:14:45 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-03-02 16:41:08 +0100
commit0dc167611a2f9fecc58b9709487362ceb3eb9752 (patch)
tree734d1eddcc720b9663852845862095979bc415a9 /ishtar_common/management/commands/update_specific_importers.py
parentf4d375c0e76b9d01bf5ac8311c220d5d80a55b41 (diff)
downloadIshtar-0dc167611a2f9fecc58b9709487362ceb3eb9752.tar.bz2
Ishtar-0dc167611a2f9fecc58b9709487362ceb3eb9752.zip
Maintenance scripts: delete deprecated and migrate to ishtar_maintenance
Diffstat (limited to 'ishtar_common/management/commands/update_specific_importers.py')
-rw-r--r--ishtar_common/management/commands/update_specific_importers.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/ishtar_common/management/commands/update_specific_importers.py b/ishtar_common/management/commands/update_specific_importers.py
deleted file mode 100644
index 9a13e3f3e..000000000
--- a/ishtar_common/management/commands/update_specific_importers.py
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-
-from optparse import make_option
-
-from django.core.management.base import BaseCommand
-
-IMPORTERS = []
-
-from archaeological_files.data_importer import FileImporterSraPdL
-IMPORTERS.append(FileImporterSraPdL)
-
-
-class Command(BaseCommand):
- help = "Update each specific importer"
- option_list = list(BaseCommand.option_list) + [
- make_option(
- '--force',
- action='store_true',
- dest='force',
- default=False,
- help='Force the deletion of existing importers. '
- 'ATTENTION: all associated imports and all associated items '
- 'will be deleted.')]
-
- def handle(self, *args, **options):
- for importer in IMPORTERS:
- response = importer()._create_models(force=options['force'])
- if response:
- self.stdout.write("%s configured\n" % importer.__name__)
- self.stdout.flush()