Package SmootLight :: Package util :: Module Config
[hide private]
[frames] | no frames]

Module Config

source code

Functions [hide private]
 
loadParamRequirementDict(className) source code
 
loadConfigFile(fileName)
Loads a config file.
source code
 
getElement(el)
Takes an Element or an ElementTree.
source code
 
compositeXMLTrees(parentTree, overridingTree)
XML tree composition.
source code
 
findElementsByTag(tag, eList) source code
 
fileToDict(fileName) source code
 
pullArgsFromItem(parentNode)
Parses arguments into python objects if possible, otherwise leaves as strings
source code
 
attemptEval(val)
Runs an eval if possible, or converts into a lambda expression if indicated.
source code
 
generateArgDict(parentNode, recurse=False) source code
 
resolveDocumentInheritances(el)
In place resolution of document inheritances.
source code
 
resolveInheritance(el)
In place resolution of inheritence.
source code
Variables [hide private]
  classArgsMem = {}
  CONFIG_PATH = 'config/'
  DEFAULT_OVERRIDE_MODE = 'Merge'
  __package__ = 'SmootLight.util'
Function Details [hide private]

loadConfigFile(fileName)

source code 

Loads a config file. If its an xml file, inheritances are automatically resolved.

getElement(el)

source code 

Takes an Element or an ElementTree. If it is a tree, it returns its root. Otherwise, just returns it

compositeXMLTrees(parentTree, overridingTree)

source code 

XML tree composition. Returns the resulting tree, but happens in-place in the overriding tree.

attemptEval(val)

source code 

Runs an eval if possible, or converts into a lambda expression if indicated. Otherwise, leaves as a string.

resolveDocumentInheritances(el)

source code 

In place resolution of document inheritances. Doesn't return anything.

resolveInheritance(el)

source code 

In place resolution of inheritence. Doesn't return anything.