devtools/dataimport.py
changeset 4140 46ddd27a4ca4
parent 4136 47060a66c97f
child 4152 30fd1229137d
--- 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())