diff src/bridge/bridge_constructor/bridge_template.ini @ 2126:2f264f3df280

core (menus): improvments: - use the new convention for bridge names (getMenus ==> menusGet, etc.) - menu now use canonical path, which is the untranslated path with each element stripped and lowercase, it must be unique by menu type - added menuLaunch method to manually launch a menu like an action, canonical path is used instead of id - added SECURITY_LIMIT_MAX constant
author Goffi <goffi@goffi.org>
date Thu, 26 Jan 2017 20:29:48 +0100
parents 9c861d07b5b6
children be96beb7ca14
line wrap: on
line diff
--- a/src/bridge/bridge_constructor/bridge_template.ini	Thu Jan 26 20:24:58 2017 +0100
+++ b/src/bridge/bridge_constructor/bridge_template.ini	Thu Jan 26 20:29:48 2017 +0100
@@ -640,7 +640,7 @@
     progress_dict map progress_id to progress_data
     progress_data is the same dict as returned by [progressGet]
 
-[getMenus]
+[menusGet]
 type=method
 category=core
 sig_in=si
@@ -656,7 +656,22 @@
  - menu_path_i18n: translated path of the menu
  - extra: extra data, like icon name
 
-[getMenuHelp]
+[menuLaunch]
+async=
+type=method
+category=core
+sig_in=sasa{ss}is
+sig_out=a{ss}
+doc=Launch a registred menu
+doc_param_0=menu_type: type of the menu (C.MENU_*)
+doc_param_1=path: canonical (untranslated) path of the menu
+doc_param_2=data: optional data
+doc_param_3=%(doc_security_limit)s
+doc_param_4=%(doc_profile_key)s
+doc_return=dict where key can be:
+    - xmlui: a XMLUI need to be displayed
+
+[menuHelpGet]
 type=method
 category=core
 sig_in=ss