Changeset 1021 for pykota/trunk/pykota/tool.py
- Timestamp:
- 06/10/03 18:37:54 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/tool.py
r973 r1021 21 21 # 22 22 # $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 # 23 29 # Revision 1.39 2003/04/29 18:37:54 jalet 24 30 # Pluggable accounting methods (actually doesn't support external scripts) … … 188 194 class PyKotaTool : 189 195 """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__)) : 191 197 """Initializes the command line tool.""" 192 198 # locale stuff … … 200 206 self.documentation = doc 201 207 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) 204 210 self.smtpserver = self.config.getSMTPServer() 205 211