core: more organisation in constants.py
This commit is contained in:
parent
a6897c76e0
commit
2dcca42c19
1 changed files with 22 additions and 7 deletions
|
|
@ -22,11 +22,27 @@ from xdg import BaseDirectory
|
|||
|
||||
|
||||
class Const(object):
|
||||
|
||||
## Application ##
|
||||
APP_NAME = u'Salut à Toi'
|
||||
APP_NAME_SHORT = u'SàT'
|
||||
APP_NAME_FULL = u'%s (%s)' % (APP_NAME_SHORT, APP_NAME)
|
||||
APP_VERSION = u'0.4.1D' # Please add 'D' at the end for dev versions
|
||||
|
||||
|
||||
## Parameters ##
|
||||
NO_SECURITY_LIMIT = -1
|
||||
INDIVIDUAL = "individual"
|
||||
GENERAL = "general"
|
||||
|
||||
|
||||
## Profile and entities ##
|
||||
PROF_KEY_NONE = '@NONE@'
|
||||
PROF_KEY_DEFAULT = '@DEFAULT@'
|
||||
ENTITY_ALL = '@ALL@'
|
||||
|
||||
|
||||
## Configuration ##
|
||||
DEFAULT_CONFIG = {
|
||||
'media_dir': '/usr/share/sat/media',
|
||||
'pid_dir': '/tmp',
|
||||
|
|
@ -45,13 +61,12 @@ class Const(object):
|
|||
['%s/' % path for path in list(BaseDirectory.load_config_paths('sat'))]
|
||||
]
|
||||
|
||||
NO_SECURITY_LIMIT = -1
|
||||
INDIVIDUAL = "individual"
|
||||
GENERAL = "general"
|
||||
SAVEFILE_DATABASE = "sat.db"
|
||||
PROF_KEY_NONE = '@NONE@'
|
||||
PROF_KEY_DEFAULT = '@DEFAULT@'
|
||||
IQ_SET = '/iq[@type="set"]'
|
||||
|
||||
## Plugins ##
|
||||
# names of widely used plugins
|
||||
TEXT_CMDS = 'TEXT-COMMANDS'
|
||||
|
||||
|
||||
## Misc ##
|
||||
SAVEFILE_DATABASE = "sat.db"
|
||||
IQ_SET = '/iq[@type="set"]'
|
||||
|
|
|
|||
Loading…
Reference in a new issue