[web2py] Re: IS_IN_DB validation error

2015-10-02 Thread 'DenesL' via web2py-users
Oops, thanks Anthony. It should be: IS_IN_DB(db(geo_item.f_collection_id == geo_collection.id ),...) Hope it helps. Denes On Friday, October 2, 2015 at 9:25:15 AM UTC-4, Anthony wrot

[web2py] Re: IS_IN_DB validation error

2015-10-02 Thread Anthony
Note, it is actually the first argument that must be a Set object (or a DAL) object. The second argument must be a Field object or a string representation of a field in 'tablename.fieldname' format. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://git

[web2py] Re: IS_IN_DB validation error

2015-10-01 Thread 'DenesL' via web2py-users
The second parameter of IS_IN_DB should be a set not a query: query: (geo_item.f_collection_id == geo_collection.id) set: db(geo_item.f_collection_id == geo_collection.id)