Cortex  10.0.0-a4
Public Member Functions | List of all members
IECore.SubstitutedDict Class Reference

Acts like a dictionary, but performs substitutions on any string or StringData values retrieved from it. More...

Public Member Functions

def __init__ (self, dict, substitutions, dictClasses=set([dict, IECore.CompoundObject, IECore, CompoundParameter, IECore, LayeredDict)
 
def __getitem__ (self, key)
 
def __contains__ (self, key)
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 
def keys (self)
 
def values
 
def items
 
def get
 
def substitutions (self)
 

Detailed Description

Acts like a dictionary, but performs substitutions on any string or StringData values retrieved from it.

Substitutions are specified as a dictionary where keys are tokens to be substituted and values are the corresponding substitutions. Substitution is performed using string.Template().


The documentation for this class was generated from the following file: