comparison src/memory/memory.py @ 588:beaf6bec2fcd

Remove every old-style class.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 18 Jan 2013 17:55:35 +0100
parents 952322b1d490
children e5a875a3311b
comparison
equal deleted inserted replaced
587:952322b1d490 588:beaf6bec2fcd
35 35
36 SAVEFILE_PARAM_XML="/param" #xml parameters template 36 SAVEFILE_PARAM_XML="/param" #xml parameters template
37 SAVEFILE_DATABASE="/sat.db" 37 SAVEFILE_DATABASE="/sat.db"
38 38
39 39
40 class Params(): 40 class Params(object):
41 """This class manage parameters with xml""" 41 """This class manage parameters with xml"""
42 ### TODO: add desciption in params 42 ### TODO: add desciption in params
43 43
44 #TODO: move Watched in a plugin 44 #TODO: move Watched in a plugin
45 default_xml = u""" 45 default_xml = u"""
526 if self.host.isConnected(profile): #key can not exists if profile is not connected 526 if self.host.isConnected(profile): #key can not exists if profile is not connected
527 self.params[profile][(category, name)] = value 527 self.params[profile][(category, name)] = value
528 self.host.bridge.paramUpdate(name, value, category, profile) 528 self.host.bridge.paramUpdate(name, value, category, profile)
529 self.storage.setIndParam(category, name, value, profile) 529 self.storage.setIndParam(category, name, value, profile)
530 530
531 class Memory: 531 class Memory(object):
532 """This class manage all persistent informations""" 532 """This class manage all persistent informations"""
533 533
534 def __init__(self, host): 534 def __init__(self, host):
535 info (_("Memory manager init")) 535 info (_("Memory manager init"))
536 self.initialized = defer.Deferred() 536 self.initialized = defer.Deferred()