> > # 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. >
It's not clear what the above sentence means. > The table point would receive a row before the crash. > What do you mean by "crash"? A web2py ticket? > All I needed to do was avoid the loop increment variable name 'point' > clashing with the table name point 'point' > The Python code you have shown indicates no "clash" -- there is only one "point" variable in the code, and it does not conflict with the table name, which is an attribute of the db object (i.e., db.point). There must have been something else going on, but it is not even clear what problem you were having. Anthony -- 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.

