See what documentation says about "current". It makes session, request, response, etc. available to your module.
-- Vinicius Assef On Sun, Feb 26, 2012 at 4:11 PM, Ed Greenberg <greenberg...@gmail.com> wrote: > I create lots of modules which need to interact with my app. I've > been passing things into them and wonder if I'm doing the simplest and > best practice: > > > aObj=local_import("a",reload=True) > > a=aObj(db,auth,settings,session,module_specific_params) > > Then, in the class, I use them as self.settings.foo (or whatever) > > Is there a good way to make more of the environment available to my > module, or am I doing the right thing? > > Thanks, > > Ed