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

Type Typed

object --+        
         |        
   Element --+    
             |    
     Attribute --+
                 |
                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.
Method Summary
  __init__(self, label, description, default, required, requiredFailMessage, null, unicode, **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)

Instance Variable Summary
str default: A default value that may be used as an initial value in the form.
NoneType description: A long description which further describes the sort of input the user is expected to provide.
NoneType label: The short label which will describe this parameter/proerties purpose to the user.
NoneType null: The value which will be produced if required is False and the user does not provide a value
bool required: Whether the user is required to provide a value
bool unicode: Iff true, try to determine the character encoding of the data from the browser and pass unicode strings to coerce.

Class Variable Summary
Implements __implemented__ = <implementedBy formless.annotate.Typed...
_implementsTuple __implements__ = (<MetaInterface formless.iformless.ITyp...
str __name__ = 'Typed'
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
bool complexType = False
str requiredFailMessage = 'Please enter a value'
bool strip = False

Instance Variable Details

default

A default value that may be used as an initial value in the form.
Type:
str
Value:
''                                                                     

description

A long description which further describes the sort of input the user is expected to provide.
Type:
NoneType
Value:
None                                                                  

label

The short label which will describe this parameter/proerties purpose to the user.
Type:
NoneType
Value:
None                                                                  

null

The value which will be produced if required is False and the user does not provide a value
Type:
NoneType
Value:
None                                                                  

required

Whether the user is required to provide a value
Type:
bool
Value:
False                                                                  

unicode

Iff true, try to determine the character encoding of the data from the browser and pass unicode strings to coerce.
Type:
bool
Value:
False                                                                  

Class Variable Details

__implemented__

Type:
Implements
Value:
<implementedBy formless.annotate.Typed>                                

__implements__

Type:
_implementsTuple
Value:
(<MetaInterface formless.iformless.ITyped>, <InterfaceClass zope.inter\
face.interfaces.IAttribute>)                                           

__name__

Type:
str
Value:
'Typed'                                                                

__provides__

Type:
ClassProvides
Value:
<zope.interface.declarations.ClassProvides object at 0x4086df2c>       

complexType

Type:
bool
Value:
False                                                                  

requiredFailMessage

Type:
str
Value:
'Please enter a value'                                                 

strip

Type:
bool
Value:
False                                                                  

Generated by Epydoc 2.1 on Wed May 3 13:51:13 2006 http://epydoc.sf.net