comparison src/common/constants.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 e8b133b77aa4
children 22fe06569b1a
comparison
equal deleted inserted replaced
913:58f611481e6d 914:0c0551967bdf
46 NOT_ALLOWED = 'NOT ALLOWED' 46 NOT_ALLOWED = 'NOT ALLOWED'
47 UPLOAD_OK = 'UPLOAD OK' 47 UPLOAD_OK = 'UPLOAD OK'
48 UPLOAD_KO = 'UPLOAD KO' 48 UPLOAD_KO = 'UPLOAD KO'
49 49
50 # directories 50 # directories
51 AVATARS_DIR = "avatars/"
52 MEDIA_DIR = "media/" 51 MEDIA_DIR = "media/"
52 CACHE_DIR = "cache"
53 53
54 # avatars 54 # avatars
55 DEFAULT_AVATAR_FILE = "default_avatar.png" 55 DEFAULT_AVATAR_FILE = "default_avatar.png"
56 DEFAULT_AVATAR_URL = os.path.join(MEDIA_DIR, "misc", DEFAULT_AVATAR_FILE) 56 DEFAULT_AVATAR_URL = os.path.join(MEDIA_DIR, "misc", DEFAULT_AVATAR_FILE)
57 EMPTY_AVATAR_FILE = "empty_avatar" 57 EMPTY_AVATAR_FILE = "empty_avatar"