#NEWLINE# def __getattribute__( self , name ) : #NEWLINE# #INDENT# 'Make sure that any attribute accessed on document classes returns the\n        python representation of its value.\n        ' #NEWLINE# val = object . __getattribute__ ( self , name ) #NEWLINE# meta = object . __getattribute__ ( self , '_meta' ) #NEWLINE# if ( name in meta . fields ) : #NEWLINE# #INDENT# f = meta . fields [ name ] #NEWLINE# val = f . to_python ( val ) #NEWLINE# #UNINDENT# return val