diff 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
line wrap: on
line diff
--- a/tools/memory.py	Fri Jan 29 13:55:41 2010 +1100
+++ b/tools/memory.py	Fri Jan 29 14:17:15 2010 +1100
@@ -175,6 +175,7 @@
         import_node(self.dom.documentElement, src_dom.documentElement)
 
     def __default_ok(self, value, name, category):
+        #FIXME: gof: will not work with individual parameters
         self.setParam(name, value, category) #FIXME: better to set param xml value ???
 
     def __default_ko(self, failure, name, category):
@@ -561,8 +562,8 @@
     def getParamsCategories(self):
         return self.params.getParamsCategories()
     
-    def setParam(self, name, value, category):
-        return self.params.setParam(name, value, category)
+    def setParam(self, name, value, category, profile_key='@DEFAULT@'):
+        return self.params.setParam(name, value, category, profile_key)
 
     def importParams(self, xml):
         return self.params.importParams(xml)