You can also create your own storage object. import storage as st mystore = st.Storage mystore.request = request
t read gluon/storage.py for more information. Lots of neat functions there. On Sunday, July 8, 2012 8:48:54 AM UTC-4, cornelinux wrote: > > Hi, > I think I am missing some of the major concepts of web2py. > > By some_magicTM is got some object like "db", "request" and "auth" > available in all my controllers. > I think these are setup in db.py. > Anyway, still strange for me. > > What would I need to do, when I want to make these available in some > lib/modules? > At the moment I always pass db and request as parameters. > But as these modules are only used with my web2py project, I want to get > rid of passing these parameters. > > Thanks a lot and kind regards > Cornelius > >

