Show
Ignore:
Timestamp:
07/23/04 00:41:48 (20 years ago)
Author:
jalet
Message:

Hardware accounting for LPRng should be OK now. UNTESTED.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storage.py

    r1582 r1624  
    2222# 
    2323# $Log$ 
     24# Revision 1.57  2004/07/22 22:41:48  jalet 
     25# Hardware accounting for LPRng should be OK now. UNTESTED. 
     26# 
    2427# Revision 1.56  2004/07/01 17:45:49  jalet 
    2528# Added code to handle the description field for printers 
     
    513516        self.Printer = printer 
    514517         
    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.User 
    520         else :     
    521             raise AttributeError, name 
    522          
    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 = jobsize 
    528         self.JobPrice = jobprice 
    529         return jobprice 
    530          
    531518class BaseStorage : 
    532519    def __init__(self, pykotatool) :