Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_app.py @ 538:2c4016921403
core, frontends, bridgen plugins: fixed methods which were unproperly managing multi-profiles
- added profile argument to askConfirmation, actionResult, actionResultExt, entityDataUpdated, confirmationAnswer, getProgress
- core, frontends: fixed calls/signals according to new bridge API
- user of proper profile namespace for progression indicators and dialogs
- memory: getParam* now return bool when param type is bool
- memory: added getStringParam* to return string instead of typed value
- core, memory, storage, quick_frontend: getHistory now manage properly multi-profiles
- plugins XEP-0047, XEP-0054, XEP-0065, XEP-0077, XEP-0096; multi-profiles proper handling
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 10 Nov 2012 16:38:16 +0100 |
parents | 0bb595eff25b |
children | 3eeb6c865e4d |
comparison
equal
deleted
inserted
replaced
537:28cddc96c4ed | 538:2c4016921403 |
---|---|
112 (self.options, args) = parser.parse_args() | 112 (self.options, args) = parser.parse_args() |
113 if self.options.profile: | 113 if self.options.profile: |
114 self.options.profile = self.options.profile.decode('utf-8') | 114 self.options.profile = self.options.profile.decode('utf-8') |
115 return args | 115 return args |
116 | 116 |
117 def _getParamError(self): | 117 def _getParamError(self, ignore): |
118 error(_("Can't get profile parameter")) | 118 error(_("Can't get profile parameter")) |
119 | 119 |
120 def plug_profile(self, profile_key='@DEFAULT@'): | 120 def plug_profile(self, profile_key='@DEFAULT@'): |
121 """Tell application which profile must be used""" | 121 """Tell application which profile must be used""" |
122 if self.single_profile and self.profiles: | 122 if self.single_profile and self.profiles: |
544 if jid in self.contact_list: | 544 if jid in self.contact_list: |
545 filename = self.bridge.getAvatarFile(value) | 545 filename = self.bridge.getAvatarFile(value) |
546 self.contact_list.setCache(jid, 'avatar', filename) | 546 self.contact_list.setCache(jid, 'avatar', filename) |
547 self.contact_list.replace(jid) | 547 self.contact_list.replace(jid) |
548 | 548 |
549 def askConfirmation(self, type, id, data): | 549 def askConfirmation(self, type, id, data, profile): |
550 raise NotImplementedError | 550 raise NotImplementedError |
551 | 551 |
552 def actionResult(self, type, id, data): | 552 def actionResult(self, type, id, data): |
553 raise NotImplementedError | 553 raise NotImplementedError |
554 | 554 |