> Gives me an error because it tries to explode the string from the
> variable 'table' into a series of table names. So it's trying to
> "SELECT * FROM m, e, t, a, _,..."

Really? I'm guessing that some how table became a list then.

>>> web.select('table', what='*', _test=1)
<sql: 'SELECT * FROM table'>
>>> web.select(list('table'), what='*', _test=1)
<sql: 'SELECT * FROM t, a, b, l, e'>

And the better way to write your query is:

web.select(table, where='post_id=$post_id', vars=locals())

> Secondly, is there a way to send POST data with a web.redirect() call?

I don't think that's possible in HTTP.

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

Reply via email to