Changeset 3062
- Timestamp:
- 11/21/06 22:55:57 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storage.py
r3060 r3062 487 487 if (not self.JobSize) or (self.JobAction in ("DENY", "CANCEL", "REFUND")) : 488 488 return 489 490 basereason = _("Refunded %i pages and %.3f credits by %s (%s) on %s") \ 491 % (self.JobSize, 492 self.JobPrice, 493 os.getlogin(), 494 self.parent.tool.originalUserName, 495 str(DateTime.now())[:19]) 496 if reason : 497 reason = "%s : %s" % (basereason, reason) 498 else : 499 reason = basereason 500 self.parent.tool.logdebug("Refunding job %s..." % self.ident) 489 501 self.parent.beginTransaction() 490 502 try : … … 502 514 except : 503 515 self.parent.rollbackTransaction() 516 self.parent.tool.logdebug("Error while refunding job %s." % self.ident) 504 517 raise 505 518 else : 506 519 self.parent.commitTransaction() 520 self.parent.tool.logdebug("Job %s refunded." % self.ident) 507 521 508 522