#NEWLINE# def render_object_dump( self , items , title , repr = None ) : #NEWLINE# #INDENT# html_items = [ ] #NEWLINE# for ( key , value ) in items : #NEWLINE# #INDENT# html_items . append ( ( '<tr><th>%s<td><pre class=repr>%s</pre>' % ( escape ( key ) , value ) ) ) #NEWLINE# #UNINDENT# if ( not html_items ) : #NEWLINE# #INDENT# html_items . append ( '<tr><td><em>Nothing</em>' ) #NEWLINE# #UNINDENT# return ( OBJECT_DUMP_HTML % { #NEWLINE# #INDENT# 'title' : escape ( title ) , #NEWLINE# 'repr' : ( ( repr and ( '<pre class=repr>%s</pre>' % repr ) ) or '' ) , #NEWLINE# 'items' : '\n' . join ( html_items ) , #NEWLINE# #UNINDENT# } )