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

Class UserNameParameter

source code

   object --+        
            |        
BaseParameter --+    
                |    
  StringParameter --+
                    |
                   UserNameParameter

A username parameter to supply the 'owner' of a build

Instance Methods
 
__init__(self, name='username', label='Your name:', **kw)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parse_from_arg(self, s) source code

Inherited from BaseParameter: getFromKwargs, parse_from_args, setParent, updateFromKwargs

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

Class Variables
  type = ["text"]
  default = ''
  size = 30
  need_email = True

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

Properties

Inherited from BaseParameter: fullName

Inherited from object: __class__

Method Details

__init__(self, name='username', label='Your name:', **kw)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • name - the name of the field, used during posting values back to the scheduler. This is not necessarily a UI value, and there may be restrictions on the characters allowed for this value. For example, HTML would require this field to avoid spaces and other punctuation ('-', '.', and '_' allowed)
  • label - (optional) the name of the field, used for UI display.
  • regex - (optional) regex to validate the value with. Not used by all subclasses
Overrides: object.__init__
(inherited documentation)

parse_from_arg(self, s)

source code 
Overrides: BaseParameter.parse_from_arg