#NEWLINE# def add_handler_field( map , handler_array , name , val ) : #NEWLINE# #INDENT# if is_static_handler ( val ) : #NEWLINE# #INDENT# new_map = map . add_static_attribute ( name , val ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( handler_array is None ) : #NEWLINE# #INDENT# handler_array = [ ] #NEWLINE# #UNINDENT# new_map = map . add_dynamic_attribute ( name ) #NEWLINE# handler_array . append ( val ) #NEWLINE# #UNINDENT# return ( handler_array , new_map )