Package gavo :: Package dm :: Module dmrd :: Class DataModelRolesAttribute
[frames] | no frames]

Class DataModelRolesAttribute

source code

                   object --+            
                            |            
    base.attrdef.AttributeDef --+        
                                |        
base.complexattrs.StructAttribute --+    
                                    |    
base.complexattrs.StructListAttribute --+
                                        |
                                       DataModelRolesAttribute

an attribute allowing data model annotation using SIL.

It will also give an annotations attribute on the instance, and a getAnnotationsOfType method letting you pull out a specific annotation.

For situation where an existing annotation should be copied from annotations coming in through columns and/or params, the attribute also gives an updateAnnotationFromChildren method. It will do nothing if some annotation already exists.

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
iterParentMethods(self)
returns an iterator over (name, method) pairs that should be inserted in the parent class.
source code

Inherited from base.complexattrs.StructListAttribute: addStruct, feedObject, getCopy, iterChildren, iterEvents, makeUserDoc, onParentComplete, remove, replace

Inherited from base.complexattrs.StructAttribute: create, feed

Inherited from base.attrdef.AttributeDef: doCallbacks

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

Properties

Inherited from base.complexattrs.StructListAttribute: default_, typeDesc_

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

iterParentMethods(self)

source code 

returns an iterator over (name, method) pairs that should be inserted in the parent class.

Overrides: base.attrdef.AttributeDef.iterParentMethods
(inherited documentation)