Example #1
0
 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)
Example #2
0
 def generateDOM(self, request, node):
     self.node = domhelpers.RawText(self.getData(request))
     return self.node
Example #3
0
 def setUp(self, request, node, data):
     if self.raw:
         textNode = domhelpers.RawText(str(data))
     else:
         textNode = document.createTextNode(str(data))
     self.appendChild(textNode)