Hi,
I like the new scheduler concept a lot. It looks promising.
Something goes wrong when I try to return a datetime in the method I wanted
to schedule...
A Simple JSON parsing error
--
raise TypeError(repr(o) + " is not JSON serializable") TypeError:
datetime.datetime(2012, 12, 10, 15, 57, 59, 300169) is not JSON serializable
--
Example test code:
--
def dateTask():
return dict(taskDate=datetime.now())
from gluon.scheduler import Scheduler
Scheduler(db,dict(dateTask=dateTask))
--
Scheduler started from web2py trunk with:
python web2py.py --nogui -K APPNAME -D0
Rene
--