API Reference for Enthought Tool Suite 3.2.0
Defines the BaseTraitHandler class and a standard set of BaseTraitHandler subclasses for use with the Traits package.
A trait handler mediates the assignment of values to object traits. It verifies (via its validate() method) that a specified value is consistent with the object trait, and generates a TraitError exception if it is not consistent.
Mapping from 'adapt' parameter values to 'fast validate' values
AdaptMap = { Const('no') : UnarySub(Const(1)), Const('yes') : Const(0), Const('default') : Const(1) }
CallableTypes = (FunctionType, MethodType, CTraitMethod)
logger = logging.getLogger(__name__)
Trait 'comparison_mode' enum values:
NO_COMPARE = 0
OBJECT_IDENTITY_COMPARE = 1
RangeTypes = (int, long, float)
RICH_COMPARE = 2
trait_from = None
Mapping from trait metadata 'type' to CTrait 'type':
trait_types = { Const('python') : Const(1), Const('event') : Const(2) }
NoDefaultSpecified = NoDefaultSpecified()
| Local name | Refers to |
|---|---|
| adapt | enthought.traits.protocols.api.adapt |
| class_of | enthought.traits.trait_base.class_of |
| ClassTypes | enthought.traits.trait_base.ClassTypes |
| CoercableTypes | enthought.traits.trait_base.CoercableTypes |
| copy | copy |
| CTraitMethod | ctraits.CTraitMethod |
| ctraits | ctraits |
| FunctionType | types.FunctionType |
| InstanceType | types.InstanceType |
| logging | logging |
| MethodType | types.MethodType |
| Missing | enthought.traits.trait_base.Missing |
| re | re |
| ref | weakref.ref |
| repr_type | enthought.traits.trait_errors.repr_type |
| SequenceTypes | enthought.traits.trait_base.SequenceTypes |
| strx | enthought.traits.trait_base.strx |
| sys | sys |
| TraitError | enthought.traits.trait_errors.TraitError |
| TraitsCache | enthought.traits.trait_base.TraitsCache |
| TypeType | types.TypeType |
| TypeTypes | enthought.traits.trait_base.TypeTypes |
| Undefined | enthought.traits.trait_base.Undefined |
© Copyright 2002-2009 Enthought, Inc.