[web2py] Re: NameError one way. 404 NOT FOUND the other...

2012-08-18 Thread thinkwell
The path to report_email.txt is applications/saplogger/views/report_email.txt and the script I'm running is in applications/saplogger. Why I'm getting the 404 in the shell is baffling. Regarding context & environment, this report will be called from cron, and the email module will be imported i

[web2py] Re: NameError one way. 404 NOT FOUND the other...

2012-08-18 Thread Anthony
> > 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,

[web2py] Re: NameError one way. 404 NOT FOUND the other...

2012-08-18 Thread Niphlod
do you have a report_mail.txt in views ? On Saturday, August 18, 2012 9:08:12 PM UTC+2, thinkwell wrote: > > Hello everyone, > > I'm working on emailing a message and I'm having some unexpected issues. > Here is my code based on the web2py book: > > from gluon.tools import Mail > from report_vars