comparison constants.py @ 317:bbadd490e63c

misc: gather the constants in a single file, as it is done for other frontends
author souliane <souliane@mailoo.org>
date Fri, 03 Jan 2014 14:14:34 +0100
parents
children 80016abf3ad3
comparison
equal deleted inserted replaced
316:4148f8f4caa0 317:bbadd490e63c
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3
4 # Primitivus: a SAT frontend
5 # Copyright (C) 2009, 2010, 2011, 2012, 2013 Jérôme Poisson (goffi@goffi.org)
6
7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU Affero General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU Affero General Public License for more details.
16
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/>.
19
20 from sat.core.i18n import _, D_
21 from sat_frontends import constants
22
23
24 class Const(constants.Const):
25
26 APP_NAME = 'Libervia'
27
28 TIMEOUT = 300 # Session's time out, after that the user will be disconnected
29 LIBERVIA_DIR = "output/"
30 MEDIA_DIR = "media/"
31 AVATARS_DIR = "avatars/"
32 CARDS_DIR = "games/cards/tarot"
33
34 ERRNUM_BRIDGE_ERRBACK = 0 # FIXME
35 ERRNUM_LIBERVIA = 0 # FIXME
36
37 # Security limit for Libervia (get/set params)
38 SECURITY_LIMIT = 0
39
40 # Security limit for Libervia server_side
41 SERVER_SECURITY_LIMIT = constants.Const.NO_SECURITY_LIMIT
42
43 # Frontend parameters
44 ENABLE_UNIBOX_KEY = D_("Composition")
45 ENABLE_UNIBOX_PARAM = D_("Enable unibox")