Can someone help me with the Execution Environment?

Is the example on the book correct?

I'm talking about:

from gluon.shell import exec_environment
cas = exec_environment('applications/cas/models/db.py')
rows = cas.db().select(cas.db.user.ALL)

I gave it a go, but cas application does not exist anymore.


Cheers

Uolter

Reply via email to