#NEWLINE# def rule_matches_case( self , case , now ) : #NEWLINE# #INDENT# if ( case . type != self . case_type ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( case . server_modified_on > ( now - timedelta ( days = self . server_modified_boundary ) ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return all ( [ criterion . matches ( case , now ) for criterion in self . automaticupdaterulecriteria_set . all ( ) ] )