That's fine Jeremy there's no issue here.

"In models, views and controllers there is no need to ever call commit or 
rollback explicitly."

There's no scheduler mentioned there.

Do note that this is also in the documentation:

Remember to call db.commit() at the end of every task if it involves 
inserts/updates to the database. web2py commits by default at the end of a 
successful action but the scheduler tasks are not actions.

This is basically for the same reason that you need to commit if you do 
this kinds of things in a web2py shell, this is just code running in a 
web2py environment. Lets look at what the book says:

Notice that scripts/functions executed in the web2py environment require a 
manual db.commit() at the end of the function or the transaction will be 
reverted.


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to