mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 07:28:39 +00:00
[WebUI] Replace func_globals with __globals__ for Py3 compat
This commit is contained in:
parent
08b61eb50b
commit
fbcddff6ea
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue