Reopening saved text files doen't work

Bug #318406 reported by René Brink
2
Affects Status Importance Assigned to Milestone
OpenTeacher
Fix Released
Undecided
Unassigned

Bug Description

When reopening a text file saved with Save As nothing happens. The terminal is giving the following error:

Traceback (most recent call last):
  File "/usr/share/openteacher/openteacher.py", line 692, in openFunc
    dom = parse(open(openFilename))
  File "/usr/lib/python2.5/xml/dom/minidom.py", line 1915, in parse
    return expatbuilder.parse(file)
  File "/usr/lib/python2.5/xml/dom/expatbuilder.py", line 928, in parse
    result = builder.parseFile(file)
  File "/usr/lib/python2.5/xml/dom/expatbuilder.py", line 207, in parseFile
    parser.Parse(buffer, 0)
xml.parsers.expat.ExpatError: syntax error: line 1, column 0

I also get the same error if I open a wrong formated text file

Revision history for this message
Milan Boers (milan-boers) wrote :

That's right. You shouldn't be able to open txt files. It's only for output to print.. Maybe saving as txt should be under a different name (Export maybe.)
I removed open txt in revision 51.

Changed in openteacher:
status: New → Fix Committed
Changed in openteacher:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.