Home | Trees | Index | Help |
|
---|
Package formless :: Module iformless :: Class ITyped |
|
object
--+ |Interface
--+ | ITyped
Method Summary | |
---|---|
Coerce the input 'val' from a string into a value suitable for the type described by the implementor. | |
Inherited from Interface | |
(Class method) | |
Inherited from object | |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
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 |
---|
defaultA default value that may be used as an initial value in the form. |
descriptionA long description which further describes the sort of input the user is expected to provide. |
labelThe short label which will describe this parameter/properties purpose to the user. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Mar 11 00:37:46 2005 | http://epydoc.sf.net |