Hi All,

i've been struggling with the following problem for some time and hope 
anyone can help.

When i instantiate a class in a controller (class is in separate file in 
Modules folder) and i want to use the database from within this instance, i 
have to pass the DB to the class. 

Inside this instance, querying the db works normal. 
But, when i try to insert a new record into the database the database 
(sqlite) is not updated.

Debugging shows me that the db object inside the instance is actually 
updated. 

So my question: how should i use the web2py database connection inside a 
class? As far as i can understand when passing the DB to a class this 
creates a new DB object that is not connected to the file store..

Any help greatly appreciated!

Jaap

Reply via email to