def visit_text(self, attr): act_get = attr_act_get() attr.accept(act_get) self._text = '<TEXTAREA name="%s"%s%s>%s</TEXTAREA>' % \ (self.__parm_name, self.__get_handler_text(), self.__lock_str(attr.is_locked()), act_get.get_text()) if attr.is_locked(): self._text += '<INPUT type="hidden" name="%s" ' \ 'value="%s">' % (self.__parm_name, attr.get()) self.__parm_name = None
def generic_text(self, attr, length = 10, inp_type = 'text'): act_get = attr_act_get() attr.accept(act_get) self._text = '<INPUT type="%s" maxlength="%s" name="%s"%s ' \ 'value="%s"%s>' % (inp_type, length, self.__parm_name, self.__get_handler_text(), act_get.get_text(), self.__lock_str(attr.is_locked())) if attr.is_locked(): self._text += '<INPUT type="hidden" name="%s" ' \ 'value="%s">' % (self.__parm_name, attr.get()) self.__parm_name = None