Show
Ignore:
Timestamp:
08/28/05 12:45:51 (19 years ago)
Author:
jerome
Message:

The cupspykota backend was rewritten from scratch. MacOSX servers should
work just fine now.
Severity : High. Testers MORE than welcome :-)

Files:
1 modified

Legend:

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

    r2302 r2409  
    4040        self.filter = kotafilter 
    4141        self.arguments = arguments 
    42         self.onerror = self.filter.config.getPrinterOnAccounterError(self.filter.printername) 
     42        self.onerror = self.filter.config.getPrinterOnAccounterError(self.filter.PrinterName) 
    4343        self.isSoftware = 1 # by default software accounting 
    4444         
     
    5454        # computes job's size 
    5555        self.JobSize = self.computeJobSize() 
    56         if ((self.filter.printingsystem == "CUPS") \ 
    57             and (self.filter.preserveinputfile is not None)) \ 
    58             or (self.filter.printingsystem != "CUPS") : 
    59             self.JobSize *= self.filter.copies 
     56        if self.filter.InputFile is not None : 
     57            self.JobSize *= self.filter.Copies 
    6058         
    6159        # get last job information for this printer 
     
    9088def openAccounter(kotafilter) : 
    9189    """Returns a connection handle to the appropriate accounter.""" 
    92     (backend, args) = kotafilter.config.getAccounterBackend(kotafilter.printername) 
     90    (backend, args) = kotafilter.config.getAccounterBackend(kotafilter.PrinterName) 
    9391    try : 
    9492        exec "from pykota.accounters import %s as accounterbackend" % backend.lower()