2011-12-19 07:20:24 +00:00
|
|
|
from django.core.management.base import BaseCommand
|
|
|
|
|
|
|
|
from regluit.core import models
|
|
|
|
from regluit.core import bookloader
|
|
|
|
|
|
|
|
class Command(BaseCommand):
|
|
|
|
|
|
|
|
def handle(self, *args, **options):
|
|
|
|
for work in models.Work.objects.filter(openlibrary_lookup__isnull=True):
|
2011-12-20 17:19:23 +00:00
|
|
|
print "loading openlibrary data for %s" % work
|
2011-12-19 07:20:24 +00:00
|
|
|
bookloader.add_openlibrary(work)
|