The code in controllers is wrapped in web2py with a try except clause that automatically commits or rolls back the changes to db. I believe this is not the case for modules and an explicit commit is needed there. Try to add "db.commit" to your module code.
- [web2py] using existing DB connection inside module/cla... JaapP
- Re: [web2py] using existing DB connection inside m... Johann Spies
- [web2py] Re: using existing DB connection inside m... Wikus van de Merwe