fixws and 'new' button in grid query

This commit is contained in:
Massimo Di Pierro
2011-12-05 11:39:42 -06:00
parent 01f6f82cdf
commit d281acb421
305 changed files with 8352 additions and 8032 deletions
+4 -3
View File
@@ -127,7 +127,7 @@ def LOAD(c=None, f='index', args=None, vars=None,
else:
if not isinstance(args,(list,tuple)):
args = [args]
c = c or request.controller
c = c or request.controller
other_request = Storage()
for key, value in request.items():
other_request[key] = value
@@ -160,9 +160,9 @@ def LOAD(c=None, f='index', args=None, vars=None,
copy.copy(current.response.generic_patterns)
other_environment['request'] = other_request
other_environment['response'] = other_response
## some magic here because current are thread-locals
original_request, current.request = current.request, other_request
original_response, current.response = current.response, other_response
page = run_controller_in(c, f, other_environment)
@@ -656,3 +656,4 @@ if __name__ == '__main__':