Package gavo :: Package rscdef :: Module rmkdef :: Class MappedExpression
[frames] | no frames]

Class MappedExpression

source code

                   object --+            
                            |            
 base.structure.StructureBase --+        
                                |        
                   object --+   |        
                            |   |        
           base.common.Parser --+        
                                |        
base.structure.ParseableStructure --+    
                                    |    
             base.structure.Structure --+
                                        |
                                       MappedExpression
Known Subclasses:

a base class for map and var.

You must give a destDict class attribute to make these work.

Nested Classes

Inherited from base.structure.StructureBase: __metaclass__, name_

Instance Methods
 
completeElement(self, ctx) source code
 
validate(self)
checks that code content is a parseable python expression and that the destination exists in the tableDef
source code
 
getCode(self, columns)
returns python source code for this map.
source code

Inherited from base.structure.Structure: __provides__, callCompletedCallbacks, finishElement, onElementComplete

Inherited from base.structure.ParseableStructure: __init__, end_, feed, feedFrom, feedObject, getAttribute, iterEvents, start_, value_

Inherited from base.structure.StructureBase: __providedBy__, adopt, breakCircles, change, copy, getAttributes, getCopyableAttributes, getSourcePosition, iterChildren, setPosition

Inherited from base.common.Parser: feedEvent

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

Class Methods

Inherited from base.structure.StructureBase: fromStructure

Class Variables
  destDict = None
hash(x)
  restrictedMode = False
  attrSeq = [<gavo.base.attrdef.UnicodeAttribute object>, <gavo....
  managedAttrs = {'content_': <gavo.base.structure.DataContent o...

Inherited from base.structure.Structure: __implemented__

Inherited from base.structure.StructureBase: completedCallbacks

Properties

Inherited from object: __class__

Method Details

completeElement(self, ctx)

source code 
Overrides: base.structure.Structure.completeElement

validate(self)

source code 
checks that code content is a parseable python expression and that the destination exists in the tableDef
Overrides: base.structure.Structure.validate

Class Variable Details

attrSeq

Value:
[<gavo.base.attrdef.UnicodeAttribute object>,
 <gavo.base.structure.DataContent object>,
 <gavo.base.parsecontext.IdAttribute object>,
 <gavo.base.attrdef.UnicodeAttribute object>,
 <gavo.base.attrdef.UnicodeAttribute object>,
 <gavo.base.attrdef.UnicodeAttribute object>]

managedAttrs

Value:
{'content_': <gavo.base.structure.DataContent object>,
 'dest': <gavo.base.attrdef.UnicodeAttribute object>,
 'id': <gavo.base.parsecontext.IdAttribute object>,
 'key': <gavo.base.attrdef.UnicodeAttribute object>,
 'name': <gavo.base.attrdef.UnicodeAttribute object>,
 'nullExcs': <gavo.base.attrdef.UnicodeAttribute object>,
 'nullExpr': <gavo.base.attrdef.UnicodeAttribute object>,
 'source': <gavo.base.attrdef.UnicodeAttribute object>,
...