#NEWLINE# def SetDateHasService( self , date , has_service = True , problems = None ) : #NEWLINE# #INDENT# if ( ( date in self . date_exceptions ) and problems ) : #NEWLINE# #INDENT# problems . DuplicateID ( ( 'service_id' , 'date' ) , ( self . service_id , date ) , type = problems_module . TYPE_WARNING ) #NEWLINE# #UNINDENT# exception_context_tuple = ( ( ( has_service and self . _EXCEPTION_TYPE_ADD ) or self . _EXCEPTION_TYPE_REMOVE ) , ( ( ( problems != None ) and problems . GetFileContext ( ) ) or None ) ) #NEWLINE# self . date_exceptions [ date ] = exception_context_tuple