Update compileapp.py
The "current" may have been altered by the controller. This is the case for admin/controllers/shell.py, in callback(), where a new shell environment is created (from gluon/shell) If this happens, the incorrect "response" is being referenced and the output of the controller is lost.
This commit is contained in:
committed by
GitHub
parent
f14c384d83
commit
b6e5e16526
+1
-1
@@ -640,7 +640,7 @@ def run_controller_in(controller, function, environment):
|
||||
ccode = getcfs(layer, filename, lambda: compile2(code, layer))
|
||||
|
||||
restricted(ccode, environment, layer=filename)
|
||||
response = current.response
|
||||
response = environment["response"]
|
||||
vars = response._vars
|
||||
if response.postprocessing:
|
||||
vars = reduce(lambda vars, p: p(vars), response.postprocessing, vars)
|
||||
|
||||
Reference in New Issue
Block a user