Show
Ignore:
Timestamp:
04/30/03 21:53:58 (21 years ago)
Author:
jalet
Message:

1.05

Files:
1 modified

Legend:

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

    r976 r980  
    2121# 
    2222# $Log$ 
     23# Revision 1.3  2003/04/30 19:53:58  jalet 
     24# 1.05 
     25# 
    2326# Revision 1.2  2003/04/30 13:36:40  jalet 
    2427# Stupid accounting method was added. 
     
    4346class AccounterBase :     
    4447    """A class to account print usage by querying printers.""" 
    45     def __init__(self, kotafilter) : 
     48    def __init__(self, kotafilter, arguments) : 
    4649        """Sets instance vars depending on the current printer.""" 
    4750        self.filter = kotafilter 
     51        self.arguments = arguments 
    4852         
    4953    def filterInput(self, inputfile) : 
     
    7175def openAccounter(kotafilter) : 
    7276    """Returns a connection handle to the appropriate accounter.""" 
    73     backend = kotafilter.config.getAccounterBackend(kotafilter.printername) 
     77    (backend, args) = kotafilter.config.getAccounterBackend(kotafilter.printername) 
    7478    try : 
    7579        if not backend.isalpha() : 
     
    8084        raise PyKotaAccounterError, _("Unsupported accounter backend %s") % backend 
    8185    else :     
    82         return getattr(accounterbackend, "Accounter")(kotafilter) 
     86        return getattr(accounterbackend, "Accounter")(kotafilter, args)