Mercurial > libervia-backend
comparison frontends/src/primitivus/primitivus @ 1365:ba87b940f07a frontends_multi_profiles
core, quick_frontends: added an "extra" item in getMenus + use of new quick_menus module in QuickApp
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 17 Mar 2015 19:33:05 +0100 |
parents | 8ea8fa13c351 |
children | 0dca4f9b264d |
comparison
equal
deleted
inserted
replaced
1364:28f0b33ca17c | 1365:ba87b940f07a |
---|---|
423 @param menu_data: data to send with these menus | 423 @param menu_data: data to send with these menus |
424 | 424 |
425 """ | 425 """ |
426 def add_menu_cb(callback_id): | 426 def add_menu_cb(callback_id): |
427 self.launchAction(callback_id, menu_data, profile=self.current_profile) | 427 self.launchAction(callback_id, menu_data, profile=self.current_profile) |
428 for id_, type_, path, path_i18n in self.bridge.getMenus("", C.NO_SECURITY_LIMIT ): | 428 for id_, type_, path, path_i18n, extra in self.bridge.getMenus("", C.NO_SECURITY_LIMIT ): # TODO: manage extra |
429 if type_ != type_filter: | 429 if type_ != type_filter: |
430 continue | 430 continue |
431 if len(path) != 2: | 431 if len(path) != 2: |
432 raise NotImplementedError("Menu with a path != 2 are not implemented yet") | 432 raise NotImplementedError("Menu with a path != 2 are not implemented yet") |
433 menu.addMenu(path_i18n[0], path_i18n[1], lambda dummy,id_=id_: add_menu_cb(id_)) | 433 menu.addMenu(path_i18n[0], path_i18n[1], lambda dummy,id_=id_: add_menu_cb(id_)) |