Show
Ignore:
Timestamp:
09/10/04 23:32:54 (20 years ago)
Author:
jalet
Message:

Small fixes for incomplete entry intialization

Files:
1 modified

Legend:

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

    r1692 r1711  
    2222# 
    2323# $Log$ 
     24# Revision 1.59  2004/09/10 21:32:52  jalet 
     25# Small fixes for incomplete entry intialization 
     26# 
    2427# Revision 1.58  2004/09/02 10:09:30  jalet 
    2528# Fixed bug in LDAP user deletion code which didn't correctly delete the user's 
     
    356359        """Sets the printer's prices.""" 
    357360        if priceperpage is None : 
    358             priceperpage = self.PricePerPage 
     361            priceperpage = self.PricePerPage or 0.0 
    359362        else :     
    360363            self.PricePerPage = float(priceperpage) 
    361364        if priceperjob is None :     
    362             priceperjob = self.PricePerJob 
     365            priceperjob = self.PricePerJob or 0.0 
    363366        else :     
    364367            self.PricePerJob = float(priceperjob)