def generate(self, request, node): if self.templateNode is None: if self.raw: return domhelpers.RawText(str(self.getData(request))) else: return document.createTextNode(str(self.getData(request))) return Widget.generate(self, request, node)
def generateDOM(self, request, node): self.node = domhelpers.RawText(self.getData(request)) return self.node
def setUp(self, request, node, data): if self.raw: textNode = domhelpers.RawText(str(data)) else: textNode = document.createTextNode(str(data)) self.appendChild(textNode)