From 21bba13bc6362c988907fb68933e9e790f375d63 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sun, 26 Mar 2006 19:34:31 +0000 Subject: [PATCH] are we python or what? :D --- src/common/config.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/common/config.py b/src/common/config.py index bbed3a007..0c64e12f9 100644 --- a/src/common/config.py +++ b/src/common/config.py @@ -23,12 +23,15 @@ import copy import i18n _ = i18n._ -OPT_TYPE = 0 -OPT_VAL = 1 -OPT_DESC = 2 + +( +OPT_TYPE, +OPT_VAL, +OPT_DESC, # If OPT_RESTART is True - we need restart to use our changed option # OPT_DESC also should be there -OPT_RESTART = 3 +OPT_RESTART, +) = range(4) opt_int = [ 'integer', 0 ] opt_str = [ 'string', 0 ]