1 from pyforms.web.Controls.ControlBase import ControlBase 2 3 -class ControlDir(ControlBase): 4 5 - def initControl(self): 6 values = ( self._label, self._name, self._value, self.help ) 7 return "controls.push(new ControlDir('%s', '%s', '%s', '%s'));" % values 8