[WebUI] Replace func_globals with __globals__ for Py3 compat
This commit is contained in:
parent
08b61eb50b
commit
fbcddff6ea
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue