Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_app.py @ 1093:11e2bb20e896
core, frontends (menus): MENU_ROOM and MENU_SINGLE are now managed
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 26 Jun 2014 00:05:20 +0200 |
parents | a47995155e55 |
children | a096b8579a3c |
comparison
equal
deleted
inserted
replaced
1092:0eefc74c346b | 1093:11e2bb20e896 |
---|---|
131 if profile in self.profiles: | 131 if profile in self.profiles: |
132 log.warning(_("The profile is already plugged")) | 132 log.warning(_("The profile is already plugged")) |
133 return | 133 return |
134 self.profiles[profile] = {} | 134 self.profiles[profile] = {} |
135 if self.single_profile: | 135 if self.single_profile: |
136 self.profile = profile | 136 self.profile = profile # FIXME: must be refactored (multi profiles are not managed correclty) |
137 | 137 raw_menus = self.bridge.getMenus("", C.NO_SECURITY_LIMIT ) |
138 menus = self.profiles[profile]['menus'] = {} | |
139 for raw_menu in raw_menus: | |
140 id_, type_, path, path_i18n = raw_menu | |
141 menus_data = menus.setdefault(type_, []) | |
142 menus_data.append((id_, path, path_i18n)) | |
138 self.launchAction(C.AUTHENTICATE_PROFILE_ID, {'caller': 'plug_profile'}, profile_key=profile) | 143 self.launchAction(C.AUTHENTICATE_PROFILE_ID, {'caller': 'plug_profile'}, profile_key=profile) |
139 | 144 |
140 def plug_profile_1(self, profile): | 145 def plug_profile_1(self, profile): |
141 ###now we get the essential params### | 146 ###now we get the essential params### |
142 self.bridge.asyncGetParamA("JabberID", "Connection", profile_key=profile, | 147 self.bridge.asyncGetParamA("JabberID", "Connection", profile_key=profile, |