diff src/server/server.py @ 462:07433bd892ee

server and browser sides: fixes UI parameters initialisation with user values + small refactoring
author souliane <souliane@mailoo.org>
date Wed, 04 Jun 2014 00:23:14 +0200
parents da2a7f2b34c9
children bea9788f3170
line wrap: on
line diff
--- a/src/server/server.py	Wed Jun 04 00:22:00 2014 +0200
+++ b/src/server/server.py	Wed Jun 04 00:23:14 2014 +0200
@@ -770,15 +770,15 @@
         <params>
         <individual>
         <category name="%(category_name)s" label="%(category_label)s">
-            <param name="%(param_name)s" label="%(param_label)s" value="false" type="bool" security="0"/>
+            <param name="%(enable_unibox)s" label="%(enable_unibox_label)s" value="false" type="bool" security="0"/>
          </category>
         </individual>
         </params>
         """ % {
-            'category_name': C.ENABLE_UNIBOX_KEY,
-            'category_label': _(C.ENABLE_UNIBOX_KEY),
-            'param_name': C.ENABLE_UNIBOX_PARAM,
-            'param_label': _(C.ENABLE_UNIBOX_PARAM)
+            'category_name': C.COMPOSITION_KEY,
+            'category_label': _(C.COMPOSITION_KEY),
+            'enable_unibox': C.ENABLE_UNIBOX_PARAM,
+            'enable_unibox_label': _(C.ENABLE_UNIBOX_PARAM),
         }
 
         self.sat_host.bridge.paramsRegisterApp(params, C.SECURITY_LIMIT, C.APP_NAME)