Eclipse / PyDev errors and "Proxy objects"
- From:
- Armel Bourgon-Drouot
- Date:
- 2011-07-30 @ 13:08
Hi,
Some backgrounds informations :
I am currently doing some experimentations with Google App Engine and Flask,
I follow this post to set up my project :
http://www.franciscosouza.com/2010/08/flying-with-flask-on-google-app-engine/
My src folder contains flask, jinja2, simplejson packages, GAE stuffs, and
my code. I can start my application with the GoogleAppEngineLauncher and it
works.
My problem is that however the project runs properly
with GoogleAppEngineLauncher, Eclipse / PyDev complains about errors with
"Proxy objects". For example :
1. from flask import request
2. request_method = request.method
Eclipse / PyDev marks an error on line 2 :
Undefined variable from import: method
I understand why this error is shown, request is define in globals.py like
this :
1. from werkzeug import LocalProxy
2. request = LocalProxy(partial(_lookup_object, 'request'))
There is nothing that tell to PyDev that request have a method attribute.
I am aware this issue is not caused by flask but I will be very happy to
hear about a trick to avoid this kind of errors.
Regards
--
Armel
Re: [flask] Eclipse / PyDev errors and "Proxy objects"
- From:
- Armin Ronacher
- Date:
- 2011-07-30 @ 13:20
Hi,
On 2011-07-30 3:08 PM, Armel Bourgon-Drouot wrote:
> There is nothing that tell to PyDev that request have a method attribute.
>
> I am aware this issue is not caused by flask but I will be very happy to
> hear about a trick to avoid this kind of errors.
Sounds like you should file an bug with PyDev.
Regards,
Armin
Re: [flask] Eclipse / PyDev errors and "Proxy objects"
- From:
- Thadeus Burgess
- Date:
- 2011-08-01 @ 16:23
In window->preferences->pydev->editor->code analysis,undefined tab, turn off
the errors for variables from import.
--
Thadeus
On Sat, Jul 30, 2011 at 8:20 AM, Armin Ronacher <armin.ronacher@active-4.com
> wrote:
> Hi,
>
> On 2011-07-30 3:08 PM, Armel Bourgon-Drouot wrote:
> > There is nothing that tell to PyDev that request have a method attribute.
> >
> > I am aware this issue is not caused by flask but I will be very happy to
> > hear about a trick to avoid this kind of errors.
> Sounds like you should file an bug with PyDev.
>
>
> Regards,
> Armin
>