Show
Ignore:
Timestamp:
07/01/04 19:45:49 (20 years ago)
Author:
jalet
Message:

Added code to handle the description field for printers

Files:
1 modified

Legend:

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

    r1523 r1582  
    2222# 
    2323# $Log$ 
     24# Revision 1.56  2004/07/01 17:45:49  jalet 
     25# Added code to handle the description field for printers 
     26# 
    2427# Revision 1.55  2004/06/05 22:18:04  jalet 
    2528# Now catches some exceptions earlier. 
     
    317320        self.PricePerPage = None 
    318321        self.PricePerJob = None 
     322        self.Description = None 
    319323         
    320324    def __getattr__(self, name) :     
     
    353357            self.PricePerJob = float(priceperjob) 
    354358        self.parent.writePrinterPrices(self) 
     359         
     360    def setDescription(self, description = None) :     
     361        """Sets the printer's prices.""" 
     362        if description is None : 
     363            description = self.Description 
     364        else :     
     365            self.Description = str(description) 
     366        self.parent.writePrinterDescription(self) 
    355367         
    356368    def delete(self) :