'Called via __str__ when used in the Cheetah template'

def to_param_dict_string(self, value, other_values={}):

    if (value is None):
        value = ''
    elif (not isinstance(value, string_types)):
        value = str(value)
    if ((self.tool is None) or self.tool.options.sanitize):
        if self.sanitizer:
            value = self.sanitizer.sanitize_param(value)
        else:
            value = sanitize_param(value)
    return value
