Package gavo :: Package base :: Module complexattrs :: Class ListOfAtomsAttribute
[frames] | no frames]

Class ListOfAtomsAttribute

source code

          object --+            
                   |            
attrdef.AttributeDef --+        
                       |        
 attrdef.AtomicAttribute --+    
                           |    
        CollOfAtomsAttribute --+
                               |
                              ListOfAtomsAttribute
Known Subclasses:

is an attribute definition for an item containing many elements of the same type.

It is constructed with an AttributeDef for the items. Note that it's safe to pass in lists as defaults since they are copied before being added to the instances, so you won't (and can't) have aliasing here.

Instance Methods
 
feed(self, ctx, instance, value) source code
 
feedObject(self, instance, value) source code
 
getCopy(self, instance, newParent, ctx) source code
 
unparse(self, value)
returns a typed python value for the string representation value.
source code

Inherited from CollOfAtomsAttribute: __init__, iterEvents

Inherited from attrdef.AtomicAttribute: makeUserDoc, parse

Inherited from attrdef.AttributeDef: doCallbacks, iterParentMethods

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties
  default_
  typeDesc_

Inherited from object: __class__

Method Details

feed(self, ctx, instance, value)

source code 
Overrides: attrdef.AttributeDef.feed

feedObject(self, instance, value)

source code 
Overrides: attrdef.AttributeDef.feedObject

getCopy(self, instance, newParent, ctx)

source code 
Overrides: attrdef.AttributeDef.getCopy

unparse(self, value)

source code 

returns a typed python value for the string representation value.

value can be expected to be a unicode string.

Overrides: attrdef.AtomicAttribute.unparse
(inherited documentation)

Property Details

default_

Get Method:
unreachable.default_(self)

typeDesc_

Get Method:
unreachable.typeDesc_(self)