#NEWLINE# def POST( self , question_id ) : #NEWLINE# #INDENT# 'Updates the local knowledgebase with the answer given to the question_id.' #NEWLINE# question_id = int ( question_id ) #NEWLINE# a = web . input ( ) . answer #NEWLINE# if ( a in [ 'yes' , 'no' , 'unsure' ] ) : #NEWLINE# #INDENT# answer = eval ( ( 'game.' + self ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# answer = game . unsure #NEWLINE# #UNINDENT# if ( answer != game . unsure ) : #NEWLINE# #INDENT# session . count += 1 #NEWLINE# #UNINDENT# game . update_local_knowledgebase ( session . objects_values , session . asked_questions , question_id , answer ) #NEWLINE# raise web . seeother ( '/' )