#NEWLINE# def get_create_milestone( self , redmine_issue_dict ) : #NEWLINE# #INDENT# if ( not ( type ( redmine_issue_dict ) is dict ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# fixed_version = redmine_issue_dict . get ( 'fixed_version' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# if ( not fixed_version . has_key ( 'name' ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# mstone_name = fixed_version [ 'name' ] #NEWLINE# msg ( ( 'Milestone: %s' % mstone_name ) ) #NEWLINE# if mstone_name : #NEWLINE# #INDENT# if self . using_milestone_map : #NEWLINE# #INDENT# mstone_info = self . milestone_lookup . get ( mstone_name , None ) #NEWLINE# if ( mstone_info is None ) : #NEWLINE# #INDENT# msgt ( ( 'Milestone not found in map: %s' % mstone_name ) ) #NEWLINE# mstone_name = mstone_name #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# mstone_name = mstone_info . name #NEWLINE# #UNINDENT# #UNINDENT# milestone_number = self . get_create_milestone_number ( mstone_name ) #NEWLINE# if ( not self ) : #NEWLINE# #INDENT# msgx ( ( 'Milestone number not found for: [%s]' % mstone_name ) ) #NEWLINE# #UNINDENT# return milestone_number #NEWLINE# #UNINDENT# return None