class DictWrapper(dict):
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 |