> > I guess one of the things I am unclear on is how granular the Web2Py > framework is. Is there one db.py running for all sessions or is there a > db.py running for each user session? > > If a db.py runs for for each user session independent of the other users, > then customizing the DAL setup in the db.py should work. > > I wish there were more thorough documentation of the DAL. >
I think the DAL is fairly well documented. This isn't really a question about the DAL, though, but about the workflow of requests coming into a web2py application. It might help if you review http://web2py.com/books/default/chapter/29/1#Model-View-Controller and http://web2py.com/books/default/chapter/29/4#Workflow. Note, the db.py file is freshly executed (in a separate thread) for each request that comes into the application. So, you can dynamically determine the database URI for a given request, and it will only apply to that particular request. Anthony

