Instead of using gluon, I pass it while importing the module.
For example, if my module is commons, then in my controller:

import commons
commons.db = db
commons.request = request
commons.session = session


Now db , request and session should now be available in the module...

Reply via email to