Thanks Ross. On 9 February 2012 14:39, Ross Peoples <[email protected]> wrote:
> from gluon import * > > This should give you the "current" object which has these: > > current.request > current.response > current.cache > > You must initialize your modules with a db instance though. So I usually > do this: > > class MyModule(object): > def __init__(self, db, ...) > I do not understand this properly. After explicitly importing 'current' in the controller, I made some progress. But why is the class definition necessary and how does it initialise db when db is not available in the module? Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3)

