I never got the global thing to work, there is another article somewhere (cant remember maybe at slices) that tells of a different option by using a conditional at the begining of your controllers. I am using the following now:
if 0: from gluon.globals import * from gluon.html import * from gluon.http import * from gluon.html import TABLE from gluon.sqlhtml import SQLFORM, SQLTABLE, form_factory from gluon.languages import translator as T from applications.eibport.models import db, serials_labels, mylink, sernr_access, user_id, serialnr_form, category_labels from gluon.tools import Auth as auth from gluon.tools import Crud as crud session = Session() request = Request() response = Response() Still I need to keep adding things when I need them. So its kind of ugly but it works. If anyone knows of a better solution, I'd love to use it. On the model I am using: if 0: from gluon.sql import * from gluon.validators import * from gluon.globals import * from gluon.sqlhtml import SQLFORM from gluon.html import * from gluon.languages import translator as T from gluon.tools import Auth as auth request = Request() session = Session() Happy New Year, Benigno. On Dec 28, 7:32 pm, salbefe <salb...@gmail.com> wrote: > Hello, > > I'm using eclipse IDE to develop an application. After reading the > FAQ "Support Eclipse, web2py, imports, code hints and code > completion". There it explains that to let Eclipse know about > variables being passed into the controller at runtime, you can do the > following > > global db > global request > global session > global reqponse > > This will remove the warnings about them being undefined. > > Well, I have try to put all that code at the beginning of my controler > but it does not work. There are a lot of variables that are undefined > for eclipse. Could anyone that uses eclipse help me, please?? > > In my opinion that FAQ about eclipse is dificult to understand for > people that is new to eclipse and web2py. > > Thanks -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.