"Jim Steil" <[EMAIL PROTECTED]> writes:

> I’m trying to dynamically build an SQL statement, actually, just the where
> clause.  I know I’ve seen sample of this using SQLObject somewhere, but I
> can’t find them again. I seem to remember seeing something about adding to a
> where clause.  Can someone help me find what I’m looking for?  I’m happy to
> elaborate on my needs if what I’ve said so far doesn’t make enough sense.


users = model.User.select()
filtered_users = users.filter(model.User.q.login_name.startswith('a'))


Be seeing you,
-- 
Jorge Godoy      <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to