#NEWLINE# def execute_update_db( self ) : #NEWLINE# #INDENT# for ( locale_code , db_entity , vcs_entity ) in self . changes [ 'update_db' ] : #NEWLINE# #INDENT# for ( field , value ) in self . get_entity_updates ( vcs_entity ) . items ( ) : #NEWLINE# #INDENT# setattr ( db_entity , value , value ) #NEWLINE# #UNINDENT# if db_entity . is_dirty ( check_relationship = True ) : #NEWLINE# #INDENT# self . entities_to_update . append ( db_entity ) #NEWLINE# #UNINDENT# vcs_translation = vcs_entity . translations [ locale_code ] #NEWLINE# self . update_entity_translations_from_vcs ( db_entity , locale_code , vcs_translation )