# Module e.c.media_uri

Part of elisa.core

URI parsing support

Line # | Kind | Name | Docs
--- | --- | --- | ---
33 | Class | ParseException | Undocumented
41 | Function | quote | Make strings, lists and dictionaries containing strings quoted using
84 | Function | unquote | Unquote strings, lists and dictionaries containing strings quoted values
138 | Class | MediaUri | Media URI management

def quote(data, not_quote=''):

Make strings, lists and dictionaries containing strings quoted using urllib.quote. Return value has the same type as the parameter given to this function. If the data is not a string, list or a dictionary, it is simply returned.

Warning: If you want to quote a path containing '/' as seperators, you have to add the slash to not_quote, or it will be quoted also!!!

Parameters | data | unquoted data which can contain unsafe characters like &= (type: string, list or dict )
| not_quote | characters, which shouldn't be quoted. (type: string )
Returns | (type: string, list or dict )

def unquote(data):
Unquote strings, lists and dictionaries containing strings quoted values using urllib.unquote. Return value has the same type as the parameter given to this function. If the data is not a string, list or a dictionary, it is simply returned.

Parameters | data | quoted data (type: string, list or dict )
Returns | (type: string, list or dict of unicodes )