If you do
execfile('applications/app/controllers/default.py')
you will expose them all. The problem is that they may have logic like
@auth.requires_login() decorators which may prevent you from calling
those functions.
If you want to do this better you should define make the controllers
delegate execution for funcitons in a module and import the module.
Massimo
On Jan 15, 3:55 pm, Robert Clark <[email protected]> wrote:
> If running a web2py shell, how can model files within controller
> subdirectories be made available in the environment?
>
> For example if we have these two model files:
> myapp/models/db.py
> myapp/models/acontroller/db_controller.py
>
> Then when launching web2py using:
> $> python web2py.py -S myapp -M
>
> Typing 'db.tables' prints tables defined in db.py
>
> Is there a way to specify a controller (or function) to execute models
> for in a web2py shell?
>
> Thanks