Renamed ModelTagManager on Book and Fragment models to tagged and added new default...
[wolnelektury.git] / catalogue / management / commands / importbooks.py
index fbc653f..22dd237 100644 (file)
@@ -3,10 +3,8 @@ import os
 from django.core.management.base import BaseCommand
 from django.core.management.color import color_style
 from optparse import make_option
 from django.core.management.base import BaseCommand
 from django.core.management.color import color_style
 from optparse import make_option
-from slughifi import slughifi
-import dcparser
 
 
-from catalogue.models import Book, Tag
+from catalogue.models import Book
 
 
 class Command(BaseCommand):
 
 
 class Command(BaseCommand):
@@ -40,7 +38,7 @@ class Command(BaseCommand):
                     if not os.path.splitext(file_name)[1] == '.xml':
                         print self.style.NOTICE("Skipping '%s': not an XML file." % file_path)
                         continue
                     if not os.path.splitext(file_name)[1] == '.xml':
                         print self.style.NOTICE("Skipping '%s': not an XML file." % file_path)
                         continue
-                    if verbosity > 1:
+                    if verbosity > 0:
                         print "Parsing '%s'" % file_path
                     
                     Book.from_xml_file(file_path)
                         print "Parsing '%s'" % file_path
                     
                     Book.from_xml_file(file_path)