Changeset 1330 for pykota/trunk/pykota/storage.py
- Timestamp:
- 02/04/04 12:17:00 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storage.py
r1285 r1330 22 22 # 23 23 # $Log$ 24 # Revision 1.39 2004/02/04 11:16:59 jalet 25 # pkprinters command line tool added. 26 # 24 27 # Revision 1.38 2004/01/12 22:43:40 jalet 25 28 # New formula to compute a job's price … … 272 275 self.PricePerJob = float(priceperjob) 273 276 self.parent.writePrinterPrices(self) 277 278 def delete(self) : 279 """Deletes a printer from the Quota Storage.""" 280 self.parent.beginTransaction() 281 try : 282 self.parent.deletePrinter(self) 283 except PyKotaStorageError, msg : 284 self.parent.rollbackTransaction() 285 raise PyKotaStorageError, msg 286 else : 287 self.parent.commitTransaction() 274 288 275 289 class StorageUserPQuota(StorageObject) :