#NEWLINE# def get_data( self , datum , column , row ) : #NEWLINE# #INDENT# 'Fetches the data to be displayed in this cell.' #NEWLINE# table = row . table #NEWLINE# if ( self . auto == 'multi_select' ) : #NEWLINE# #INDENT# data = '' #NEWLINE# if row . can_be_selected ( datum ) : #NEWLINE# #INDENT# widget = forms . CheckboxInput ( check_test = ( lambda value : False ) ) #NEWLINE# data = widget . render ( 'object_ids' , unicode ( table . get_object_id ( datum ) ) , { #NEWLINE# #INDENT# 'class' : 'table-row-multi-select' , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# table . _data_cache [ column ] [ table . get_object_id ( datum ) ] = data #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( column . auto == 'form_field' ) : #NEWLINE# #INDENT# widget = column . form_field #NEWLINE# if issubclass ( widget . __class__ , forms . Field ) : #NEWLINE# #INDENT# widget = widget . widget #NEWLINE# #UNINDENT# widget_name = ( '%s__%s' % ( column . name , unicode ( table . get_object_id ( datum ) ) ) ) #NEWLINE# form_field_attributes = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# form_field_attributes . update ( column . form_field_attributes ) #NEWLINE# form_field_attributes [ 'id' ] = widget_name #NEWLINE# data = widget . render ( widget_name , column . get_data ( datum ) , form_field_attributes ) #NEWLINE# table . _data_cache [ column ] [ table . get_object_id ( datum ) ] = data #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( column . auto == 'actions' ) : #NEWLINE# #INDENT# data = table . render_row_actions ( datum , pull_right = False ) #NEWLINE# table . _data_cache [ column ] [ table . get_object_id ( datum ) ] = data #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# data = column . get_data ( datum ) #NEWLINE# if column . cell_attributes_getter : #NEWLINE# #INDENT# cell_attributes = ( column . cell_attributes_getter ( data ) or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . attrs . update ( cell_attributes ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return data