1
###############################################################################
3
# Copyright (C) 2007-TODAY Tiny ERP Pvt Ltd. All Rights Reserved.
7
# Developed by Tiny (http://openerp.com) and Axelor (http://axelor.com).
9
# The OpenERP web client is distributed under the "OpenERP Public License".
10
# It's based on Mozilla Public License Version (MPL) 1.1 with following
13
# - All names, links and logos of Tiny, Open ERP and Axelor must be
14
# kept as in original distribution without any changes in all software
15
# screens, especially in start-up page and the software header, even if
16
# the application source code has been changed or updated or code has been
19
# - All distributions of the software must keep source code with OEPL.
21
# - All integrations to any other software must keep source code with OEPL.
23
# If you need commercial licence to remove this kind of restriction please
26
# You can see the MPL licence at: http://www.mozilla.org/MPL/MPL-1.1.html
28
###############################################################################
31
from formencode import NestedVariables
34
def nestedvars_tool():
35
if hasattr(cherrypy.request, 'params'):
36
cherrypy.request.params = NestedVariables.to_python(cherrypy.request.params or {})
38
cherrypy.tools.nestedvars = cherrypy.Tool("before_handler", nestedvars_tool)
39
cherrypy.lowercase_api = True