Package gavo :: Package utils :: Module fancyconfig :: Class BooleanConfigItem
[frames] | no frames]

Class BooleanConfigItem

source code

object --+    
         |    
ConfigItem --+
             |
            BooleanConfigItem

A config item that contains a boolean and can be parsed from many fancy representations.

Instance Methods

Inherited from ConfigItem: __init__, getAsString, set

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  typedesc = 'boolean'
  default = 'False'
  trueLiterals = set(['1', 'enabled', 'on', 't', 'true', 'yes'])
  falseLiterals = set(['0', 'disabled', 'f', 'false', 'no', 'off'])
Properties

Inherited from object: __class__