[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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user