Show
Ignore:
Timestamp:
04/15/03 13:30:57 (21 years ago)
Author:
jalet
Message:

More work done on money print charging.
Minor bugs corrected.
All tools now access to the storage as priviledged users, repykota excepted.

Files:
1 modified

Legend:

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

    r900 r915  
    2121# 
    2222# $Log$ 
     23# Revision 1.31  2003/04/15 11:30:57  jalet 
     24# More work done on money print charging. 
     25# Minor bugs corrected. 
     26# All tools now access to the storage as priviledged users, repykota excepted. 
     27# 
    2328# Revision 1.30  2003/04/10 21:47:20  jalet 
    2429# Job history added. Upgrade script neutralized for now ! 
     
    153158class PyKotaTool :     
    154159    """Base class for all PyKota command line tools.""" 
    155     def __init__(self, isfilter=0, doc="PyKota %s (c) 2003 %s" % (version.__version__, version.__author__)) : 
     160    def __init__(self, asadmin=1, doc="PyKota %s (c) 2003 %s" % (version.__version__, version.__author__)) : 
    156161        """Initializes the command line tool.""" 
    157162        # locale stuff 
     
    166171        self.config = config.PyKotaConfig("/etc") 
    167172        self.logger = logger.openLogger(self.config) 
    168         self.storage = storage.openConnection(self.config, asadmin=(not isfilter)) 
     173        self.storage = storage.openConnection(self.config, asadmin=asadmin) 
    169174        self.printername = os.environ.get("PRINTER", None) 
    170175        self.smtpserver = self.config.getSMTPServer()