Package buildbot :: Package schedulers :: Module forcesched :: Class BooleanParameter
[frames] | no frames]

Class BooleanParameter

source code

   object --+    
            |    
BaseParameter --+
                |
               BooleanParameter

A boolean parameter

Instance Methods
 
getFromKwargs(self, kwargs)
Simple customization point for child classes that do not need the other parameters supplied to updateFromKwargs.
source code

Inherited from BaseParameter: __init__, parse_from_arg, parse_from_args, setParent, updateFromKwargs

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

Class Variables
  type = ['bool']

Inherited from BaseParameter: debug, default, hide, label, multiple, name, parentName, regex, required

Properties

Inherited from BaseParameter: fullName

Inherited from object: __class__

Method Details

getFromKwargs(self, kwargs)

source code 

Simple customization point for child classes that do not need the other parameters supplied to updateFromKwargs. Return the value for the property named 'self.name'.

The default implementation converts from a list of items, validates using the optional regex field and calls 'parse_from_args' for the final conversion.

Overrides: BaseParameter.getFromKwargs
(inherited documentation)