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

Class CodebaseParameter

source code

   object --+        
            |        
BaseParameter --+    
                |    
  NestedParameter --+
                    |
                   CodebaseParameter

A parameter whose result is a codebase specification instead of a property

Instance Methods
 
__init__(self, codebase, name=None, label=None, branch=DefaultField, revision=DefaultField, repository=DefaultField, project=DefaultField, **kwargs)
A set of properties that will be used to generate a codebase dictionary.
source code
 
createSourcestamp(self, properties, kwargs) source code
 
updateFromKwargs(self, sourcestamps, kwargs, properties, **kw)
By default, the child values will be collapsed into a dictionary.
source code

Inherited from NestedParameter: collectChildProperties, setParent

Inherited from BaseParameter: getFromKwargs, parse_from_arg, parse_from_args

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

Class Variables
  type = ['nested', 'codebase']
  codebase = ''

Inherited from NestedParameter: fields

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

Properties

Inherited from BaseParameter: fullName

Inherited from object: __class__

Method Details

__init__(self, codebase, name=None, label=None, branch=DefaultField, revision=DefaultField, repository=DefaultField, project=DefaultField, **kwargs)
(Constructor)

source code 

A set of properties that will be used to generate a codebase dictionary.

The branch/revision/repository/project should each be a parameter that will map to the corresponding value in the sourcestamp. Use None to disable the field.

Parameters:
  • codebase (unicode) - name of the codebase; used as key for the sourcestamp set
  • name - optional override for the name-currying for the subfields
  • label - optional override for the label for this set of parameters
Overrides: object.__init__

updateFromKwargs(self, sourcestamps, kwargs, properties, **kw)

source code 

By default, the child values will be collapsed into a dictionary. If the parent is anonymous, this dictionary is the top-level properties.

Overrides: BaseParameter.updateFromKwargs
(inherited documentation)