comparison src/common/constants.py @ 679:a90cc8fc9605

merged branch frontends_multi_profiles
author Goffi <goffi@goffi.org>
date Wed, 18 Mar 2015 16:15:18 +0100
parents 3eb3a2c0c011 9092e624bb27
children 9877607c719a
comparison
equal deleted inserted replaced
590:1bffc4c244c3 679:a90cc8fc9605
16 16
17 # You should have received a copy of the GNU Affero General Public License 17 # You should have received a copy of the GNU Affero General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20 from sat.core.i18n import D_ 20 from sat.core.i18n import D_
21 from sat_frontends import constants 21 from sat_frontends.quick_frontend import constants
22 import os.path
22 23
23 24
24 class Const(constants.Const): 25 class Const(constants.Const):
26
27 LIBERVIA_MAIN_PAGE = "libervia.html"
25 28
26 # Frontend parameters 29 # Frontend parameters
27 COMPOSITION_KEY = D_("Composition") 30 COMPOSITION_KEY = D_("Composition")
28 ENABLE_UNIBOX_PARAM = D_("Enable unibox") 31 ENABLE_UNIBOX_PARAM = D_("Enable unibox")
29 32
44 NOT_ALLOWED = 'NOT ALLOWED' 47 NOT_ALLOWED = 'NOT ALLOWED'
45 UPLOAD_OK = 'UPLOAD OK' 48 UPLOAD_OK = 'UPLOAD OK'
46 UPLOAD_KO = 'UPLOAD KO' 49 UPLOAD_KO = 'UPLOAD KO'
47 UNKNOWN_ERROR = 'UNMANAGED FAULT STRING (%s)' 50 UNKNOWN_ERROR = 'UNMANAGED FAULT STRING (%s)'
48 51
49 # PATHS 52 # directories
50 AVATARS_DIR = "avatars/" 53 AVATARS_DIR = "avatars/"
54 MEDIA_DIR = "media/"
51 55
52 # Default avatar 56 # avatars
53 DEFAULT_AVATAR = "/media/misc/default_avatar.png" 57 DEFAULT_AVATAR_FILE = "default_avatar.png"
58 DEFAULT_AVATAR_URL = os.path.join(MEDIA_DIR, "misc", DEFAULT_AVATAR_FILE)
59 EMPTY_AVATAR_FILE = "empty_avatar"
60 EMPTY_AVATAR_URL = os.path.join(MEDIA_DIR, "misc", EMPTY_AVATAR_FILE)
54 61
55 RSM_MAX_ITEMS = 5 62 RSM_MAX_ITEMS = 5
56 RSM_MAX_COMMENTS = 5 63 RSM_MAX_COMMENTS = 5
57 64