def _generateNode(self, output, node):
    dispatchTable = {
        Section:       self._generateSection,
        Paragraph:     self._generateParagraph,
        Image:         self._generateImage,
        Table:         self._generateTable,
        Link:          self._generateLink,
        LinkTarget:    self._generateLinkTarget,
        UnorderedList: self._generateUnorderedList,
    }
    self._depth += 1
    self._sectionCounter.append(0)
    try:
      dispatchTable[node.__class__](output, node)
    except __HOLE__:
      print >>output, cgi.escape(str(node)),
    self._sectionCounter.pop()
    self._depth -= 1
dataset/ETHPy150Open skyostil/tracy/src/analyzer/Report.py/HtmlCompiler._generateNode