#NEWLINE# def output( self , cl ) : #NEWLINE# #INDENT# t = [ ] #NEWLINE# if self . has_output ( ) : #NEWLINE# #INDENT# t . append ( ( _ ( '<h3>By %s:</h3>\n<ul>\n' ) % escape ( self . title ( ) ) ) ) #NEWLINE# for choice in self . choices ( cl ) : #NEWLINE# #INDENT# t . append ( ( '<li%s><a href="%s">%s</a></li>\n' % ( ( ( choice [ 'selected' ] and ' class="selected"' ) or '' ) , iri_to_uri ( choice [ 'query_string' ] ) , choice [ 'display' ] ) ) ) #NEWLINE# #UNINDENT# t . append ( '</ul>\n\n' ) #NEWLINE# #UNINDENT# return mark_safe ( '' . join ( t ) )