Get a single line of input as a string from a textfield

def line_input(*args, **kwargs):
    '''
    Get a single line of input as a string from a textfield
    '''
    line_input = wtforms.TextField(*args, **kwargs)
    line_input.input_type = 'line'
    return line_input