# HG changeset patch # User Goffi # Date 1396026433 -3600 # Node ID 598fc223cf593e4ea83118399045434f16addbbd # Parent c6d8fc63b1dbd74b2f3eac84bc4d6036c3449e20 core: more organisation in constants.py diff -r c6d8fc63b1db -r 598fc223cf59 src/core/constants.py --- a/src/core/constants.py Fri Mar 28 18:07:02 2014 +0100 +++ b/src/core/constants.py Fri Mar 28 18:07:13 2014 +0100 @@ -22,11 +22,27 @@ 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 @@ ['%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"]'