You can put anywhere you like. If it goes in a module, you need to
import it.

Because of the new custom import and current. This is no longer a
problem.

Any module imported by a model or controller can do from gluon import
current, DIV, SQLHTML, etc. and get access to everything. current
contains current.request, current.response, current.session,
current.T, current.cache + anything your models want to pass want to
pass to the modules.



On Aug 6, 11:36 am, pbreit <pbreitenb...@gmail.com> wrote:
> Where does the class go? In a module?
>
> I still don't fully understand "current". Is that an easy way for a module
> to have access to the whole current environment?

Reply via email to