Show
Ignore:
Timestamp:
10/02/03 22:23:18 (21 years ago)
Author:
jalet
Message:

Storage caching mechanism added.

Files:
1 modified

Legend:

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

    r1111 r1130  
    2121# 
    2222# $Log$ 
     23# Revision 1.36  2003/10/02 20:23:18  jalet 
     24# Storage caching mechanism added. 
     25# 
    2326# Revision 1.35  2003/07/29 09:54:03  jalet 
    2427# Added configurable LDAP mail attribute support 
     
    401404        else :     
    402405            return 0 
     406             
     407    def getCaching(self) :           
     408        """Returns 1 if database caching is enabled, else 0.""" 
     409        caching = self.getGlobalOption("storagecaching", ignore=1) 
     410        if (caching is not None) and (caching.upper().strip() in ['Y', 'YES', '1', 'ON', 'O']) : 
     411            return 1 
     412        else :     
     413            return 0