def outputObjectShortName(out, heap, links=None): if links != None: link = links.objectRef(heap) else: link = None if link: out.begin('a', href=link) out << dumputil.objectShortName(heap) if link: out.end('a')
def printTabbed(out, name, values, links): out << '\t' out << name out.endl() for value in values: out << '\t\t' link = links.objectRef(value) if link: out.begin('a', href=link) out << dumputil.objectShortName(value) if link: out.end('a') out.endl()
def tableRow(out, links, label, *args): out.begin('tr') out.begin('td') out.begin('b') out << label out.end('b') out.end('td') out.begin('td') first = True for arg in args: if not first: out.tag('br') link = links.objectRef(arg) if link: out.begin('a', href=link) out << dumputil.objectShortName(arg) if link: out.end('a') first = False out.end('td') out.end('tr') out.endl()