# HG changeset patch # User Goffi # Date 1282237869 -28800 # Node ID ca1010f47002e8cad442ef501c6c04e93822abb3 # Parent fc1654cf2a233503f3abf76125ab2d75c9af7e24 core: fixed forgotten profile in paramUpdate signal diff -r fc1654cf2a23 -r ca1010f47002 tools/memory.py --- a/tools/memory.py Fri Aug 20 00:11:26 2010 +0800 +++ b/tools/memory.py Fri Aug 20 01:11:09 2010 +0800 @@ -359,6 +359,10 @@ def setParam(self, name, value, category, profile_key='@DEFAULT@'): """Set a parameter, return None if the parameter is not in param xml""" + profile = self.getProfileName(profile_key) + if not profile: + error(_('Trying to set parameter for an unknown profile')) + return #TODO: throw an error node = self.__getParamNode(name, category, '@ALL@') if not node: @@ -367,15 +371,10 @@ if node[0] == 'general': self.params_gen[(category, name)] = value - self.host.bridge.paramUpdate(name, value, category) #TODO: add profile in signal + self.host.bridge.paramUpdate(name, value, category, profile) #TODO: add profile in signal return assert (node[0] == 'individual') - - profile = self.getProfileName(profile_key) - if not profile: - error(_('Trying to set parameter for an unknown profile')) - return #TODO: throw an error type = node[1].getAttribute("type") if type=="button":