Table of Contents

Class: TextField qm/fields.py

A field that contains text.

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

Exceptions   
ValueError, style
  FormatValueAsText 
FormatValueAsText (
        self,
        value,
        columns=72,
        )

  GetHelp 
GetHelp ( self )

  GetValueFromDomNode 
GetValueFromDomNode (
        self,
        node,
        attachment_store,
        )

Exceptions   
qm.QMException, qm.error( "dom wrong tag for field", name = self.GetName(), right_tag = "text", wrong_tag = node.tagName )
  MakeDomNodeForValue 
MakeDomNodeForValue (
        self,
        value,
        document,
        )

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

  ParseTextValue 
ParseTextValue ( self,  value )

  Validate 
Validate ( self,  value )

Exceptions   
ValueError, qm.error("empty text field value", field_title = self.GetTitle() )
ValueError, value
  __init__ 
__init__ (
        self,
        name,
        default_value="",
        multiline="false",
        structured="false",
        verbatim="false",
        not_empty_text="false",
        **properties,
        )

Construct a new TextField.

multiline
If false, a value for this field is a single line of text. If true, multi-line text is allowed.
structured
If true, the field contains structured text.
verbatim
If true, the contents of the field are treated as preformatted text.
not_empty_text
The value of this field is considered invalid if it empty or composed only of whitespace.
properties
A dictionary of other keyword arguments which are provided to the base class constructor.

Table of Contents

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