diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2014-12-21 19:57:35 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2014-12-21 19:57:35 +0100 |
commit | fdbf01b7cdede140853fcb7cbfa6eb5e07eddac5 (patch) | |
tree | 203fe5cb46c9f9ecede84ed7bbe6080f9a1e1f7f /ishtar_common/data_importer.py | |
parent | 99e0aae5eeaee9d19d4c3d3154536347e9904cb9 (diff) | |
download | Ishtar-fdbf01b7cdede140853fcb7cbfa6eb5e07eddac5.tar.bz2 Ishtar-fdbf01b7cdede140853fcb7cbfa6eb5e07eddac5.zip |
Add a new table to manage imports
Diffstat (limited to 'ishtar_common/data_importer.py')
-rw-r--r-- | ishtar_common/data_importer.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ishtar_common/data_importer.py b/ishtar_common/data_importer.py index 98132e8ff..427b9f974 100644 --- a/ishtar_common/data_importer.py +++ b/ishtar_common/data_importer.py @@ -840,8 +840,11 @@ class Importer(object): return data def get_csv_errors(self): + csv_errors = [] for line, col, error in self.errors: - print('"%d","%d","%s"' % (line, col, unicode(error))) + csv_errors.append(u'"%d","%d","%s"' % (line or 0, col or 0, + unicode(error))) + return u"\n".join(csv_errors) @classmethod def choices_check(cls, choices): |