# HG changeset patch # User Sylvain Thénault # Date 1261142909 -3600 # Node ID 46ddd27a4ca4a4140e4ca5112d283a7bed285385 # Parent 2718f2fd0576be75be740396b549b2e84151b37b tweaks output diff -r 2718f2fd0576 -r 46ddd27a4ca4 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())