comparison src/tools/memory.py @ 276:a00e87d48213

bridge, bridge constructor: fixed mix stuff
author Goffi <goffi@goffi.org>
date Sun, 30 Jan 2011 22:54:58 +0100
parents 11f71187d5e4
children 6a0c6d8e119d
comparison
equal deleted inserted replaced
275:01a0bd6e7fae 276:a00e87d48213
242 assert(node[0] == 'individual') 242 assert(node[0] == 'individual')
243 243
244 profile = self.getProfileName(profile_key) 244 profile = self.getProfileName(profile_key)
245 if not profile: 245 if not profile:
246 error(_('Requesting a param for an non-existant profile')) 246 error(_('Requesting a param for an non-existant profile'))
247 return None 247 return ""
248 248
249 if attr == "value": 249 if attr == "value":
250 return self.__getParam(profile, category, name) or node[1].getAttribute(attr) 250 return self.__getParam(profile, category, name) or node[1].getAttribute(attr)
251 else: 251 else:
252 return node[1].getAttribute(attr) 252 return node[1].getAttribute(attr)