#NEWLINE# def _str_index( self ) : #NEWLINE# #INDENT# idx = self [ 'index' ] #NEWLINE# out = [ ] #NEWLINE# if ( len ( idx ) == 0 ) : #NEWLINE# #INDENT# return out #NEWLINE# #UNINDENT# out += [ ( '.. index:: %s' % idx . get ( 'default' , '' ) ) ] #NEWLINE# for ( section , references ) in idx . iteritems ( ) : #NEWLINE# #INDENT# if ( section == 'default' ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( section == 'refguide' ) : #NEWLINE# #INDENT# out += [ ( '   single: %s' % ', ' . join ( references ) ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# out += [ ( '   %s: %s' % ( section , ',' . join ( references ) ) ) ] #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return out