Yes, the -S option takes a full app/controller/function path, so you could do:
python web2py.py -S app/default -M and you will be in the context of the "default" controller and can call any function in that controller from the shell. Anthony On Tuesday, January 10, 2012 5:08:21 PM UTC-5, David J wrote: > > I was wondering if we could test a controller from the shell? > > ./web2py.ps -S app -M > > then do something like index > and see the result in the shell > > The reason I am asking is I am trying to debug an on_accept method I > defined and I want to debug it in the shell > > Thanks. > >