This file is part of web2py Web Framework (Copyrighted, 2007)
Developed by Massimo Di Pierro <mdipierro@cs.depaul.edu> License:
GPL v2
|
|
build_environment(request,
response,
session)
Build and return evnironment dictionary for controller and view. |
source code
|
|
|
|
|
|
|
|
|
|
compile_views(folder)
compiles all the views in the applicaiton specified by the current
folder |
source code
|
|
|
|
compile_models(folder)
compiles all the models in the applicaiton specified by the current
folder |
source code
|
|
|
|
compile_controllers(folder)
compiles all the controllers in the applicaiton specified by the
current folder |
source code
|
|
|
|
|
|
|
run_controller_in(controller,
function,
environment)
runs the controller.function() (for the app specified by the current
folder) in the environment. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
test()
Example: >>> import traceback, types >>>
environment={'x':1} >>> open('a.py','w').write('print 1/x')
>>> save_pyc('a.py') >>> os.unlink('a.py')
>>> if type(read_pyc('a.pyc'))==types.CodeType: print 'code'
code >>> exec read_pyc('a.pyc') in environment 1 |
source code
|
|