>
> When I run the code in WingIDE, I get 
> NameError: name 'response' is not defined.
>

In web2py, model, controller, and view code is executed in an environment 
with some global objects pre-defined, including the request and response 
objects. As a result, you cannot run the code of a model, controller, or 
view all by itself outside the context of a web2py request. 
 

> If I run in the web2py Shell the NameError isn't raised,


The web2py shell is a special Python shell that includes the web2py global 
objects.
 

> but instead I get: 
> HTTP: 404 NOT FOUND [invalid view (report_mail.txt)]
>

What is the path to report_mail.txt?

Anthony

-- 



Reply via email to