#NEWLINE# @ gen . coroutine #NEWLINE# def Apply( self , client ) : #NEWLINE# #INDENT# 'Applies all of the accounting deltas that have been collected in the accumulator.' #NEWLINE# tasks = [ ] #NEWLINE# for us_ow_acc in self . us_ow_acc_dict . values ( ) : #NEWLINE# #INDENT# tasks . append ( gen . Task ( Accounting . ApplyAccounting , client , us_ow_acc ) ) #NEWLINE# #UNINDENT# for us_vt_acc in self . us_vt_acc_dict . values ( ) : #NEWLINE# #INDENT# tasks . append ( gen . Task ( Accounting . ApplyAccounting , client , us_vt_acc ) ) #NEWLINE# #UNINDENT# for us_sb_acc in self . us_sb_acc_dict . values ( ) : #NEWLINE# #INDENT# tasks . append ( gen . Task ( Accounting . ApplyAccounting , client , us_sb_acc ) ) #NEWLINE# #UNINDENT# ( yield tasks ) #NEWLINE# tasks = [ ] #NEWLINE# for vp_ow_acc in self . vp_ow_acc_dict . values ( ) : #NEWLINE# #INDENT# tasks . append ( gen . Task ( Accounting . ApplyAccounting , client , vp_ow_acc ) ) #NEWLINE# #UNINDENT# for vp_vt_acc in self . vp_vt_acc_dict . values ( ) : #NEWLINE# #INDENT# tasks . append ( gen . Task ( Accounting . ApplyAccounting , client , vp_vt_acc ) ) #NEWLINE# #UNINDENT# for vp_sb_acc in self . vp_sb_acc_dict . values ( ) : #NEWLINE# #INDENT# tasks . append ( gen . Task ( Accounting . ApplyAccounting , client , vp_sb_acc ) ) #NEWLINE# #UNINDENT# ( yield tasks )