GNOME Bugzilla – Bug 461845
python_loader plugin segfaults if you try to write a file_opener when
Last modified: 2007-09-09 20:37:22 UTC
st_tt.py with: def tt_file_open(input): print "Here" and xml registration: <service type="file_opener" probe="FALSE" priority="1" id="tt"> <information> <description>Schooltool timetable import</description> </information> <suffixes> <suffix>tt</suffix> </suffixes> </service> give me a segfault if i try to run: ssconvert -I SchoolTool_Timetable:tt Book1.tt before printing anything.
This is seriously untested code. I fixed the crash in HEAD. You can also work around the crash by defining a tt_file_probe(input) python function. By the way, tt_file_open should be called like this: tt_file_open(sheet, input). See the example code attached to 461847. The fix will be available in the next major software release. Thank you for your bug report.