When just using "from gluon import *" then Aptana shows me many errors
(i.e. dal() and http() not found).
auth = Auth(db) and service = Service() works fine, thank you!

On 24 Feb., 16:20, Anthony <[email protected]> wrote:
> > 1) At default controller Aptana shows me errors at "@auth..."
> > decorators (Undefined variable auth). Also the service() in the call()-
>
> function is unknown. You see my actual imports at the end of this
>
> > post.
>
> You'd have to add the following to your list of dummy
> imports/instantiations:
>
> auth = Auth(db)
> service = Service()
>
> Also, note that you no longer need all of those import statements -- the
> entire web2py API is now exposed via "from gluon import *". Also, if you're
> using trunk, even the dummy request, response, session, cache, and T
> instantiations are done for you when you import gluon. So, in addition to
> "from gluon import *", you should only need to do the imports and
> instantiations for auth, service, and db.
>
> Anthony

Reply via email to