#NEWLINE# def value2html( self , ar , v , **cellattrs ) : #NEWLINE# #INDENT# 'Return an etree element representing of the given value.  The\n        possible return values may be:\n\n        - an xml.etree.ElementTree.Element\n\n        The default implementation returns an HTML element obtained\n        from :meth:`format_value`.\n\n        ' #NEWLINE# if self . field . primary_key : #NEWLINE# #INDENT# url = ar . renderer . pk2url ( ar , v ) #NEWLINE# if ( cellattrs is not None ) : #NEWLINE# #INDENT# return E . td ( E . a ( self . format_value ( ar , v ) , href = url ) , ** cellattrs ) #NEWLINE# #UNINDENT# #UNINDENT# return E . td ( self . format_value ( ar , v ) , ** cellattrs )