[WebUI] Replace func_globals with __globals__ for Py3 compat

This commit is contained in:
Calum Lind 2014-09-19 13:02:23 +01:00
parent 08b61eb50b
commit fbcddff6ea
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ class JSON(resource.Resource, component.Component):
# This will eventually process methods that the server adds # This will eventually process methods that the server adds
# and any plugins. # and any plugins.
meth = self._local_methods[method] meth = self._local_methods[method]
meth.func_globals['__request__'] = request meth.__globals__['__request__'] = request
component.get("Auth").check_request(request, meth) component.get("Auth").check_request(request, meth)
return meth(*params) return meth(*params)
raise JSONException("Unknown system method") raise JSONException("Unknown system method")