eric3.Project.SessionHandler

Module implementing the handler class for reading an XML project session file.

Classes

SessionHandler Class implementing a sax handler to read an XML project session file.

Functions

None

SessionHandler

Class implementing a sax handler to read an XML project session file.

Derived from

XMLSAXHandler

Methods

SessionHandler Constructor
characters Handler called for ordinary text.
defaultEndElement Handler method for the common end tags.
defaultStartElement Handler method for common start tags.
endBFilename Handler method for the "BFilename" end tag.
endBookmark Handler method for the "Bookmark" end tag.
endBreakpoint Handler method for the "Breakpoint" end tag.
endCommandLine Handler method for the "CommandLine" end tag.
endCondition Handler method for the "Condition" end tag.
endElement Handler called, when an ending tag is found.
endException Handler method for the "Exception" end tag.
endExceptions Handler method for the "Exceptions" end tag.
endFilename Handler method for the "Filename" end tag.
endWorkingDirectory Handler method for the "WorkinDirectory" end tag.
startBookmark Handler method for the "Bookmark" start tag.
startBreakpoint Handler method for the "Breakpoint" start tag.
startCount Handler method for the "Count" start tag.
startDocument Handler called, when the document parsing is started.
startElement Handler called, when a starting tag is found.
startEnabled Handler method for the "Enabled" start tag.
startExceptions Handler method for the "Exceptions" start tag.
startFilename Handler method for the "Filename" start tag.
startLinenumber Handler method for the "Linenumber" start tag.
startReportExceptions Handler method for the "ReportExceptions" start tag.
startTracePython Handler method for the "TracePython" start tag.
unescape Private method used to unescape certain characters.
utf8_to_code Private method to convert a string to unicode and encode it for XML.

SessionHandler (Constructor)

SessionHandler(project)

Constructor

project
Reference to the project object to store the information into.

SessionHandler.characters

characters(chars)

Handler called for ordinary text.

chars
the scanned text (string)

SessionHandler.defaultEndElement

defaultEndElement()

Handler method for the common end tags.

SessionHandler.defaultStartElement

defaultStartElement(attrs)

Handler method for common start tags.

attrs
list of tag attributes

SessionHandler.endBFilename

endBFilename()

Handler method for the "BFilename" end tag.

SessionHandler.endBookmark

endBookmark()

Handler method for the "Bookmark" end tag.

SessionHandler.endBreakpoint

endBreakpoint()

Handler method for the "Breakpoint" end tag.

SessionHandler.endCommandLine

endCommandLine()

Handler method for the "CommandLine" end tag.

SessionHandler.endCondition

endCondition()

Handler method for the "Condition" end tag.

SessionHandler.endElement

endElement(name)

Handler called, when an ending tag is found.

name
name of the tag (string)

SessionHandler.endException

endException()

Handler method for the "Exception" end tag.

SessionHandler.endExceptions

endExceptions()

Handler method for the "Exceptions" end tag.

SessionHandler.endFilename

endFilename()

Handler method for the "Filename" end tag.

SessionHandler.endWorkingDirectory

endWorkingDirectory()

Handler method for the "WorkinDirectory" end tag.

SessionHandler.startBookmark

startBookmark(attrs)

Handler method for the "Bookmark" start tag.

attrs
list of tag attributes

SessionHandler.startBreakpoint

startBreakpoint(attrs)

Handler method for the "Breakpoint" start tag.

attrs
list of tag attributes

SessionHandler.startCount

startCount(attrs)

Handler method for the "Count" start tag.

attrs
list of tag attributes

SessionHandler.startDocument

startDocument()

Handler called, when the document parsing is started.

SessionHandler.startElement

startElement(name, attrs)

Handler called, when a starting tag is found.

attrs
list of tag attributes
name
name of the tag (string)

SessionHandler.startEnabled

startEnabled(attrs)

Handler method for the "Enabled" start tag.

attrs
list of tag attributes

SessionHandler.startExceptions

startExceptions(attrs)

Handler method for the "Exceptions" start tag.

attrs
list of tag attributes

SessionHandler.startFilename

startFilename(attrs)

Handler method for the "Filename" start tag.

SessionHandler.startLinenumber

startLinenumber(attrs)

Handler method for the "Linenumber" start tag.

attrs
list of tag attributes

SessionHandler.startReportExceptions

startReportExceptions(attrs)

Handler method for the "ReportExceptions" start tag.

attrs
list of tag attributes

SessionHandler.startTracePython

startTracePython(attrs)

Handler method for the "TracePython" start tag.

attrs
list of tag attributes

SessionHandler.unescape

unescape(text)

Private method used to unescape certain characters.

text
the text to unescape (string)

SessionHandler.utf8_to_code

utf8_to_code(text)

Private method to convert a string to unicode and encode it for XML.

text
the text to encode (string)

Up