Ñò àqLc@s=dZdZdgZddkZd„Zhdd„ZdS(stengine.SCons.Variables.EnumVariable This file defines the option type for SCons allowing only specified input-values. Usage example: opts = Variables() opts.Add(EnumVariable('debug', 'debug output and symbols', 'no', allowed_values=('yes', 'no', 'full'), map={}, ignorecase=2)) ... if env['debug'] == 'full': ... sIsrc/engine/SCons/Variables/EnumVariable.py 5023 2010/06/14 22:05:46 sconst EnumVariableiÿÿÿÿNcCs1||jo tiid||fƒ‚ndS(NsInvalid value for option %s: %s(tSConstErrorst UserError(tkeytvaltenvtvals((sl/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/EnumVariable.pyt _validator/s  icsªd|diˆƒf}|djo‡fd†}n‡fd†}|djo‡fd†}n0|djo‡fd†}n‡fd †}|||||fS( sc The input parameters describe a option with only certain values allowed. They are returned with an appropriate converter and validator appended. The result is usable for input to Variables.Add(). 'key' and 'default' are the values to be passed on to Variables.Add(). 'help' will be appended by the allowed values automatically 'allowed_values' is a list of strings, which are allowed as values for this option. The 'map'-dictionary may be used for converting the input value into canonical values (eg. for aliases). 'ignorecase' defines the behaviour of the validator: If ignorecase == 0, the validator/converter are case-sensitive. If ignorecase == 1, the validator/converter are case-insensitive. If ignorecase == 2, the validator/converter is case-insensitive and the converted value will always be lower-case. The 'validator' tests whether the value is in the list of allowed values. The 'converter' converts input values according to the given 'map'-dictionary (unmapped input values are returned unchanged). s%s (%s)t|icst||iƒ|ˆƒS((Rtlower(RRR(tallowed_values(sl/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/EnumVariable.pytUscst|||ˆƒS((R(RRR(R (sl/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/EnumVariable.pyR Xsicsˆi|iƒ|ƒiƒS((tgetR (R(tmap(sl/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/EnumVariable.pyR \scsˆi|iƒ|ƒS((R R (R(R(sl/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/EnumVariable.pyR ^scsˆi||ƒS((R (R(R(sl/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/EnumVariable.pyR `s(tjoin(RthelptdefaultR Rt ignorecaset validatort converter((RR sl/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/EnumVariable.pyR5s   (t__doc__t __revision__t__all__t SCons.ErrorsRRR(((sl/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Variables/EnumVariable.pyts