core, frontends (menus): MENU_ROOM and MENU_SINGLE are now managed

This commit is contained in:
Goffi 2014-06-26 00:05:20 +02:00
commit 08be0324a6

View file

@ -133,8 +133,13 @@ class QuickApp(object):
return
self.profiles[profile] = {}
if self.single_profile:
self.profile = profile
self.profile = profile # FIXME: must be refactored (multi profiles are not managed correclty)
raw_menus = self.bridge.getMenus("", C.NO_SECURITY_LIMIT )
menus = self.profiles[profile]['menus'] = {}
for raw_menu in raw_menus:
id_, type_, path, path_i18n = raw_menu
menus_data = menus.setdefault(type_, [])
menus_data.append((id_, path, path_i18n))
self.launchAction(C.AUTHENTICATE_PROFILE_ID, {'caller': 'plug_profile'}, profile_key=profile)
def plug_profile_1(self, profile):