[Kimchi-devel] [PATCHv8 1/8] Support params for GET method
Crístian Viana
vianac at linux.vnet.ibm.com
Tue Jan 21 12:23:55 UTC 2014
Am 19-01-2014 13:28, schrieb lvroyce0210 at gmail.com:
> diff --git a/src/kimchi/control/utils.py b/src/kimchi/control/utils.py
> index 814ba20..28733e2 100644
> --- a/src/kimchi/control/utils.py
> +++ b/src/kimchi/control/utils.py
> @@ -81,6 +81,8 @@ def parse_request():
> raise cherrypy.HTTPError(415, "This API only supports"
> " 'application/json'")
>
> +def get_query_params():
> + return cherrypy.request.params
>
> def internal_redirect(url):
> raise cherrypy.InternalRedirect(url.encode("utf-8"))
Please use two blank lines between two top-level functions in order to
be consistent with our code guidelines.
More information about the Kimchi-devel
mailing list