tweaks output
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 18 Dec 2009 14:28:29 +0100
changeset 4140 46ddd27a4ca4
parent 4139 2718f2fd0576
child 4141 637170c17643
tweaks output
devtools/dataimport.py
--- a/devtools/dataimport.py	Fri Dec 18 14:12:53 2009 +0100
+++ b/devtools/dataimport.py	Fri Dec 18 14:28:29 2009 +0100
@@ -63,7 +63,7 @@
     if skipfirst:
         rowcount -= 1
     if withpb:
-        pb = shellutils.ProgressBar(rowcount)
+        pb = shellutils.ProgressBar(rowcount, 50)
     for urow in ucsvreader(file(filepath), encoding, separator, quote, skipfirst):
         yield urow
         if withpb:
@@ -308,7 +308,7 @@
                     if err:
                         self.errors[title] = (help, err)
             self.store.checkpoint()
-        self.tell('Import completed: %i entities (%i types), %i relations'
+        self.tell('\nImport completed: %i entities (%i types), %i relations'
                   % (len(self.store.eids), len(self.store.types),
                      len(self.store.relations)))
         nberrors = sum(len(err[1]) for err in self.errors.values())