Has anybody had any luck getting the taskqueue from google app engine
to work in web2py? I presume that it should work under dev_appserver,
but isn't working for me.
I defined a simple default controller based on the gae example at the
google blog:
def process_post_file():
rows=db(db.files.processed=='False').select(db.files.ALL)
for row in rows:
f = row.file_blob
email_addresses = f.split('\n')
for email_address in email_addresses:
taskqueue.add(url='/init/default/sendmail', params=dict
(to=email_address, subject='Hello ' + email_address, body='this is a
message!'))
return dict(message=T('mail was queued'))
def sendmail():
mail.send_mail(
'[email protected]', # needs to be from settings
request.vars['to'],
request.vars['subject'],
request.vars['body'])
but my sendmail function never gets called. Everything seems fine up
through the task queue, but no callback.
Thanks,
David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---