Changeset 1582 for pykota/trunk/pykota/storage.py
- Timestamp:
- 07/01/04 19:45:49 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storage.py
r1523 r1582 22 22 # 23 23 # $Log$ 24 # Revision 1.56 2004/07/01 17:45:49 jalet 25 # Added code to handle the description field for printers 26 # 24 27 # Revision 1.55 2004/06/05 22:18:04 jalet 25 28 # Now catches some exceptions earlier. … … 317 320 self.PricePerPage = None 318 321 self.PricePerJob = None 322 self.Description = None 319 323 320 324 def __getattr__(self, name) : … … 353 357 self.PricePerJob = float(priceperjob) 354 358 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) 355 367 356 368 def delete(self) :