the "idiom" is db(WHERE_CLAUSE).select(FROM_CLAUSE) (a simplification, but you get the idea)
so you want query_results = db(x).select() or (equivalently): query_results = db(x).select(db.table.ALL) On Thu, Sep 10, 2009 at 9:26 AM, Don <sam...@gmail.com> wrote: > > Ex: > x = 'db.table.id == value' > query = db(x) > > * This fails. Is it possible to convert a string into a query? > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---