Thanks bro, it's really usefull \o 2017-01-25 15:23 GMT-02:00 Leonel Câmara <leonelcam...@gmail.com>:
> The first one: > > *db(*(db.asset.tipo=='SC') & (db.asset.is_active==True)*)* > > Returns a Set (this is not a python set but a pyDAL one) > > The second one: > > (db.asset.tipo=='SC') & (db.asset.is_active==True) > > Actually returns a Query > > A set is what you get when you call your DAL instance with a query as > argument. > > The Grid is actually expecting a query because it can do more than one > call to the DAL with that same query to get different things. > > See: > https://github.com/web2py/pydal/blob/master/pydal/objects.py > > > -- > 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 web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.