#NEWLINE# def DecrementFromPhotos( self , photos ) : #NEWLINE# #INDENT# 'Decrement counters with the photo stats.' #NEWLINE# def _GetOrZero( val ) : #NEWLINE# #INDENT# if ( val is not None ) : #NEWLINE# #INDENT# return val #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# #UNINDENT# for p in photos : #NEWLINE# #INDENT# self . num_photos -= 1 #NEWLINE# self . tn_size -= _GetOrZero ( p . tn_size ) #NEWLINE# self . med_size -= _GetOrZero ( p . med_size ) #NEWLINE# self . full_size -= _GetOrZero ( p . full_size ) #NEWLINE# self . orig_size -= _GetOrZero ( p . orig_size )