Changeset 2696
- Timestamp:
- 02/15/06 22:58:17 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storage.py
r2686 r2696 43 43 self.Exists = False 44 44 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 45 51 class StorageUser(StorageObject) : 46 52 """User class.""" … … 48 54 StorageObject.__init__(self, parent) 49 55 self.Name = name 56 self.Description = None 50 57 self.LimitBy = None 51 58 self.AccountBalance = None … … 116 123 self.AccountBalance = None 117 124 self.LifeTimePaid = None 125 self.Description = None 118 126 119 127 def setLimitBy(self, limitby) : … … 196 204 else : 197 205 self.PricePerJob = float(priceperjob) 198 self.isDirty = True199 200 def setDescription(self, description=None) :201 """Sets the printer's description."""202 if description is None :203 description = self.Description204 else :205 self.Description = str(description)206 206 self.isDirty = True 207 207 … … 478 478 self.PageCounter = pagecounter 479 479 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.Description485 else :486 self.Description = str(description)487 self.isDirty = True488 480 489 481 def save(self) :