I think you are redefining request somewhere in your code. You cannot
do that.

Massimo

On Jan 8, 9:49 am, voltron <[email protected]> wrote:
> Hmm I am just running Web2py locally for a quick test, not behind A
> web server and I tried to print out request.client:
>
> Traceback (most recent call last):
>   File "E:\frameworks\python\web2py\_checkout\gluon\main.py", line
> 189, in wsgibase
>     serve_controller(request,response,session)
>   File "E:\frameworks\python\web2py\_checkout\gluon\main.py", line 74,
> in serve_controller
>     run_view_in(response._view_environment)
>   File "E:\frameworks\python\web2py\_checkout\gluon\compileapp.py",
> line 191, in run_view_in
>     folder=environment['request'].folder
> AttributeError: 'NoneType' object has no attribute 'folder'
>
> Any ideas on what I am doing wrong?
>
> On Jan 8, 4:44 pm, mdipierro <[email protected]> wrote:
>
> > request.env.remote_addr is filled by the web server, not web2py. If
> > you have a proxy (apache + modproxy for example) it returns the
> > address of the proxy with is the server itself.
>
> > web2py "tries" to figure out the actual client address in
> > request.client
>
> > Massimo
>
> > On Jan 8, 9:41 am, voltron <[email protected]> wrote:
>
> > > I think the value returned is wrong, it should return the IP address
> > > of the client accessing the running instance of web2py not the server
> > > address on which the instance is running. Could someone else check?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to