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

Class InheritBuildParameter

source code

       object --+        
                |        
    BaseParameter --+    
                    |    
ChoiceStringParameter --+
                        |
                       InheritBuildParameter

A parameter that takes its values from another build

Instance Methods
 
getFromKwargs(self, kwargs)
Simple customization point for child classes that do not need the other parameters supplied to updateFromKwargs.
source code
 
updateFromKwargs(self, master, properties, changes, kwargs, **unused)
Primary entry point to turn 'kwargs' into 'properties'
source code

Inherited from ChoiceStringParameter: parse_from_arg

Inherited from BaseParameter: __init__, parse_from_args, setParent

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

Class Variables
  type = ['list', 'inherit']
  name = 'inherit'
  compatible_builds = None
hash(x)

Inherited from ChoiceStringParameter: choices, strict

Inherited from BaseParameter: debug, default, hide, label, multiple, 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)

updateFromKwargs(self, master, properties, changes, kwargs, **unused)

source code 

Primary entry point to turn 'kwargs' into 'properties'

Overrides: BaseParameter.updateFromKwargs
(inherited documentation)