I am using aptana. I have included the modules and models directories
in the pythonpath; and at the top of each python file I have "from ide
import *".  This refers to the file below and is supposed to to stop
it marking references to web2py variables as errors and to enable
autocomplete.

This seems to work but intermittently it forgets where to find the IDE
file then later it remembers again. Can anyone tell me why this
happens? Is there something else I need to do to make sure aptana
knows about web2py and does not keep forgetting?

MODULES/IDE.PY contains:

""" defines the web2py environment for the ide """
if 0:
    # web2py globals
    from gluon import *
    T, session,request,response=None

    # application models
    from db import *
    from dbinit import *
    from dbtables import *
    from menu import *
    from menua import *

Reply via email to