PyGreSQL and HTML

Dave Roberts dvrbts at nr.usu.edu
Tue Jan 14 02:07:51 CET 2003


Does anyone know how to shift postgres into html table mode from inside
PyGreSQL?

>From inside postgres it's simple:  \pset format html

However, all my attempts to pass postgres that string from inside
PyGreSQL seem to get trapped by the interpreter.  I'm trying to use
python cgi scripts to present queries, and since the output is going to
stdout (the browser), if I could just kick postgres into html it would
be self-presenting.

Thanks, Dave R. 
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
David W. Roberts                                  office: 435-797-2416
Interim Head                                         FAX: 435-797-3796
Department of Forest, Range, and              email: dvrbts at nr.usu.edu
   Wildlife Sciences                URL: http://www.nr.usu.edu/~dvrbts
Utah State University
Logan, UT 84322-5230
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




More information about the Python-list mailing list