#NEWLINE# def apply_validation( self , validation ) : #NEWLINE# #INDENT# self . validation = validation #NEWLINE# results = json . loads ( validation ) #NEWLINE# compat = results [ 'compatibility_summary' ] #NEWLINE# self . errors = ( results [ 'errors' ] + compat [ 'errors' ] ) #NEWLINE# self . warnings = ( results [ 'warnings' ] + compat [ 'warnings' ] ) #NEWLINE# self . notices = ( results [ 'notices' ] + compat [ 'notices' ] ) #NEWLINE# self . valid = ( validation . errors == 0 )