On Tuesday, July 19, 2016 at 3:54:10 PM UTC-4, Julio del Barrio wrote: > > Hi, Massimo. > If I not want any virtual fields in row object returned by select? If I > use the row as dict in a insert operation, I must to filter, and I haven't > any way to know what field is virtual, in abstract.
If using an existing Row or dictionary in an insert, you should use the ._filter_fields method (which will also filter out the "id" field): db.mytable.insert(**db.mytable._filter_fields(row)) 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.

