#NEWLINE# @ property #NEWLINE# def value( self ) : #NEWLINE# #INDENT# 'Returns a formatted version of the data for final output.\n\n        This takes into consideration the\n        :attr:`~horizon.tables.Column.link`` and\n        :attr:`~horizon.tables.Column.empty_value`\n        attributes.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# data = self . column . get_data ( self . datum ) #NEWLINE# if ( data is None ) : #NEWLINE# #INDENT# if callable ( self . column . empty_value ) : #NEWLINE# #INDENT# data = self . column . empty_value ( self . datum ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# data = self . column . empty_value #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# except Exception : #NEWLINE# #INDENT# data = None #NEWLINE# exc_info = sys . exc_info ( ) #NEWLINE# raise six . reraise ( template . TemplateSyntaxError , exc_info [ 1 ] , exc_info [ 2 ] ) #NEWLINE# #UNINDENT# if self . url : #NEWLINE# #INDENT# link_attrs = ' ' . join ( [ ( '%s="%s"' % ( k , v ) ) for ( k , v ) in self . column . link_attrs . items ( ) ] ) #NEWLINE# data = mark_safe ( ( '<a href="%s" %s>%s</a>' % ( escape ( self . url ) , link_attrs , escape ( unicode ( data ) ) ) ) ) #NEWLINE# #UNINDENT# return data