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

Class OutcomeField

source code

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

An 'OutcomeField' contains an outcome.

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

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__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from fields.Field: form_field_prefix

Properties [hide private]

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: object.__init__
(inherited documentation)