Table of Contents

Class: TupleField qm/fields.py

A TupleField contains zero or more other Field objects.

The contained Field objects may have different types. The value of a TupleField is a Python list; the values in the list correspond to the values of the contained Field objects. For example, ["abc", 3] would be a valid value for a TupleField containing a TextField and an IntegerField.

Base Classes   
Field
    object
Methods   
FormatValueAsHtml
GetHelp
GetSubfields
GetValueFromDomNode
MakeDomNodeForValue
ParseFormValue
Validate
__init__
  FormatValueAsHtml 
FormatValueAsHtml (
        self,
        server,
        value,
        style,
        name=None,
        )

  GetHelp 
GetHelp ( self )

  GetSubfields 
GetSubfields ( self )

  GetValueFromDomNode 
GetValueFromDomNode (
        self,
        node,
        attachment_store,
        )

  MakeDomNodeForValue 
MakeDomNodeForValue (
        self,
        value,
        document,
        )

  ParseFormValue 
ParseFormValue (
        self,
        request,
        name,
        attachment_stores,
        )

  Validate 
Validate ( self,  value )

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

Construct a new TupleField.

name
The name of the field.
fields
A sequence of Field instances.

The new TupleField stores a list whose elements correspond to the fields.


Table of Contents

This document was automatically generated on Mon Jan 3 09:42:29 2005 by HappyDoc version 2.1