(self, field, key, value, REQUEST, render_prefix=None)
Render text input field.
Render text input field.
Render text input field .
def render(self, field, key, value, REQUEST, render_prefix=None):
    """Render text input field.
    """
    display_maxwidth = field.get_value('display_maxwidth') or 0
    input_type = field.get_value('input_type') or 'text'
    if display_maxwidth > 0:
      return render_element("input",
                            type=input_type,
                            name=key,
                            css_class=field.get_value('css_class'),
                            value=value,
                            size=field.get_value('display_width'),
                            maxlength=display_maxwidth,
                            extra=field.get_value('extra'))
    else:
      return render_element("input",
                            type=input_type,
                            name=key,
                            css_class=field.get_value('css_class'),
                            value=value,
                            size=field.get_value('display_width'),
                            extra=field.get_value('extra'))
def render ( self , field , key , value , REQUEST , render_prefix = None ) : display_maxwidth = field . get_value ( 'display_maxwidth' ) or 0 input_type = field . get_value ( 'input_type' ) or 'text' if display_maxwidth > 0 : return render_element ( "input" , type = input_type , name = key , css_class = field . get_value ( 'css_class' ) , value = value , size = field . get_value ( 'display_width' ) , maxlength = display_maxwidth , extra = field . get_value ( 'extra' ) ) else : return render_element ( "input" , type = input_type , name = key , css_class = field . get_value ( 'css_class' ) , value = value , size = field . get_value ( 'display_width' ) , extra = field . get_value ( 'extra' ) )