Package formless :: Module iformless :: Class ITyped
[show private | hide private]
[frames | no frames]

Type ITyped

object --+    
         |    
 Interface --+
             |
            ITyped


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.
Method Summary
  coerce(self, val, configurable)
Coerce the input 'val' from a string into a value suitable for the type described by the implementor.
    Inherited from Interface
  adaptWith(self, using, to, registry)
(Class method)
    Inherited from object
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Property Summary
  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.
  default: A default value that may be used as an initial value in the form.
  description: A long description which further describes the sort of input the user is expected to provide.
  label: The short label which will describe this parameter/properties purpose to the user.

Instance Method Details

coerce(self, val, configurable)

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.

Property Details

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.

default

A default value that may be used as an initial value in the form.

description

A long description which further describes the sort of input the user is expected to provide.

label

The short label which will describe this parameter/properties purpose to the user.

Generated by Epydoc 2.1 on Fri Mar 11 00:37:46 2005 http://epydoc.sf.net