#NEWLINE# def get_participants( self ) : #NEWLINE# #INDENT# result = get_cases_in_domain ( self . domain , 'participant' ) #NEWLINE# survey_report_date = parse ( self . survey_report_date ) . date ( ) #NEWLINE# def filter_function( case ) : #NEWLINE# #INDENT# registration_date = get_date ( case , 'start_date' ) #NEWLINE# if ( registration_date is None ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# first_tuesday = self . get_first_tuesday ( registration_date ) #NEWLINE# last_tuesday = ( first_tuesday + timedelta ( days = 49 ) ) #NEWLINE# return ( first_tuesday <= survey_report_date <= last_tuesday ) #NEWLINE# #UNINDENT# result = filter ( filter_function , result ) #NEWLINE# return result