Traceback (most recent call last):
File "./source/timelinelib/wxgui/dialogs/mainframe/mainframe.py", line 672, in mnu_file_save_as_on_click
self._save_as()
File "./source/timelinelib/wxgui/dialogs/mainframe/mainframe.py", line 965, in _save_as
self._save_timeline_to_new_path(new_timeline_path)
File "./source/timelinelib/wxgui/dialogs/mainframe/mainframe.py", line 985, in _save_timeline_to_new_path
export_db_to_timeline_xml(self.timeline, new_timeline_path)
File "./source/timelinelib/dataexport/timelinexml.py", line 36, in export_db_to_timeline_xml
Exporter(db).export(path)
File "./source/timelinelib/dataexport/timelinexml.py", line 60, in export
safe_write(path, ENCODING, self._write_xml_doc)
File "./source/timelinelib/db/utils.py", line 49, in safe_write
raise_error(_("Unable to write timeline data."), e)
File "./source/timelinelib/db/utils.py", line 36, in raise_error
raise TimelineIOError(err_template % (specific_msg, cause_exception))
TimelineIOError: Unable to save timeline data to '/tmp/foo.timeline'. File left unmodified.
Unable to write timeline data.
string index out of range
Timeline version: 1.8.0dev7452bf5aa0ab
System version: Linux, localhost.localdomain, 3.18.9-100.fc20.x86_64, #1 SMP Mon Mar 9 16:27:23 UTC 2015, x86_64, x86_64
Python version: 2.7.5 (default, Apr 10 2015, 08:09:05) [GCC 4.8.3 20140911 (Red Hat 4.8.3-7)]
wxPython version: 2.8.12.0 (gtk2-unicode)
Locale setting: en_US UTF-8
Locale sample date: 11/22/3333
This error can be reproduced by opening the atached ics file and trying to save as a Timeline xml file. The ics file contains an event with an empty text.
Should we relax requirement so that we allow empty event texts? Is there a good reason to keep it? We can display a placeholder text if no text has been entered.
Exporting timeline with empty event texts no longer causes an exception.
Also changed event editor to not require a text.