Code like the following will raise an exception in a view.

{{
foo='bar'
# fubar='nothing'
}}


<!-- <input type="text" value="{{=fubar}}"> -->

Even though the html is commented out, Web2py will process it and try to 
find an object named fubar. Since it's not defined in the view, you get an 
exception.

I mention this because (a) it's puzzling the first time it happens and (b) 
it can take some time to figure out what's really going on.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to