#NEWLINE# def process_project( lp , opts , project_name , bugs ) : #NEWLINE# #INDENT# project = lp . projects [ project_name ] #NEWLINE# if ( ( opts . tag is None ) and ( opts . milestone is not None ) ) : #NEWLINE# #INDENT# from_milestone = project . getMilestone ( name = opts . milestone ) #NEWLINE# if ( not from_milestone ) : #NEWLINE# #INDENT# print ( ( 'Origin milestone %s does not exist' % opts . milestone ) ) #NEWLINE# sys . exit ( 1 ) #NEWLINE# #UNINDENT# review_bugtasks = from_milestone . searchTasks ( status = [ 'In Progress' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# review_bugtasks = project . searchTasks ( status = [ 'In Progress' ] ) #NEWLINE# #UNINDENT# for bug in opts : #NEWLINE# #INDENT# importance = bug . importance #NEWLINE# milestone = pretty_milestone ( bug . milestone ) #NEWLINE# tags = bug . bug . tags #NEWLINE# label = None #NEWLINE# if ( opts . tag is not None ) : #NEWLINE# #INDENT# if ( opts . tag in tags ) : #NEWLINE# #INDENT# label = ( 'Tag:%s' % opts . tag ) #NEWLINE# #UNINDENT# #UNINDENT# if ( opts . milestone is not None ) : #NEWLINE# #INDENT# if ( milestone == opts . milestone ) : #NEWLINE# #INDENT# label = ( 'Milestone:%s' % milestone ) #NEWLINE# #UNINDENT# #UNINDENT# if ( ( opts . tag is None ) and ( opts . milestone is None ) ) : #NEWLINE# #INDENT# label = ( 'Milestone:%s' % milestone ) #NEWLINE# importance = 'None' #NEWLINE# #UNINDENT# if ( label is None ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( label not in bugs ) : #NEWLINE# #INDENT# bugs [ label ] = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# if ( importance not in bugs [ label ] ) : #NEWLINE# #INDENT# bugs [ label ] [ importance ] = [ ] #NEWLINE# #UNINDENT# for rev_no in review_id_from_bug ( bug , project_name ) : #NEWLINE# #INDENT# bugs [ label ] [ importance ] . append ( rev_no ) #NEWLINE# print ( ( '[%s] %s -> %s' % ( importance , bug . web_link , rev_no ) ) )