On 13 juin, 17:54, Jonathan Lundell <[email protected]> wrote:
> Try local_import instead of import (same manual page).

OK :-)

I needed that to fix the warning of Pydev. Now I use a template like
that at beginning of mvc files:

# Fake the imports needed by the static code analyzer.
if False:
    import gluon.languages.translator as T
    from gluon.cache import Cache
    from gluon.contrib.gql import GQLDB
    from gluon.globals import Request
    from gluon.globals import Response
    from gluon.globals import Session
    from gluon.html import *
    from gluon.http import HTTP
    from gluon.http import redirect
    from gluon.sql import DAL
    from gluon.sql import Field
    from gluon.sql import SQLDB
    from gluon.sqlhtml import SQLFORM
    from gluon.validators import *
    cache = Cache()
    request = Request()
    response = Response()
    session = Session()

Reply via email to