Thanks Bruno for the solution :) 2010/8/11, Bruno Rocha <rochacbr...@gmail.com>: > PLUS: If you need an example on how to auth with gmail account, > look at pyforum source code: http://pyforum.org/ > > > > 2010/8/10 Fale <floc...@grimp.eu> > >> Hi, >> I'm a new web2py user :) >> I'm trying to use google's auth for my app, but it does not work on >> web2py, while it works perfectly on appspot.com and on the offline gae >> engine :| >> >> My code: >> from gluon.tools import Mail, Auth, Recaptcha >> auth = Auth(globals(), db) >> from gluon.contrib.login_methods.gae_google_account import >> GaeGoogleAccount >> auth.settings.login_form = GaeGoogleAccount() >> auth.define_tables() >> auth.settings.create_user_groups = False >> auth.settings.mailer = mail >> >> On Web2py: >> Traceback (most recent call last): >> File "/home/web2py/grimpuis/gluon/restricted.py", line 178, in >> restricted >> exec ccode in environment >> File "/home/web2py/grimpuis/applications/init/models/dbs.py", line >> 100, in <module> >> from gluon.contrib.login_methods.gae_google_account import >> GaeGoogleAccount >> File "/home/web2py/grimpuis/gluon/contrib/login_methods/ >> gae_google_account.py", line 12, in <module> >> from google.appengine.api import users >> ImportError: No module named appengine.api >> >> Someone has some ideas to fix it? >> >> Thankyou in advance to anyone =) >> >> PS: As far as I seen there isn't a unique place where is stored all >> the web2py-gae knowledge. Am I blind or we really lack something like >> it? > > > > > -- > > http://rochacbruno.com.br >
-- Inviato dal mio dispositivo mobile