I'm using web2py on webfaction and as far as I can tell request.is_local is
not working. I have a page that uses the generic.html view which has the
following lines:
{{if request.is_local:}}
{{=response.toolbar()}}
{{pass}}
The web2py book says:
request.is_local: True if the client is localhost, False otherwise. Should
work behind a proxy if the proxy supports http_x_forwarded_for.
Yet it still shows the toolbar when viewing my hosted site. Using the
toolbar I can see that HTTP_X_FORWARDED_FOR is set to my personal computer
ip address. Any ideas why this doesn't work?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.