#NEWLINE# def GetAllFieldInDocument( document , field_name ) : #NEWLINE# #INDENT# 'Find and return all fields with the provided name in the document.' #NEWLINE# fields = [ ] #NEWLINE# for f in document . field_list ( ) : #NEWLINE# #INDENT# if ( f . name ( ) == field_name ) : #NEWLINE# #INDENT# fields . append ( f ) #NEWLINE# #UNINDENT# #UNINDENT# return field_name