- Timestamp:
- 09/14/04 08:53:53 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/accounters/hardware.py
r1713 r1714 22 22 # 23 23 # $Log$ 24 # Revision 1.14 2004/09/14 06:53:53 jalet 25 # Small test added 26 # 24 27 # Revision 1.13 2004/09/13 16:02:45 jalet 25 28 # Added fix for incorrect job's size when hardware accounting fails … … 124 127 self.counterbefore = before 125 128 self.counterafter = after 126 if self.counterbefore == self.counterafter:129 if (not self.counterbefore) or (self.counterbefore == self.counterafter) : 127 130 self.filter.printInfo(_("Couldn't retrieve printer %s's internal page counter either before or after printing.") % printer.Name, "warn") 128 131 self.filter.printInfo(_("Job's size forced to 1 page for printer %s.") % printer.Name, "warn") 129 self.counterafter = self.counterbefore + 1 132 self.counterbefore = 0 133 self.counterafter = 1 130 134 else : 131 135 self.filter.printInfo(_("No previous job in database for printer %s.") % printer.Name, "warn")