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

Class StructListAttribute

source code

          object --+        
                   |        
attrdef.AttributeDef --+    
                       |    
         StructAttribute --+
                           |
                          StructListAttribute
Known Subclasses:

describes an attribute containing a homogeneous list of structures.
Instance Methods
 
__init__(self, name, childFactory, description='Undocumented', **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
addStruct(self, instance, value, destIndex=None)
adds a structure to the attribute's value.
source code
 
feedObject(self, instance, value) source code
 
getCopy(self, instance, newParent, ctx) source code
 
iterChildren(self, instance) source code
 
iterEvents(self, instance) source code
 
makeUserDoc(self) source code
 
onParentComplete(self, val) source code
 
remove(self, child) source code
 
replace(self, instance, oldStruct, newStruct) source code

Inherited from StructAttribute: create, feed

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

__init__(self, name, childFactory, description='Undocumented', **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

addStruct(self, instance, value, destIndex=None)

source code 

adds a structure to the attribute's value.

Do not directly add to the list, always go through this method; derived classes override it for special behaviour. Also, this is where callbacks are called.

Use destIndex to overwrite an (existing!) struct; default is appending.

feedObject(self, instance, value)

source code 
Overrides: attrdef.AttributeDef.feedObject

getCopy(self, instance, newParent, ctx)

source code 
Overrides: attrdef.AttributeDef.getCopy

iterChildren(self, instance)

source code 
Overrides: StructAttribute.iterChildren

iterEvents(self, instance)

source code 
Overrides: StructAttribute.iterEvents

makeUserDoc(self)

source code 
Overrides: attrdef.AttributeDef.makeUserDoc

onParentComplete(self, val)

source code 
Overrides: StructAttribute.onParentComplete

remove(self, child)

source code 
Overrides: StructAttribute.remove

replace(self, instance, oldStruct, newStruct)

source code 
Overrides: StructAttribute.replace

Property Details

default_

Get Method:
unreachable.default_(self)

typeDesc_

Get Method:
unreachable.typeDesc_(self)