On Mon, May 2, 2011 at 4:57 PM, danto <web2py.n...@gmail.com> wrote: > what would be the difference from using import module?
The main difference is that models executed implicit knows web2py environment as session, request, response etc. and that is easiest to define some things in models. modules does not have this implicit access, so you need to pass response, request, session, etc. if you want them to know your environment. models are executed and all objects defined there go to the memory in current environment context, modules need to be explicit imported, called and reloaded. I am not sure if we can have classes in modules to define tables and them pass DAL, response, request etc.. I need to test this approach. -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ]