comparison src/server/server.py @ 696:c2f22ca12e23

browser and server side: remove unibox
author souliane <souliane@mailoo.org>
date Mon, 20 Apr 2015 08:51:25 +0200
parents 82123705474b
children 5319110a862c
comparison
equal deleted inserted replaced
695:e86490a7c76e 696:c2f22ca12e23
836 return (True, None) 836 return (True, None)
837 return (False, self.__getSecurityWarning()) 837 return (False, self.__getSecurityWarning())
838 838
839 def jsonrpc_registerParams(self): 839 def jsonrpc_registerParams(self):
840 """Register the frontend specific parameters""" 840 """Register the frontend specific parameters"""
841 params = """ 841 # params = """<params><individual>...</category></individual>"""
842 <params> 842 # self.sat_host.bridge.paramsRegisterApp(params, C.SECURITY_LIMIT, C.APP_NAME)
843 <individual>
844 <category name="%(category_name)s" label="%(category_label)s">
845 <param name="%(enable_unibox)s" label="%(enable_unibox_label)s" value="false" type="bool" security="0"/>
846 </category>
847 </individual>
848 </params>
849 """ % {
850 'category_name': C.COMPOSITION_KEY,
851 'category_label': _(C.COMPOSITION_KEY),
852 'enable_unibox': C.ENABLE_UNIBOX_PARAM,
853 'enable_unibox_label': _(C.ENABLE_UNIBOX_PARAM),
854 }
855
856 self.sat_host.bridge.paramsRegisterApp(params, C.SECURITY_LIMIT, C.APP_NAME)
857 843
858 def jsonrpc_getMenus(self): 844 def jsonrpc_getMenus(self):
859 """Return the parameters XML for profile""" 845 """Return the parameters XML for profile"""
860 # XXX: we put this method in Register because we get menus before being logged 846 # XXX: we put this method in Register because we get menus before being logged
861 return self.sat_host.bridge.getMenus('', C.SECURITY_LIMIT) 847 return self.sat_host.bridge.getMenus('', C.SECURITY_LIMIT)