diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-02-11 18:02:42 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-02-11 18:02:42 +0100 |
commit | ec824db12597389c87184497796e8d0763c80b51 (patch) | |
tree | fb53154ba33dc4e31fe9bb25677e14d1c8418701 /chimere/tasks.py | |
parent | c70c2c8f4f58436df8d1c694a74c457954bd1070 (diff) | |
download | Chimère-ec824db12597389c87184497796e8d0763c80b51.tar.bz2 Chimère-ec824db12597389c87184497796e8d0763c80b51.zip |
New importer type XML - XSLT. Importer: add relation between category key and categories
* new importer type XML - XSLT
* associated form and UI modification
* add new model ImporterKeyCategories
* associated migration
* associated admin modification
* longer state field for Importers
* associated migration
Diffstat (limited to 'chimere/tasks.py')
-rw-r--r-- | chimere/tasks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chimere/tasks.py b/chimere/tasks.py index 02e32a4..9c94f43 100644 --- a/chimere/tasks.py +++ b/chimere/tasks.py @@ -87,12 +87,12 @@ def importing(importer_pk): importer.state = unicode(IMPORT_MESSAGES['import_process'][0]) importer.save() new_item, updated_item, error = importer.manager.get() - importer.state = error + ' ' if error else '' + importer.state = error + '\n' if error else '' importer.state += unicode(IMPORT_MESSAGES['import_done'][0]) importer.state += u" - " \ + unicode(IMPORT_MESSAGES['import_done'][1]) % {'new':new_item, 'updated':updated_item} - importer.state = importer.state[:200] + importer.state = importer.state importer.save() return True |