#NEWLINE# def handle_create_user_story_response( self , future ) : #NEWLINE# #INDENT# response = future . result ( ) #NEWLINE# if ( response is None ) : #NEWLINE# #INDENT# self . view . notifier . error_msg ( 'Create US error' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . view . notifier . info_msg ( 'Create US successful!' ) #NEWLINE# self . view . close_user_story_form ( ) #NEWLINE# if hasattr ( self , 'milestone' ) : #NEWLINE# #INDENT# current_milestone = self . milestone #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# current_milestone = taiga_ncurses . data . current_milestone ( self . view . _project ) #NEWLINE# #UNINDENT# milestone_f = self . executor . milestone ( current_milestone , self . view . _project ) #NEWLINE# milestone_f . add_done_callback ( self . handle_milestone ) #NEWLINE# milestone_stats_f = self . executor . milestone_stats ( current_milestone , self . view . _project ) #NEWLINE# milestone_stats_f . add_done_callback ( self . handle_milestone_stats ) #NEWLINE# user_stories_f = self . executor . user_stories ( current_milestone , self . view . _project ) #NEWLINE# user_stories_f . add_done_callback ( self . handle_user_stories ) #NEWLINE# tasks_f = self . executor . tasks ( current_milestone , self . view . _project ) #NEWLINE# tasks_f . add_done_callback ( self . handle_tasks ) #NEWLINE# futures = ( tasks_f , user_stories_f ) #NEWLINE# futures_completed_f = self . executor . pool . submit ( ( lambda : wait ( futures , 10 ) ) ) #NEWLINE# futures_completed_f . add_done_callback ( self . handle_user_stories_and_task_info_fetched )