Changeset 1148

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

Preliminary code to disable job history

Location:
pykota/trunk/pykota
Files:
2 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 
  • pykota/trunk/pykota/storage.py

    r1144 r1148  
    2222# 
    2323# $Log$ 
     24# Revision 1.24  2003/10/07 22:06:05  jalet 
     25# Preliminary code to disable job history 
     26# 
    2427# Revision 1.23  2003/10/07 09:07:28  jalet 
    2528# Character encoding added to please latest version of Python 
     
    318321        self.tool = pykotatool 
    319322        self.usecache = pykotatool.config.getCaching() 
     323        self.disablehistory = pykotatool.config.getDisableHistory() 
    320324        if self.usecache : 
    321325            self.tool.logdebug("Caching enabled.")