No

   rows = db(purchase.product==product.id)
(purchase.buyer==buyer.id).select()

is correct (subset of a set) and equivalent to

   rows = db((purchase.product==product.id)&
(purchase.buyer==buyer.id)).select()

This

   rows = db((purchase.product==product.id)
(purchase.buyer==buyer.id)).select()

would be incorrect.


On Oct 28, 1:52 pm, Thadeus Burgess <[email protected]> wrote:
> There is a typo
>
> rows = db(purchase.product==product.id)(purchase.buyer==buyer.id).select()
>
> Should be
>
> rows = db((purchase.product==product.id)(purchase.buyer==buyer.id)).select()
>
> -Thadeus
>
> On Wed, Oct 28, 2009 at 1:42 PM, mdipierro <[email protected]> wrote:
>
> > I should have made a slice. I will when it is stable.
>
> > On Oct 28, 1:41 pm, mdipierro <[email protected]> wrote:
> > >http://www.web2py.com/AlterEgo/default/show/248
>
> > > Please give this a try before we make it stable
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to