Hello, I installed CAS on GAE, when I try to register or retrieve password I get the folloing message: "Internal error, we are unable to send the email", this message is printed by the retrieve function in the controller cas.py.
I tryed also to modify the function email in the model email.py as follows: def email(sender,to,subject,message): fromaddr=sender if ( type(to)==type([]) ): toaddrs=to else: toaddrs=[to] try: from google.appengine.api import mail # if running on Google App Engine except: import smtplib msg="From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n%s"% (fromaddr,", ".join(toaddrs),subject,message) server = smtplib.SMTP(EMAIL_SERVER) server.sendmail(fromaddr, toaddrs, msg) server.quit() else: mail.send_mail(sender=fromaddr, to=toaddrs, subject=subject, body=message) but the error is the same. The logs shows the same warning: # - - [01/Feb/2009:13:39:25 -0800] "POST /cas/cas/register HTTP/1.1" 200 10047 "https://application.appspot.com/cas/cas/register" - # W 02-01 01:39PM 25.179 no cache.disk do you have any idea? thanks. Angelo On Jan 21, 11:32 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > good, let us know. > > On Jan 20, 7:47 pm, "Sebastian E. Ovide" <sebastianov...@gmail.com> > wrote: > > > ok... I had assumed that it was setted to work both with sqlite and GAE... > > > I've replaced > > > db=SQLDB('sqlite://identity.db') > > > with > > > try: > > from gluon.contrib.gql import * # if running on Google App > > Engine > > except: > > db=SQLDB('sqlite://identity.db') # if not, use SQLite or other > > DB > > else: > > db=GQLDB() # connect to Google BigTable > > session.connect(request,response,db=db) # and store sessions there > > #session.forget() # uncomment for no session at > > all > > > and now it doesn't break anymore... > > > let me test it properly... > > > On Tue, Jan 20, 2009 at 11:28 PM, Sebastian E. Ovide < > > > sebastianov...@gmail.com> wrote: > > > WARNING 2009-01-21 01:27:01,190 cache.py] no cache.disk > > > ERROR 2009-01-21 01:27:01,250 main.py] Traceback (most recent call > > > last): > > > File "C:\dev\web2py\gluon\restricted.py", line 62, in restricted > > > exec ccode in environment > > > File "C:\dev\web2py\applications\users/models/db.py", line 2, in > > > <module> > > > db=SQLDB("sqlite://identity.db") > > > File "C:\dev\web2py\gluon\sql.py", line 458, in __init__ > > > self._pool_connection(lambda:sqlite3.Connection(dbpath)) > > > File "C:\dev\web2py\gluon\sql.py", line 423, in _pool_connection > > > self._connection=f() > > > File "C:\dev\web2py\gluon\sql.py", line 458, in <lambda> > > > self._pool_connection(lambda:sqlite3.Connection(dbpath)) > > > NameError: global name 'sqlite3' is not defined > > > > On Tue, Jan 20, 2009 at 12:47 PM, Markus Gritsch > > > <m.grit...@gmail.com>wrote: > > > >> On Tue, Jan 20, 2009 at 2:16 PM, Sebastian E. Ovide > > >> <sebastianov...@gmail.com> wrote: > > >> > I mean in local.. I haven't deploy it yet... just using the GAE SDK > > >> > (the > > >> > last one) > > > >> In the terminal, where you run dev_appserver.py, the exception is > > >> printed. > > > >> Kind regards, > > >> Markus --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---