Changeset 2696

Show
Ignore:
Timestamp:
02/15/06 22:58:17 (18 years ago)
Author:
jerome
Message:

Fixed a small problem with printer's description.

Files:
1 modified

Legend:

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

    r2686 r2696  
    4343        self.Exists = False 
    4444         
     45    def setDescription(self, description=None) : 
     46        """Sets the object's description.""" 
     47        if description is not None : 
     48            self.Description = str(description) 
     49            self.isDirty = True     
     50         
    4551class StorageUser(StorageObject) :         
    4652    """User class.""" 
     
    4854        StorageObject.__init__(self, parent) 
    4955        self.Name = name 
     56        self.Description = None 
    5057        self.LimitBy = None 
    5158        self.AccountBalance = None 
     
    116123        self.AccountBalance = None 
    117124        self.LifeTimePaid = None 
     125        self.Description = None 
    118126         
    119127    def setLimitBy(self, limitby) :     
     
    196204        else :     
    197205            self.PricePerJob = float(priceperjob) 
    198         self.isDirty = True     
    199          
    200     def setDescription(self, description=None) : 
    201         """Sets the printer's description.""" 
    202         if description is None : 
    203             description = self.Description 
    204         else :     
    205             self.Description = str(description) 
    206206        self.isDirty = True     
    207207         
     
    478478        self.PageCounter = pagecounter 
    479479        self.isDirty = True 
    480          
    481     def setDescription(self, description=None) : 
    482         """Modifies the description for this billing code.""" 
    483         if description is None : 
    484             description = self.Description 
    485         else :     
    486             self.Description = str(description) 
    487         self.isDirty = True     
    488480         
    489481    def save(self) :