This is going to be easier in the future. Using trunk, just add this to models:
from gluon import * request,session,response,T,cache=current.request,current,session,curremt.response,current.t,current.cache On May 10, 7:12 am, weheh <richard_gor...@verizon.net> wrote: > I'm having trouble getting Eclipse to ignore undefined variable errors > for things imported from gluon, like A, auth, etc. There are numerous > threads on the subject, none of which I'm able to get to work, > including:http://pierreth.blogspot.com/2010/10/web2py-eclipse-pydev-recipe.htmlhttp://groups.google.com/group/web2py/browse_thread/thread/feb055577d... > > The method I like the best is to add this string to Window > > Preferences > Pydev > Code Analysis > Undefined under the "Consider > the following names as globals (comma separated)": > > A,AUTH_ID,B,BEAUTIFY,BODY,BR,CENTER,CLEANUP,CODE,CRYPT,DIV,FORM,I,IFRAME,IM > G,INPUT,IS_ALPHANUMERIC,IS_DATE,IS_DATETIME,IS_DATETIME_IN_RANGE,IS_DATE_IN > _RANGE,IS_DECIMAL_IN_RANGE,IS_EMAIL,IS_EMPTY_OR,IS_EQUAL_TO,IS_EXPR,IS_FLOA > T_IN_RANGE,IS_IMAGE,IS_INT_IN_RANGE,IS_IN_DB,IS_IN_SET,IS_IPV4,IS_LENGTH,IS > _LIST_OF,IS_LOWER,IS_MATCH,IS_NOT_EMPTY,IS_NOT_IN_DB,IS_NULL_OR,IS_SLUG,IS_ > STRONG,IS_TIME,IS_UPLOAD_FILENAME,IS_UPPER,IS_URL,LABEL,LEGEND,LI,LINK,MARK > MIN,MENU,META,OBJECT,OL,ON,OPTGROUP,OPTION,P,PRE,SCRIPT,SELECT,SPAN,TABLE,T > AG,TBODY,TD,TEXTAREA,TFOOT,TH,THEAD,TITLE,TR,TT,UL,URL,XHTML,XML > > But as I said, this doesn't seem to do anything at all. > > Anybody know what to do?