#NEWLINE# def row2text( self , fields , row , sums ) : #NEWLINE# #INDENT# 'Render the given `row` into a line of text, using the given list of\n        `fields` and collecting sums into `sums`.\n\n        ' #NEWLINE# for ( i , fld ) in enumerate ( fields ) : #NEWLINE# #INDENT# if ( fld . field is not None ) : #NEWLINE# #INDENT# sf = get_atomizer ( row . __class__ , row . field , fld . field . name ) #NEWLINE# if False : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# getter = sf . full_value_from_object #NEWLINE# v = getter ( row , self ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# raise Exception ( ( '20150218 %s: %s' % ( sf , e ) ) ) #NEWLINE# ( yield ( '%s:\n%s' % ( fld . field , e ) ) ) #NEWLINE# continue #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# getter = sf . full_value_from_object #NEWLINE# v = getter ( row , self ) #NEWLINE# #UNINDENT# if ( v is None ) : #NEWLINE# #INDENT# ( yield '' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# sums [ i ] += fld . value2num ( v ) #NEWLINE# ( yield fld . format_value ( self , v ) )