fixed problem with lazy tables and self references

This commit is contained in:
mdipierro
2012-11-29 23:54:29 -06:00
parent 792b313891
commit b6947c5f25
3 changed files with 19 additions and 11 deletions
+8 -8
View File
@@ -457,14 +457,14 @@ def wsgibase(environ, responder):
x_req_with = str(env.http_x_requested_with).lower()
request.update(
client=client,
folder=abspath('applications', app) + os.sep,
ajax=x_req_with == 'xmlhttprequest',
cid=env.http_web2py_component_element,
is_local=env.remote_addr in local_hosts,
is_https=env.wsgi_url_scheme in HTTPS_SCHEMES
or request.env.http_x_forwarded_proto in HTTPS_SCHEMES
or env.https == 'on')
client = client,
folder = abspath('applications', app) + os.sep,
ajax = x_req_with == 'xmlhttprequest',
cid = env.http_web2py_component_element,
is_local = env.remote_addr in local_hosts,
is_https = env.wsgi_url_scheme in HTTPS_SCHEMES or \
request.env.http_x_forwarded_proto in HTTPS_SCHEMES \
or env.https == 'on')
request.compute_uuid() # requires client
request.url = environ['PATH_INFO']