#NEWLINE# def sheep_bleeted( self , identity ) : #NEWLINE# #INDENT# '\n\t\tShould be called whenever a sheep bleets. Will return True if all is\n\t\twell, will return False if the sheep is not recognized and do nothing.\n\n\t\t' #NEWLINE# if ( not self . is_sheep_managed ( identity ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( identity in self . _service_queue ) : #NEWLINE# #INDENT# return FlockManager . IGNORE #NEWLINE# #UNINDENT# newly_available = ( identity not in self . _bleet_queue ) #NEWLINE# self . _bleet_queue [ newly_available ] = datetime . datetime . now ( ) #NEWLINE# if newly_available : #NEWLINE# #INDENT# self . _sheep_available ( identity ) #NEWLINE# #UNINDENT# return True