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

Type String

object --+            
         |            
   Element --+        
             |        
     Attribute --+    
                 |    
             Typed --+
                     |
                    String

Known Subclasses:
LDAPDN

A string that is expected to be reasonably short and contain no newlines or tabs.

strip: remove leading and trailing whitespace.
Method Summary
  __init__(self, *args, **kwargs)
  coerce(self, val, configurable)
    Inherited from Typed
  getAttribute(self, name, default)
    Inherited from Element
  getDoc(self)
Returns the documentation for the object.
  getName(self)
Returns the name of the object.
  getTaggedValue(self, tag)
Returns the value associated with 'tag'.
  getTaggedValueTags(self)
Returns a list of all tags.
  queryTaggedValue(self, tag, default)
Returns the value associated with 'tag'.
  setTaggedValue(self, tag, value)
Associates 'value' with 'key'.
    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
    Inherited from Typed
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.Strin...
_implementsTuple __implements__ = (<MetaInterface formless.iformless.ITyp...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
str requiredFailMessage = 'Please enter a string.'
bool strip = False
    Inherited from Typed
str __name__ = 'Typed'
bool complexType = False
    Inherited from Attribute
NoneType interface = None                                                                  
    Inherited from Element
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...

Class Variable Details

__implemented__

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

__implements__

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

__provides__

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

requiredFailMessage

Type:
str
Value:
'Please enter a string.'                                               

strip

Type:
bool
Value:
False                                                                  

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