Esempio n. 1
0
    def _subjectdata(self, subject, action):
        td = BaseElement("td")

        font = BaseElement("font")
        font.setAttribute("color", "gold")
        element = TextElement("b", subject)
        font.appendChild(element)
        td.appendChild(font)

        font = BaseElement("font")
        font.setAttribute("color", "yellow")
        element = Text()
        font.appendChild(element)
        element.data = "(%s)" % action
        td.appendChild(font)
        return td