Show
Ignore:
Timestamp:
06/10/03 18:37:54 (21 years ago)
Author:
jalet
Message:

Deletion of the second user which is not needed anymore.
Added a debug configuration field in /etc/pykota.conf
All queries can now be sent to the logger in debug mode, this will
greatly help improve performance when time for this will come.

Files:
1 modified

Legend:

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

    r1000 r1021  
    2121# 
    2222# $Log$ 
     23# Revision 1.28  2003/06/10 16:37:54  jalet 
     24# Deletion of the second user which is not needed anymore. 
     25# Added a debug configuration field in /etc/pykota.conf 
     26# All queries can now be sent to the logger in debug mode, this will 
     27# greatly help improve performance when time for this will come. 
     28# 
    2329# Revision 1.27  2003/05/27 23:00:21  jalet 
    2430# Big rewrite of external accounting methods. 
     
    183189        for option in [ "storagebackend", "storageserver", \ 
    184190                        "storagename", "storageadmin", \ 
    185                         "storageuser", \ 
    186191                      ] : 
    187192            backendinfo[option] = self.getGlobalOption(option) 
    188         for option in [ "storageadminpw", "storageuserpw" ] :     
    189             backendinfo[option] = self.getGlobalOption(option, ignore=1) 
     193        backendinfo["storageadminpw"] = self.getGlobalOption("storageadminpw", ignore=1) 
    190194        return backendinfo 
    191195         
     
    304308        except ValueError :     
    305309            raise PyKotaConfigError, _("Invalid grace delay %s") % gd 
     310             
     311    def getDebug(self) :           
     312        """Returns 1 if debugging is activated, else 0.""" 
     313        debug = self.getGlobalOption("debug", ignore=1) 
     314        if (debug is not None) and (debug.upper().strip() in ['Y', 'YES', '1', 'ON', 'O']) : 
     315            return 1 
     316        else :     
     317            return 0