I had (something like) the following code:

In db.py

a table called "point"

In a controller:

    # points is a list of dicts defining rows in table point
    for point in points: 
        db.point.insert(**point)

The code would disappear inside db.point.insert without throwing an 
exception. The table point would receive a row before the crash.

All I needed to do was avoid the loop increment variable name 'point' 
clashing with the table name point 'point' but I thought I'd just document 
my error here in case others come across something similar.

This refers to a GAE-based project.

-- 
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