diff --git a/lookup/management/__init__.py b/lookup/management/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/lookup/management/commands/__init__.py b/lookup/management/commands/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/lookup/management/commands/cache_ids.py b/lookup/management/commands/cache_ids.py new file mode 100644 index 0000000..de45a22 --- /dev/null +++ b/lookup/management/commands/cache_ids.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 + +from django.core.management.base import BaseCommand, CommandError +from django.conf import settings + + +class Command(BaseCommand): + """ + load new ids into cache + """ + help = 'load ids from sites that dont support search.' + args = '' + + def handle(self, **options): + import oxdata.lookup.cache + lookup.cache.getIds() +