Changeset 742

Show
Ignore:
Timestamp:
02/07/03 11:42:45 (21 years ago)
Author:
jalet
Message:

Indentation problem

Files:
1 modified

Legend:

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

    r733 r742  
    1515# 
    1616# $Log$ 
     17# Revision 1.14  2003/02/07 10:42:45  jalet 
     18# Indentation problem 
     19# 
    1720# Revision 1.13  2003/02/07 08:34:16  jalet 
    1821# Test wrt date limit was wrong 
     
    201204                    action = "ALLOW" 
    202205                elif hardlimit is not None : 
    203                      if softlimit <= pagecounter < hardlimit :     
    204                          now = DateTime.now() 
    205                          if datelimit is None : 
    206                              datelimit = now + self.config.getGraceDelay() 
    207                              self.storage.setDateLimit(username, printername, datelimit) 
    208                          if now < datelimit : 
    209                              action = "WARN" 
    210                          else :     
    211                              action = "DENY" 
    212                      else :          
    213                          action = "DENY" 
     206                    if softlimit <= pagecounter < hardlimit :     
     207                        now = DateTime.now() 
     208                        if datelimit is None : 
     209                            datelimit = now + self.config.getGraceDelay() 
     210                            self.storage.setDateLimit(username, printername, datelimit) 
     211                        if now < datelimit : 
     212                            action = "WARN" 
     213                        else :     
     214                            action = "DENY" 
     215                    else :          
     216                        action = "DENY" 
    214217                else :         
    215218                    action = "DENY"