The ooi.utils Module

ooi.utils.get_query_string(parameters)

Creates query string.

Parameters:parameters – list of parameters
ooi.utils.join_url(base, parts)

Join several parts into a url.

Parameters:base – the base url
Parts:parts to join into the url
ooi.utils.make_body(resource, parameters)

Creates body request using the parameters.

Parameters:
  • resource – kind of resource
  • parameters – list of parameters
ooi.utils.translate_parameters(translation, parameters)

Translates parameter names to OS

Parameters:
  • translation – list of names for translation
  • parameters – list of parameters
ooi.utils.utf8(value)

Try to turn a string into utf-8 if possible.

Code is modified from the utf8 function in http://github.com/facebook/tornado/blob/master/tornado/escape.py