Class f.i.ITyped(Interface):

Part of formless.iformless View Source View In Hierarchy

Typeds correspond roughly to <input> tags in HTML, or with a complex type, more than one <input> tag whose input is processed and coerced as a unit.
Line # Kind Name Docs
13 Method coerce Coerce the input 'val' from a string into a value suitable
23 Attribute label The short label which will describe this
26 Attribute description A long description which further describes the sort
29 Attribute default A default value that may be used as an initial value in
32 Attribute complexType Whether or not this Typed
def coerce(val, configurable): (source)

Coerce the input 'val' from a string into a value suitable for the type described by the implementor. If coercion fails, coerce should raise InputError with a suitable error message to be shown to the user. 'configurable' is the configurable object in whose context the coercion is taking place.

May return a Deferred.
label =
The short label which will describe this parameter/properties purpose to the user.
description =
A long description which further describes the sort of input the user is expected to provide.
default =
A default value that may be used as an initial value in the form.
complexType =

Whether or not this Typed is a "simple" type and the infrastructure should render label, description, and error UI automatically, or this type is "complex" in which case it will be required to render all UI including UI which is normally common to all Typed UI.

This MAY BE DEPRECATED if a better implementation is devised.
API Documentation for Nevow, generated by pydoctor.