comparison frontends/wix/param.py @ 89:23caf1051099

multi-profile/subscription misc fixes
author Goffi <goffi@goffi.org>
date Thu, 13 May 2010 16:27:48 +0930
parents 8f2ed279784b
children 7452ac3818e7
comparison
equal deleted inserted replaced
88:59f181e8433a 89:23caf1051099
55 55
56 def addCategory(self, category): 56 def addCategory(self, category):
57 panel=wx.Panel(self.notebook) 57 panel=wx.Panel(self.notebook)
58 panel.sizer = wx.BoxSizer(wx.VERTICAL) 58 panel.sizer = wx.BoxSizer(wx.VERTICAL)
59 59
60 cat_dom = minidom.parseString(self.host.bridge.getParamsForCategory(category).encode('utf-8')) 60 cat_dom = minidom.parseString(self.host.bridge.getParamsForCategory(category, profile_key = self.host.profile).encode('utf-8'))
61 61
62 for param in cat_dom.documentElement.getElementsByTagName("param"): 62 for param in cat_dom.documentElement.getElementsByTagName("param"):
63 name = param.getAttribute("name") 63 name = param.getAttribute("name")
64 type = param.getAttribute("type") 64 type = param.getAttribute("type")
65 value = param.getAttribute("value") 65 value = param.getAttribute("value")
113 self.host.current_action_ids.add(id) 113 self.host.current_action_ids.add(id)
114 event.Skip() 114 event.Skip()
115 115
116 def __save_parameters(self): 116 def __save_parameters(self):
117 for param in self.modified: 117 for param in self.modified:
118 self.host.bridge.setParam(param[0], self.modified[param], param[1]) 118 self.host.bridge.setParam(param[0], self.modified[param], param[1], profile_key = self.host.profile)
119 self.modified.clear() 119 self.modified.clear()
120 120
121 def onClose(self, event): 121 def onClose(self, event):
122 """Close event: we have to save the params.""" 122 """Close event: we have to save the params."""
123 debug(_("close")) 123 debug(_("close"))