>
> I was referring of a module in applications/milo/modules that is used in
> a applications/milo/models
>
> When the import is done, the request object is not yet created in either
> web2py server or shell or worker (web2py.py -K milo)
>
Sorry, it should be request.global_settings.cmd_options.scheduler. If you
do:
python web2py.py -K milo
Then in the model where you important and instantiate the Tagger object,
the request object will be available, and you should be able to do:
if request.global_settings.cmd_options.scheduler:
[do the import]
In that case, the import will only happen with the -K call.
Anthony
--