code: def to_path_value(self, obj):
          
          if type(obj) == list:
              return ','.join(obj)
          else:
              return str(obj)
docs: Takes value and turn it into a string suitable for inclusion in
          the path, by url-encoding.
  
          :param obj: object or string value.
  
          :return string: quoted value.