[web2py] one solution to web2py+eclipse and "undefined variable" warnings

162 views
Skip to first unread message

Jonas Rundberg

unread,
Apr 22, 2010, 6:02:50 PM4/22/10
to web2py-users
Hi,

To get rid of the "undefined variable" warnings in eclipse you can
define names as globals in the preferences.
(Eg to remove the warnings for request, response, db, T, auth, etc...)

Preferences -> PyDev -> Editor -> Code Analysis
Under the "undefined" tab, you find "Consider the following names
global: (comma separated)"

There you can add service,auth,T,response,session,request,db or
whatever.
Doing this seems easier then writing "global request", ... at the top
of all of your controller files.

cheers
/ jonas rundberg





--
Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en
Reply all
Reply to author
Forward
0 new messages