Mercurial > libervia-backend
comparison src/core/constants.py @ 923:e77948faaef3
core: removed default_config:
- constants in core.default_config moved to core.constants
- removed unused host.getConst and host.setConst
- APP_NAME* used where it make sense
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 22 Mar 2014 17:48:10 +0100 |
parents | ed9841e6d84a |
children | d609581bf74a |
comparison
equal
deleted
inserted
replaced
922:c897c8d321b3 | 923:e77948faaef3 |
---|---|
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 | 20 |
21 class Const(object): | 21 class Const(object): |
22 APP_NAME = u'Salut à Toi' | |
23 APP_NAME_SHORT = u'SàT' | |
24 APP_NAME_FULL = u'%s (%s)' % (APP_NAME_SHORT, APP_NAME) | |
25 APP_VERSION = u'0.4.1D' # Please add 'D' at the end for dev versions | |
26 | |
27 DEFAULT_CONFIG = { | |
28 'local_dir': '~/.sat', | |
29 'media_dir': '/usr/share/sat/media', | |
30 } | |
31 | |
22 NO_SECURITY_LIMIT = -1 | 32 NO_SECURITY_LIMIT = -1 |
23 INDIVIDUAL = "individual" | 33 INDIVIDUAL = "individual" |
24 GENERAL = "general" | 34 GENERAL = "general" |
25 SAVEFILE_DATABASE = "/sat.db" | 35 SAVEFILE_DATABASE = "sat.db" |
26 PROF_KEY_NONE = '@NONE@' | 36 PROF_KEY_NONE = '@NONE@' |
27 PROF_KEY_DEFAULT = '@DEFAULT@' | 37 PROF_KEY_DEFAULT = '@DEFAULT@' |
28 IQ_SET = '/iq[@type="set"]' | 38 IQ_SET = '/iq[@type="set"]' |