Show
Ignore:
Timestamp:
02/16/05 01:29:33 (19 years ago)
Author:
jalet
Message:

Fixed the maxdenybanners directive.
Introduced the denyduplicates directive.
Fixed some database related glitches.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storage.py

    r2057 r2066  
    2222# 
    2323# $Log$ 
     24# Revision 1.70  2005/02/16 00:29:33  jalet 
     25# Fixed the maxdenybanners directive. 
     26# Introduced the denyduplicates directive. 
     27# Fixed some database related glitches. 
     28# 
    2429# Revision 1.69  2005/02/13 22:48:37  jalet 
    2530# Added the md5sum to the history 
     
    487492        self.WarnCount = 0 
    488493 
    489     def warn(self) : 
    490         """Increases the warn counter for this user quota.""" 
     494    def incDenyBannerCounter(self) : 
     495        """Increment the deny banner counter for this user quota.""" 
    491496        self.parent.increaseUserPQuotaWarnCount(self) 
    492497        self.WarnCount = (self.WarnCount or 0) + 1 
     498         
     499    def resetDenyBannerCounter(self) : 
     500        """Resets the deny banner counter for this user quota.""" 
     501        self.parent.writeUserPQuotaWarnCount(self, 0) 
     502        self.WarnCount = 0 
    493503         
    494504    def reset(self) :