#NEWLINE# def print_dash_url( opts , bugs ) : #NEWLINE# #INDENT# config = configparser . ConfigParser ( ) #NEWLINE# config . add_section ( 'dashboard' ) #NEWLINE# title = ',' . join ( opts . projects ) #NEWLINE# if sect . milestone : #NEWLINE# #INDENT# title += ( ' milestone:%s' % opts . milestone ) #NEWLINE# if opts . tag : #NEWLINE# #INDENT# title += ' AND' #NEWLINE# #UNINDENT# #UNINDENT# if opts . tag : #NEWLINE# #INDENT# title += ( ' tag:%s' % opts . tag ) #NEWLINE# #UNINDENT# config . set ( 'dashboard' , 'title' , title ) #NEWLINE# config . set ( 'dashboard' , 'description' , 'Bug Fix Inbox' ) #NEWLINE# proj_q = [ ( 'project:openstack/%s' % proj ) for proj in opts . projects ] #NEWLINE# config . set ( 'dashboard' , 'foreach' , ( '(%s) status:open ' % ' OR ' . join ( proj_q ) ) ) #NEWLINE# for label in bugs : #NEWLINE# #INDENT# for prio in bugs [ label ] : #NEWLINE# #INDENT# if ( len ( bugs [ label ] [ prio ] ) == 0 ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# sect = ( 'section "%s Importance %s"' % ( label , prio ) ) #NEWLINE# if ( prio == 'None' ) : #NEWLINE# #INDENT# sect = ( 'section "%s"' % label ) #NEWLINE# #UNINDENT# config . add_section ( sect ) #NEWLINE# config . set ( sect , 'query' , ' OR ' . join ( [ ( 'change:%s' % bug ) for bug in bugs [ label ] [ prio ] ] ) ) #NEWLINE# #UNINDENT# #UNINDENT# print ( creator . generate_dashboard_url ( config ) )