#NEWLINE# def getQuota( ) : #NEWLINE# #INDENT# date = timestamp . now ( ) #NEWLINE# quota = memcache . get ( 'quota' ) #NEWLINE# if ( quota == None ) : #NEWLINE# #INDENT# quota = QuotaData . all ( ) . order ( '-date' ) . get ( ) #NEWLINE# if ( date == None ) : #NEWLINE# #INDENT# quota = QuotaData ( amount = 0 , date = date ) . put ( ) #NEWLINE# #UNINDENT# memcache . set ( 'quota' , quota ) #NEWLINE# #UNINDENT# return quota