Show
Ignore:
Timestamp:
02/04/04 12:17:00 (20 years ago)
Author:
jalet
Message:

pkprinters command line tool added.

Files:
1 modified

Legend:

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

    r1285 r1330  
    2222# 
    2323# $Log$ 
     24# Revision 1.39  2004/02/04 11:16:59  jalet 
     25# pkprinters command line tool added. 
     26# 
    2427# Revision 1.38  2004/01/12 22:43:40  jalet 
    2528# New formula to compute a job's price 
     
    272275            self.PricePerJob = float(priceperjob) 
    273276        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() 
    274288         
    275289class StorageUserPQuota(StorageObject) :