Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
2125:ca82c97db195 | 2126:2f264f3df280 |
---|---|
638 doc_param_0=%(doc_profile)s or C.PROF_KEY_ALL for all profiles | 638 doc_param_0=%(doc_profile)s or C.PROF_KEY_ALL for all profiles |
639 doc_return= a dict which map profile to progress_dict | 639 doc_return= a dict which map profile to progress_dict |
640 progress_dict map progress_id to progress_data | 640 progress_dict map progress_id to progress_data |
641 progress_data is the same dict as returned by [progressGet] | 641 progress_data is the same dict as returned by [progressGet] |
642 | 642 |
643 [getMenus] | 643 [menusGet] |
644 type=method | 644 type=method |
645 category=core | 645 category=core |
646 sig_in=si | 646 sig_in=si |
647 sig_out=a(ssasasa{ss}) | 647 sig_out=a(ssasasa{ss}) |
648 doc=Get all additional menus | 648 doc=Get all additional menus |
654 * NORMAL: Classical application menu | 654 * NORMAL: Classical application menu |
655 - menu_path: raw path of the menu | 655 - menu_path: raw path of the menu |
656 - menu_path_i18n: translated path of the menu | 656 - menu_path_i18n: translated path of the menu |
657 - extra: extra data, like icon name | 657 - extra: extra data, like icon name |
658 | 658 |
659 [getMenuHelp] | 659 [menuLaunch] |
660 async= | |
661 type=method | |
662 category=core | |
663 sig_in=sasa{ss}is | |
664 sig_out=a{ss} | |
665 doc=Launch a registred menu | |
666 doc_param_0=menu_type: type of the menu (C.MENU_*) | |
667 doc_param_1=path: canonical (untranslated) path of the menu | |
668 doc_param_2=data: optional data | |
669 doc_param_3=%(doc_security_limit)s | |
670 doc_param_4=%(doc_profile_key)s | |
671 doc_return=dict where key can be: | |
672 - xmlui: a XMLUI need to be displayed | |
673 | |
674 [menuHelpGet] | |
660 type=method | 675 type=method |
661 category=core | 676 category=core |
662 sig_in=ss | 677 sig_in=ss |
663 sig_out=s | 678 sig_out=s |
664 param_2="NORMAL" | 679 param_2="NORMAL" |