#NEWLINE# def get_entity_updates( self , vcs_entity ) : #NEWLINE# #INDENT# '\n        Return a dict of the properties and values necessary to create\n        or update a database entity from a VCS entity.\n        ' #NEWLINE# return { #NEWLINE# #INDENT# 'resource' : self . resources [ vcs_entity . resource . path ] , #NEWLINE# 'string' : vcs_entity . string , #NEWLINE# 'string_plural' : vcs_entity . string_plural , #NEWLINE# 'key' : vcs_entity . key , #NEWLINE# 'comment' : '\n' . join ( vcs_entity . comments ) , #NEWLINE# 'order' : vcs_entity . order , #NEWLINE# 'source' : vcs_entity . source , #NEWLINE# #UNINDENT# }