Changeset 3445 for pykota/trunk
- Timestamp:
- 10/26/08 20:53:36 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storage.py
r3413 r3445 477 477 if (not self.JobSize) or (self.JobAction in ("DENY", "CANCEL", "REFUND")) : 478 478 return 479 479 try : 480 loginname = os.getlogin() 481 except OSError : 482 import pwd 483 loginname = pwd.getpwuid(os.getuid()).pw_name 480 484 basereason = _("Refunded %i pages and %.3f credits by %s (%s) on %s") \ 481 485 % (self.JobSize, 482 486 self.JobPrice, 483 487 self.parent.tool.effectiveUserName, 484 os.getlogin(),488 loginname, 485 489 str(DateTime.now())[:19]) 486 490 if reason :