Changeset 1624 for pykota/trunk/pykota/storage.py
- Timestamp:
- 07/23/04 00:41:48 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storage.py
r1582 r1624 22 22 # 23 23 # $Log$ 24 # Revision 1.57 2004/07/22 22:41:48 jalet 25 # Hardware accounting for LPRng should be OK now. UNTESTED. 26 # 24 27 # Revision 1.56 2004/07/01 17:45:49 jalet 25 28 # Added code to handle the description field for printers … … 513 516 self.Printer = printer 514 517 515 def __getattr__(self, name) :516 """Delays data retrieval until it's really needed."""517 if name == "User" :518 self.User = self.parent.getUser(self.UserName)519 return self.User520 else :521 raise AttributeError, name522 523 def setSize(self, userpquota, jobsize) :524 """Sets the last job's size."""525 jobprice = userpquota.computeJobPrice(jobsize)526 self.parent.writeLastJobSize(self, jobsize, jobprice)527 self.JobSize = jobsize528 self.JobPrice = jobprice529 return jobprice530 531 518 class BaseStorage : 532 519 def __init__(self, pykotatool) :