'Custom substitutions for values.'

def _manageValue(self, value):

    if (not isinstance(value, (str, unicode))):
        return value
    vlower = value.lower()
    if (vlower in self._boolean_states):
        return self._boolean_states[vlower]
    elif (vlower == 'none'):
        return None
    return value
