Table of Contents

Module: fields qm/fields.py

A Field determines how data is displayed and stored.

A Field is a component of a data structure. Every Field has a type. For example, an IntegerField stores a signed integer while a TextField stores a string.

The value of a Field can be represented as HTML (for display in the GUI), or as XML (when written to persistent storage). Every Field can create an HTML form that can be used by the user to update the value of the Field.

Every Extension class has a set of arguments composed of Field. An instance of that Extension class can be constructed by providing a value for each Field object. The GUI can display the Extension object by rendering each of the Field values as HTML. The user can change the value of a Field in the GUI, and then write the Extension object to persistent storage.

Additional derived classes of Field can be created for use in domain-specific situations. For example, the QMTest Test class defines a derived class which allows the user to select from among a set of test names.

Classes   

AttachmentField

A field containing a file attachment.

BooleanField

A field containing a boolean value.

ChoiceField

A ChoiceField allows choosing one of several values.

EnumerationField

A field that contains an enumeral value.

Field

A Field is a named, typed component of a data structure.

IntegerField

An IntegerField stores an int or long object.

PythonField

A PythonField stores a Python value.

SetField

A field containing zero or more instances of some other field.

TextField

A field that contains text.

TimeField

A field containing a date and time.

TupleField

A TupleField contains zero or more other Field objects.

UploadAttachmentPage

DTML context for generating upload-attachment.dtml.


Table of Contents

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