Mercurial > libervia-web
comparison src/server/blog.py @ 914:0c0551967bdf
server, browser: partial Libervia fix
Libervia was broken following the refactorings. This commit partially fixes it : Libervia is starting, avatar, blog and message are working again, but not everything is restablished yet.
following things have been fixed/changed:
- new dependency: shortuuid
- D-Bus bridge is working again
- fixed naming in several bridge methods
- register method changed to register_signal
- fixed Chat widget, which was not working anymore since the refactoring
- avatar now use avatarGet. Cache dir is accessible using a session specific uuid, to avoid cache leak (i.e. accessing cache of other profiles)
- server: new uuid attribute in session data
Browser code is not fully working yet, notably OTR and contact list are not fully fixed.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 26 Feb 2017 18:32:47 +0100 |
parents | f82b97d9ca5f |
children | e9e9d9d893a8 |
comparison
equal
deleted
inserted
replaced
913:58f611481e6d | 914:0c0551967bdf |
---|---|
120 | 120 |
121 def __init__(self, host): | 121 def __init__(self, host): |
122 self.host = host | 122 self.host = host |
123 Resource.__init__(self) | 123 Resource.__init__(self) |
124 TemplateProcessor.__init__(self, host) | 124 TemplateProcessor.__init__(self, host) |
125 self.host.bridge.register('entityDataUpdated', self.entityDataUpdatedHandler) | 125 self.host.bridge.register_signal('entityDataUpdated', self.entityDataUpdatedHandler) |
126 self.avatars_cache = {} | 126 self.avatars_cache = {} |
127 self.waiting_deferreds = {} | 127 self.waiting_deferreds = {} |
128 | 128 |
129 def entityDataUpdatedHandler(self, entity_s, key, value, dummy): | 129 def entityDataUpdatedHandler(self, entity_s, key, value, dummy): |
130 """Retrieve the avatar we've been waiting for and fires the callback. | 130 """Retrieve the avatar we've been waiting for and fires the callback. |