Changeset 2409 for pykota/trunk/pykota/accounter.py
- Timestamp:
- 08/28/05 12:45:51 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/accounter.py
r2302 r2409 40 40 self.filter = kotafilter 41 41 self.arguments = arguments 42 self.onerror = self.filter.config.getPrinterOnAccounterError(self.filter. printername)42 self.onerror = self.filter.config.getPrinterOnAccounterError(self.filter.PrinterName) 43 43 self.isSoftware = 1 # by default software accounting 44 44 … … 54 54 # computes job's size 55 55 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 60 58 61 59 # get last job information for this printer … … 90 88 def openAccounter(kotafilter) : 91 89 """Returns a connection handle to the appropriate accounter.""" 92 (backend, args) = kotafilter.config.getAccounterBackend(kotafilter. printername)90 (backend, args) = kotafilter.config.getAccounterBackend(kotafilter.PrinterName) 93 91 try : 94 92 exec "from pykota.accounters import %s as accounterbackend" % backend.lower()