On Aug 14, 2009, at 12:20 PM, Michael wrote:

> Thanks Massimo, that's a great help. I'm starting to get the hang of
> it.
>
> I had trouble with the following:
>
>>>> r9=db(q2)(db.Section.id==7767|db.Section.id==7540).select()
>
> but realized that I needed to enclose the filters in parentheses:
>
>>>> r9=db(q2)( (db.Section.id==7767) | (db.Section.id==7540) ).select()
>
> The web2py book certainly helped with basic concepts but now that I've
> ventured into real-world coding on our classroom management
> application, I'm finding it difficult to extrapolate the basics to the
> more complex tasks.

That's been my experience. This list is very useful, but it'd be nice  
to be able to capture this kind of help someplace easier to find.


> Hence, I really appreciate your help. I'm hoping
> the new version of the book will contain more advanced examples so I
> can work through problems more independently. :)
>
> BTW, it was at this exact point that I gave up on django last summer.
> I couldn't find a way to generate very complex joins using their DAL.
> Eventually, I turned to web2py. It was the right decision for our



--~--~---------~--~----~------------~-------~--~----~
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