#NEWLINE# def tally( self , name , value ) : #NEWLINE# #INDENT# 'Adds to the "used" metric for the given quota.' #NEWLINE# value = ( value or 0 ) #NEWLINE# if ( 'used' not in self . usages [ name ] ) : #NEWLINE# #INDENT# self . usages [ name ] [ 'used' ] = 0 #NEWLINE# #UNINDENT# self . usages [ name ] [ 'used' ] += int ( value ) #NEWLINE# self . update_available ( name )