comparison tools/memory.py @ 63:0db25931b60d

SàT: multi-profiles: somes fixes in core
author Goffi <goffi@goffi.org>
date Fri, 29 Jan 2010 14:17:15 +1100
parents 93cb45a7420f
children d46f849664aa
comparison
equal deleted inserted replaced
62:93cb45a7420f 63:0db25931b60d
173 import_node(node, child) 173 import_node(node, child)
174 174
175 import_node(self.dom.documentElement, src_dom.documentElement) 175 import_node(self.dom.documentElement, src_dom.documentElement)
176 176
177 def __default_ok(self, value, name, category): 177 def __default_ok(self, value, name, category):
178 #FIXME: gof: will not work with individual parameters
178 self.setParam(name, value, category) #FIXME: better to set param xml value ??? 179 self.setParam(name, value, category) #FIXME: better to set param xml value ???
179 180
180 def __default_ko(self, failure, name, category): 181 def __default_ko(self, failure, name, category):
181 error ("Can't determine default value for [%s/%s]: %s" % (category, name, str(failure.value))) 182 error ("Can't determine default value for [%s/%s]: %s" % (category, name, str(failure.value)))
182 183
559 return self.params.getParamsForCategory(category) 560 return self.params.getParamsForCategory(category)
560 561
561 def getParamsCategories(self): 562 def getParamsCategories(self):
562 return self.params.getParamsCategories() 563 return self.params.getParamsCategories()
563 564
564 def setParam(self, name, value, category): 565 def setParam(self, name, value, category, profile_key='@DEFAULT@'):
565 return self.params.setParam(name, value, category) 566 return self.params.setParam(name, value, category, profile_key)
566 567
567 def importParams(self, xml): 568 def importParams(self, xml):
568 return self.params.importParams(xml) 569 return self.params.importParams(xml)
569 570
570 def setDefault(self, name, category, callback, errback=None): 571 def setDefault(self, name, category, callback, errback=None):