Now importbooks command prints imported book files also on normal verbosity level.
authorMarek Stępniowski <marek@stepniowski.com>
Wed, 3 Sep 2008 20:57:09 +0000 (22:57 +0200)
committerMarek Stępniowski <marek@stepniowski.com>
Wed, 3 Sep 2008 20:57:09 +0000 (22:57 +0200)
catalogue/management/commands/importbooks.py

index fbc653f..838fd4f 100644 (file)
@@ -40,7 +40,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 verbosity > 1:
+                    if verbosity > 0:
                         print "Parsing '%s'" % file_path
                     
                     Book.from_xml_file(file_path)