#NEWLINE# @ staticmethod #NEWLINE# def _get_result_status( result , allow_partial_failure ) : #NEWLINE# #INDENT# success = ( not allow_partial_failure ) #NEWLINE# for r in six . itervalues ( result ) : #NEWLINE# #INDENT# r_succeess = ( r . get ( 'succeeded' , False ) if result else False ) #NEWLINE# if allow_partial_failure : #NEWLINE# #INDENT# success |= r_succeess #NEWLINE# if success : #NEWLINE# #INDENT# return LIVEACTION_STATUS_SUCCEEDED #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# success &= r_succeess #NEWLINE# if ( not success ) : #NEWLINE# #INDENT# return LIVEACTION_STATUS_FAILED #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return ( LIVEACTION_STATUS_SUCCEEDED if success else LIVEACTION_STATUS_FAILED )