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
118 Function _unicode Convert data to unicode using system encoding instead of ascii.
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!!!

Parametersdataunquoted data which can contain unsafe characters like &= (type: string, list or dict )
not_quotecharacters, 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.
Parametersdataquoted data (type: string, list or dict )
Returns (type: string, list or dict of unicodes )
def _unicode(data):
Convert data to unicode using system encoding instead of ascii.
Parametersdatadata to convert (type: string, unicode or other object )
Returns (type: unicode )
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.