def to_path_value(self, obj):
if type(obj) == list:<EOL><INDENT>return '<STR_LIT:U+002C>'.join(obj)<EOL><DEDENT>else:<EOL><INDENT>return str(obj)<EOL><DEDENT>
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.