'Save answers to questions, depending on question type
If an answer already exists for question and user_input_id, it will be
overwritten (in order to maintain data consistency).'

@api.model
def save_lines(self, user_input_id, question, post, answer_tag):

    try:
        saver = getattr(self, ('save_line_' + question.type))
    except AttributeError:
        _logger.error((question.type + ':    This    type    of    question    has    no    saving    function'))
        return False
    else:
        saver(user_input_id, question, post, answer_tag)
