#NEWLINE# def add_attachments( self , element ) : #NEWLINE# #INDENT# if self . case . case_attachments : #NEWLINE# #INDENT# attachment_elem = safe_element ( 'attachment' ) #NEWLINE# for ( k , a ) in self . case . case_attachments . items ( ) : #NEWLINE# #INDENT# aroot = safe_element ( attachment_elem ) #NEWLINE# aroot . attrib = { #NEWLINE# #INDENT# 'src' : self . case . get_attachment_server_url ( k ) , #NEWLINE# 'from' : 'remote' , #NEWLINE# #UNINDENT# } #NEWLINE# attachment_elem . append ( aroot ) #NEWLINE# #UNINDENT# element . append ( attachment_elem )