core, bridge: new method paramsRegisterApp to register frontend's specific parameters

This commit is contained in:
souliane 2013-12-27 13:28:26 +01:00
commit 4a0d8be8ec
2 changed files with 175 additions and 59 deletions

View file

@ -407,9 +407,7 @@ class MainWindow(wx.Frame, QuickApp):
def onParam(self, e):
debug(_("Param request"))
#xmlui = self.bridge.getParamsUI(profile_key=self.profile)
#XMLUI(self, xml_data = xmlui)
param=Param(self)
param = Param(self)
def onAbout(self, e):
about = wx.AboutDialogInfo()

View file

@ -25,6 +25,7 @@ import pdb
from xml.dom import minidom
from logging import debug, info, error
from sat.tools.jid import JID
from sat_frontends.wix.constants import Const
class Param(wx.Frame):
@ -104,6 +105,7 @@ class Param(wx.Frame):
cat_dom.unlink()
self.host.bridge.getParamsForCategory(category,
app=Const.APP_NAME,
profile_key=self.host.profile,
callback=gotParams,
errback=errorGettingParams)