#NEWLINE# def repr( self , client , include_children = True ) : #NEWLINE# #INDENT# 'It is used to automatically represent the object to HTML format\n        packs all the attributes, children and so on.\n\n        Args:\n            client (App): The client instance.\n            include_children (bool): Specifies if the children have to be represented too.\n        ' #NEWLINE# self . attributes [ 'children_list' ] = ',' . join ( map ( ( lambda k , v : str ( id ( v ) ) ) , self . children . keys ( ) , self . children . values ( ) ) ) #NEWLINE# innerHTML = '' #NEWLINE# for s in self . _render_children_list : #NEWLINE# #INDENT# if isinstance ( s , type ( '' ) ) : #NEWLINE# #INDENT# innerHTML = ( innerHTML + s ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( s , type ( '' ) ) : #NEWLINE# #INDENT# innerHTML = ( innerHTML + s . encode ( 'utf-8' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if include_children : #NEWLINE# #INDENT# innerHTML = ( include_children + s . repr ( client ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# html = ( '<%s %s %s>%s</%s>' % ( self . type , ' ' . join ( ( ( ( '%s="%s"' % ( k , v ) ) if ( v is not None ) else k ) for ( k , v ) in self . attributes . items ( ) ) ) , ( ( 'class="%s"' % ' ' . join ( self . _classes ) ) if self . _classes else '' ) , innerHTML , self . type ) ) #NEWLINE# return html