comparison tools/memory.py @ 166:b318d2b58887

Primitivus: parameters management via XMLUI
author Goffi <goffi@goffi.org>
date Mon, 09 Aug 2010 21:39:41 +0800
parents 138d82f64b6f
children 556c2bd7c344
comparison
equal deleted inserted replaced
165:8a2053de6f8c 166:b318d2b58887
280 param_node.setAttribute('value', profile_value) 280 param_node.setAttribute('value', profile_value)
281 prof_xml.documentElement.appendChild(cat_copy) 281 prof_xml.documentElement.appendChild(cat_copy)
282 return prof_xml 282 return prof_xml
283 283
284 284
285 def getParamsUI(self, profile_key='@DEFAULT'): 285 def getParamsUI(self, profile_key='@DEFAULT@'):
286 """Return a SàT XMLUI for parameters, with given profile""" 286 """Return a SàT XMLUI for parameters, with given profile"""
287 profile = self.getProfileName(profile_key) 287 profile = self.getProfileName(profile_key)
288 if not profile: 288 if not profile:
289 error(_("Asking params for inexistant profile")) 289 error(_("Asking params for inexistant profile"))
290 return "" 290 return ""