class documentation

class DictWrapper(dict):

View In Hierarchy

Wrap accesses to a dictionary so that certain values (those starting with the specified prefix) are passed through a function before being returned. The prefix is removed before looking up the real value.

Used by the SQL construction code to ensure that values are correctly quoted before being used.

Method __getitem__ Retrieve the real value after stripping the prefix string (if present). If the prefix is present, pass the value through self.func before returning, otherwise return the raw value.
Method __init__ Undocumented
Instance Variable func Undocumented
Instance Variable prefix Undocumented
def __getitem__(self, key):
Retrieve the real value after stripping the prefix string (if present). If the prefix is present, pass the value through self.func before returning, otherwise return the raw value.
def __init__(self, data, func, prefix):

Undocumented

func =

Undocumented

prefix =

Undocumented