#NEWLINE# def get_case_filter( self ) : #NEWLINE# #INDENT# group = self . _get_group ( ) #NEWLINE# if group : #NEWLINE# #INDENT# user_ids = set ( group . get_static_user_ids ( ) ) #NEWLINE# case_filter = [ OR ( OwnerFilter ( group . _id ) , OwnerFilter ( user_ids ) , LastModifiedByFilter ( user_ids ) ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# case_sharing_groups = [ g . get_id for g in Group . get_case_sharing_groups ( self . domain_object . name ) ] #NEWLINE# case_filter = [ OR ( OwnerTypeFilter ( self . _get_es_user_types ( ) ) , OwnerFilter ( case_sharing_groups ) , LastModifiedByFilter ( case_sharing_groups ) ) ] #NEWLINE# #UNINDENT# return case_filter