qm :: test :: test :: Test :: Class Test :: Class OutcomeField
[hide private]
[frames] | no frames]

Class OutcomeField
source code

  object --+                
           |                
       Field --+            
               |            
       TextField --+        
                   |        
         ChoiceField --+    
                       |    
 fields.EnumerationField --+
                           |
                          OutcomeField

An 'OutcomeField' contains an outcome.

Instance Methods [hide private]
  __init__(self, name, **properties)
Create an enumeration field.

Inherited from fields.EnumerationField: GetHelp, GetItems, GetValueFromDomNode, MakeDomNodeForValue

Inherited from fields.ChoiceField: FormatValueAsHtml, Validate

Inherited from fields.TextField: FormatValueAsText, ParseFormValue, ParseTextValue

Inherited from fields.Field: GetBriefDescription, GetDefaultValue, GetDescription, GetHtmlFormFieldName, GetHtmlHelp, GetName, GetSubfields, GetTitle, IsComputed, IsHidden, IsReadOnly, SetName, __repr__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__


Class Variables [hide private]

Inherited from fields.Field: form_field_prefix

Inherited from object: __class__


Method Details [hide private]

__init__(self, name, **properties)
(Constructor)

source code 

Create an enumeration field.

'enumerals' -- A sequence of strings of available enumerals.

'default_value' -- The default value for this enumeration. If 'None', the first enumeral is used.
Overrides: fields.EnumerationField.__init__
(inherited documentation)