Package gavo :: Package rscdef :: Module mixins :: Class MixinAttribute
[frames] | no frames]

Class MixinAttribute

source code

                    object --+                
                             |                
     base.attrdef.AttributeDef --+            
                                 |            
      base.attrdef.AtomicAttribute --+        
                                     |        
base.complexattrs.CollOfAtomsAttribute --+    
                                         |    
     base.complexattrs.SetOfAtomsAttribute --+
                                             |
                                            MixinAttribute

An attribute defining a mixin.

This currently is only offered on tables, though in principle we could have it anywhere now, but we'd want some compatibility checking then.

This is never copyable since this would meaning playing the same stuff into an object twice.

This means trouble for magic scripts (in particular processLate); e.g., if you copy a table mixing in products, the data element for that table will not receive the product table. Goes to show the whole product mess is ugly and needs a good idea.

Instance Methods
 
__init__(self, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
feed(self, ctx, instance, mixinRef, fillers={})
feeds the immediate elements and schedules the rest of actions to be taken in time.
source code
 
iterParentMethods(self)
returns an iterator over (name, method) pairs that should be inserted in the parent class.
source code
 
makeUserDoc(self) source code
 
create(self, parent, ctx, name) source code

Inherited from base.complexattrs.SetOfAtomsAttribute: feedObject, getCopy

Inherited from base.complexattrs.CollOfAtomsAttribute: iterEvents

Inherited from base.attrdef.AtomicAttribute: parse, unparse

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.SetOfAtomsAttribute: default_, typeDesc_

Inherited from object: __class__

Method Details

__init__(self, **kwargs)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

feed(self, ctx, instance, mixinRef, fillers={})

source code 
feeds the immediate elements and schedules the rest of actions to be taken in time.
Overrides: base.attrdef.AttributeDef.feed

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)

makeUserDoc(self)

source code 
Overrides: base.attrdef.AttributeDef.makeUserDoc