Package pyforms :: Package web :: Package Controls :: Module ControlText |
[hide private]
[frames] | no frames]

# Source Code for Module pyforms.web.Controls.ControlText

     1  from pyforms.web.Controls.ControlBase import ControlBase
     2
     3 -class ControlText(ControlBase):
     4
     5 -    def initControl(self):
     6          val = self.value.replace("{","&#123;").replace("}","&#125;")
     7          values = self._label, self._name,val, self.help
     8          return """controls.push(new ControlText('%s','%s', "%s",'%s'));""" % values
     9