>
> 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