Package Peach :: Module fixup :: Class Fixup
[hide private]

Class Fixup

source code

Fixup of values in the data model. This is done using by keeping an internal list of references that can be resolved during fixup(). Helper functions are provided in this base class for resolving elements in the data model.

Instance Methods [hide private]
 
__init__(self)
Create fixup object
source code
 
dofixup(self)
Wrapper around fixup() to prevent endless recurtion.
source code
 
fixup(self)
Perform the required fixup.
source code
 
_findDataElementByName(self, name)
DEPRICATED!
source code
 
_getContextRoot(self)
DEPRICATED!
source code
Method Details [hide private]

dofixup(self)

source code 

Wrapper around fixup() to prevent endless recurtion. Please do not override me :)

fixup(self)

source code 

Perform the required fixup. OVERRIDE ME!

_findDataElementByName(self, name)

source code 

DEPRICATED!

Use self.context.findDataElementByName(name) instead!

Internal helper method that will locate a data element in the data model by it's name. We will search starting at our current data element's node level and look down then up for the requested node.

To be more specific about a node you can use the dotted name "Element1.ELement2".

_getContextRoot(self)

source code 

DEPRICATED!

Use self.context.getRootOfDataMap() instead!

Inernal helper method that returns the root of the current data model.