Package formless :: Module annotate :: Class Typed
[show private | hide private]
[frames | no frames]

Type Typed

object --+
         |
        Typed

Known Subclasses:
String

A typed value. Subclasses of Typed are constructed inside of
TypedInterface class definitions to describe the types of properties,
the parameter types to method calls, and method return types.

label: The short label which will describe this parameter/proerties
    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.

required: Whether the user is required to provide a value

null: The value which will be produced if required is False and
    the user does not provide a value

Method Summary
  __init__(self, label, description, default, required, requiredFailMessage, null, **attributes)
  coerce(self, val, configurable)
  getAttribute(self, name, default)
    Inherited from object
  __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)

Class Variable Summary
MetaInterface __implements__ = formless.iformless.ITyped
bool complexType = False
str requiredFailMessage = 'Please enter a value'
bool strip = False

Class Variable Details

complexType

Type:
bool
Value:
False                                                                  

requiredFailMessage

Type:
str
Value:
'Please enter a value'                                                 

strip

Type:
bool
Value:
False                                                                  

Generated by Epydoc 2.1 on Fri May 6 14:58:10 2005 http://epydoc.sf.net