Show
Ignore:
Timestamp:
10/08/03 00:06:05 (21 years ago)
Author:
jalet
Message:

Preliminary code to disable job history

Files:
1 modified

Legend:

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

    r1144 r1148  
    2222# 
    2323# $Log$ 
     24# Revision 1.38  2003/10/07 22:06:05  jalet 
     25# Preliminary code to disable job history 
     26# 
    2427# Revision 1.37  2003/10/07 09:07:28  jalet 
    2528# Character encoding added to please latest version of Python 
     
    416419        else :     
    417420            return 0 
     421             
     422    def getDisableHistory(self) :           
     423        """Returns 1 if we want to disable history, else 0.""" 
     424        disablehistory = self.getGlobalOption("disablehistory", ignore=1) 
     425        if (disablehistory is not None) and (disablehistory.upper().strip() in ['Y', 'YES', '1', 'ON', 'O']) : 
     426            return 1 
     427        else :     
     428            return 0