Changeset 1154
- Timestamp:
- Jun 14, 2013, 12:35:27 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dassmodus/trunk/dassmodus/nosferatu/nosferatu/config_classes.py
r994 r1154 152 152 self.defaultvalue = defaultvalue 153 153 self.default = default 154 self.value = value # real value lies in storage 154 self.value = value # real value lies in storage 155 155 self.type = type 156 156 self.required = required … … 317 317 318 318 # generated 319 class store_pint32( Item_Storage ): 319 class store_pint32( Item_Storage ): 320 320 def __str__(self): 321 321 return str(self.value) #+ '\t# '+self.__class__.__name__ + 'id: '+ str(id(self)) … … 323 323 324 324 325 326 327 325 class store_name( Item_Storage_String ): 328 326 329 327 def setValue(self,value): 330 328 logger.debug( self.__class__.__name__ +':' + 'called self.value with \''+ unicode(value) + '\'') 331 if value != None 332 if type(value) == str: 329 if value != None and value != 0: 330 if type(value) == str: 333 331 value = value.strip('"') 334 332 else: … … 341 339 342 340 class store_str( store_name ): 343 pass 344 341 pass 342 343 class store_clearpassword( store_name ): 344 pass 345 346 class store_authtype( store_name ): 347 pass 348 345 349 class store_time( Item_Storage ): 346 350 def __init__(self,val): … … 561 565 562 566 563 564 565 566 567 568 569 567 class store_int32( Item_Storage ): 570 pass 568 pass 571 569 572 570 class store_addresses_port( Item_Storage ):
Note:
See TracChangeset
for help on using the changeset viewer.