[FIX] cherrypy provides kwargs as a string when only one instance, werkzeug returns a list by default. Change args-storage class for werkzeug to atoms, not lists

bzr revid: xmo@openerp.com-20110902100124-osxe8aq3va3dfv6m
This commit is contained in:
Xavier Morel 2011-09-02 12:01:24 +02:00
parent ca3c124f78
commit d58941454b
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ import uuid
import xmlrpclib
import simplejson
import werkzeug.datastructures
import werkzeug.exceptions
import werkzeug.utils
import werkzeug.wrappers
@ -230,6 +231,7 @@ class Root(object):
def dispatch(self, environ, start_response):
request = werkzeug.wrappers.Request(environ)
request.parameter_storage_class = werkzeug.datastructures.ImmutableDict
if request.path == '/':
return werkzeug.utils.redirect(