Changeset 3252 for pykota/trunk/pykota/accounters
- Timestamp:
- 11/03/07 11:09:17 (16 years ago)
- Location:
- pykota/trunk/pykota/accounters
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/accounters/ink.py
r3245 r3252 88 88 jobsize = len(pages) 89 89 try : 90 if self.filter. InputFile is not None :90 if self.filter.Ticket.FileName is not None : 91 91 # when a filename is passed as an argument, the backend 92 92 # must generate the correct number of copies. 93 jobsize *= self.filter. Copies94 self.inkUsage *= self.filter. Copies93 jobsize *= self.filter.Ticket.Copies 94 self.inkUsage *= self.filter.Ticket.Copies 95 95 except AttributeError : # When not run from the cupspykota backend 96 96 pass -
pykota/trunk/pykota/accounters/software.py
r3245 r3252 67 67 else : 68 68 try : 69 if self.filter. InputFile is not None :69 if self.filter.Ticket.FileName is not None : 70 70 # when a filename is passed as an argument, the backend 71 71 # must generate the correct number of copies. 72 jobsize *= self.filter. Copies72 jobsize *= self.filter.Ticket.Copies 73 73 except AttributeError : # When not run from the cupspykota backend 74 74 pass … … 128 128 129 129 pagecounter = pagecounter or 0 130 if self.filter. InputFile is not None :130 if self.filter.Ticket.FileName is not None : 131 131 # when a filename is passed as an argument, the backend 132 132 # must generate the correct number of copies. 133 pagecounter *= self.filter. Copies133 pagecounter *= self.filter.Ticket.Copies 134 134 135 135 return pagecounter