Thanks for the current hint. Kind regards Cornelius Am 11.06.2012 01:59, schrieb howesc: > from gluon.globals import current > > > current has request, response, auth set automatically. you can store > things in current (it is a Storage object). It has been recommended > that if you add things to current you put them in their own > dict/storage perhaps with your appname as key (so as to not get things > confused). so i do: > > current.myapp = Storage() > current.myapp.db = db > > and then later access it in modules. > > cfh > > On Sunday, June 10, 2012 6:04:45 AM UTC-7, cornelinux wrote: > > Hello, > > I want to push several functionalities to some modules. > I am wondering if there is a more elegant way to make the db and > settings objects usable in the modules. > I could pass them as parameters. But is there another way to access > those objects in the modules code? > (I know that e.g. pylons allows to import the config object, thus > having > all the data of the request and application at hand.) > > Thank a lot and kind regards > Cornelius > > >
signature.asc
Description: OpenPGP digital signature