#NEWLINE# def hint_still_valid( domain , hint ) : #NEWLINE# #INDENT# "\n    For a given domain/owner/cleanliness hint check if it's still valid\n    " #NEWLINE# casedb = CaseAccessors ( domain ) #NEWLINE# try : #NEWLINE# #INDENT# hint_case = casedb . get_case ( hint ) #NEWLINE# hint_owner = hint_case . owner_id #NEWLINE# #UNINDENT# except CaseNotFound : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# dependent_case_ids = set ( get_dependent_case_info ( domain , [ hint ] ) . all_ids ) #NEWLINE# return any ( [ ( ( hint . owner_id != hint_owner ) and ( c . owner_id != UNOWNED_EXTENSION_OWNER_ID ) ) for c in casedb . get_cases ( list ( dependent_case_ids ) ) ] )