|
Luis M. Gonzalez
luismg at gmx.net
Sat Apr 1 16:08:14 EST 2006
> Use req.content_type = 'text/html'. Firefox is picky about the correct
> mime type.
But I used it already. See the code again:
>> #myscript.py
>> from utils import table
>> import MySQLdb
>> con = MySQLdb.connect('localhost','root','','vic')
>> cur = con.cursor()
>> cur.execute('select * from clientes')
>>
>> def index(req):
>> req.content_type='text/htm'
>> req.write(table(cur))
|