Mercurial > libervia-web
comparison 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 |
comparison
equal
deleted
inserted
replaced
461:4f25aa5039b3 | 462:07433bd892ee |
---|---|
768 """Register the frontend specific parameters""" | 768 """Register the frontend specific parameters""" |
769 params = """ | 769 params = """ |
770 <params> | 770 <params> |
771 <individual> | 771 <individual> |
772 <category name="%(category_name)s" label="%(category_label)s"> | 772 <category name="%(category_name)s" label="%(category_label)s"> |
773 <param name="%(param_name)s" label="%(param_label)s" value="false" type="bool" security="0"/> | 773 <param name="%(enable_unibox)s" label="%(enable_unibox_label)s" value="false" type="bool" security="0"/> |
774 </category> | 774 </category> |
775 </individual> | 775 </individual> |
776 </params> | 776 </params> |
777 """ % { | 777 """ % { |
778 'category_name': C.ENABLE_UNIBOX_KEY, | 778 'category_name': C.COMPOSITION_KEY, |
779 'category_label': _(C.ENABLE_UNIBOX_KEY), | 779 'category_label': _(C.COMPOSITION_KEY), |
780 'param_name': C.ENABLE_UNIBOX_PARAM, | 780 'enable_unibox': C.ENABLE_UNIBOX_PARAM, |
781 'param_label': _(C.ENABLE_UNIBOX_PARAM) | 781 'enable_unibox_label': _(C.ENABLE_UNIBOX_PARAM), |
782 } | 782 } |
783 | 783 |
784 self.sat_host.bridge.paramsRegisterApp(params, C.SECURITY_LIMIT, C.APP_NAME) | 784 self.sat_host.bridge.paramsRegisterApp(params, C.SECURITY_LIMIT, C.APP_NAME) |
785 | 785 |
786 def jsonrpc_getMenus(self): | 786 def jsonrpc_getMenus(self): |