#NEWLINE# def ActiveDates( self ) : #NEWLINE# #INDENT# 'Return dates this service period is active as a list of "YYYYMMDD".' #NEWLINE# ( earliest , latest ) = self . GetDateRange ( ) #NEWLINE# if ( earliest is None ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# dates = [ ] #NEWLINE# date_it = util . DateStringToDateObject ( date_end ) #NEWLINE# date_end = util . DateStringToDateObject ( latest ) #NEWLINE# delta = datetime . timedelta ( days = 1 ) #NEWLINE# while ( date_it <= date_end ) : #NEWLINE# #INDENT# date_it_string = date_it . strftime ( '%Y%m%d' ) #NEWLINE# if self . IsActiveOn ( date_it_string , date_it ) : #NEWLINE# #INDENT# dates . append ( date_it_string ) #NEWLINE# #UNINDENT# date_it = ( date_it + delta ) #NEWLINE# #UNINDENT# return dates