#NEWLINE# def action( self , destination , data , **kwa ) : #NEWLINE# #INDENT# ' Increment corresponding items in destination by items in data\n\n            if only one field then single increment\n            if multiple fields then vector increment\n\n            parameters:\n                destination = share to increment\n                sourceData = dict of field values to increment by\n        ' #NEWLINE# try : #NEWLINE# #INDENT# dstData = odict ( ) #NEWLINE# for field in data : #NEWLINE# #INDENT# dstData [ field ] = ( destination [ field ] + data [ field ] ) #NEWLINE# #UNINDENT# destination . update ( dstData ) #NEWLINE# #UNINDENT# except TypeError as ex : #NEWLINE# #INDENT# console . terse ( 'Error in Inc: {0}\n' . format ( ex ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# console . profuse ( 'Inc {0} in {1} by {2} to {3}\n' . format ( data . keys ( ) , destination . name , data . values ( ) , dstData . values ( ) ) )