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/tool.py

    r973 r1021  
    2121# 
    2222# $Log$ 
     23# Revision 1.40  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.39  2003/04/29 18:37:54  jalet 
    2430# Pluggable accounting methods (actually doesn't support external scripts) 
     
    188194class PyKotaTool :     
    189195    """Base class for all PyKota command line tools.""" 
    190     def __init__(self, asadmin=1, doc="PyKota %s (c) 2003 %s" % (version.__version__, version.__author__)) : 
     196    def __init__(self, doc="PyKota %s (c) 2003 %s" % (version.__version__, version.__author__)) : 
    191197        """Initializes the command line tool.""" 
    192198        # locale stuff 
     
    200206        self.documentation = doc 
    201207        self.config = config.PyKotaConfig("/etc") 
    202         self.logger = logger.openLogger(self.config) 
    203         self.storage = storage.openConnection(self.config, asadmin=asadmin) 
     208        self.logger = logger.openLogger(self) 
     209        self.storage = storage.openConnection(self) 
    204210        self.smtpserver = self.config.getSMTPServer() 
    205211