Let's say I have a table

db.define_table('sendprot',
  Field('myfield','integer', default=0))

and a function like

def testupdate():
    db.sendprot[1]=dict(myfield=2)

Now I make this function a scheduler function and I set the
scheduler_task.status to QUEUED
The status becomes COMPLETED. Looks fine, but myfield did not change.

A scheduler function can read a database table, but does it an insert or an
update?

web2py last version, runs on a Linux computer.

Regards, Martin

-- 



Reply via email to