Package gavo :: Package rscdef :: Module tabledef :: Class ColumnTupleAttribute
[frames] | no frames]

Class ColumnTupleAttribute

source code

               object --+                
                        |                
base.attrdef.AttributeDef --+            
                            |            
 base.attrdef.AtomicAttribute --+        
                                |        
    base.attrdef.UnicodeAttribute --+    
                                    |    
     base.attrdef.StringListAttribute --+
                                        |
                                       ColumnTupleAttribute

is a tuple of column names.

In a validate method, it checks that the names actually are in parent's fields.

Instance Methods
 
iterParentMethods(self)
adds a getPrimaryIn method to the parent class.
source code
 
validate(self, parent) source code

Inherited from base.attrdef.StringListAttribute: __init__, parse, unparse

Inherited from base.attrdef.UnicodeAttribute: feed

Inherited from base.attrdef.AtomicAttribute: feedObject, getCopy, makeUserDoc

Inherited from base.attrdef.AttributeDef: doCallbacks

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

Class Variables

Inherited from base.attrdef.StringListAttribute: realDefault, typeDesc_

Properties

Inherited from base.attrdef.StringListAttribute: default_

Inherited from object: __class__

Method Details

iterParentMethods(self)

source code 

adds a getPrimaryIn method to the parent class.

This function will return the value of the primary key in a row passed. The whole thing is a bit dense in that I want to compile that method to avoid having to loop every time it is called. This compilation is done in a descriptor -- ah well, probably it's a waste of time anyway.

Overrides: base.attrdef.AttributeDef.iterParentMethods