Calling a Postgres Function using CGI written in Python
Colin Gillespie
c.gillespie at ncl.ac.uk
Wed May 3 05:40:06 EDT 2006
A quick google for "Python CGI" gives you lots of links. But if you
intend to do much in the way of cgi, then I would recommend the spyce
framework,http://spyce.sourceforge.net/
HTH
Colin
Fuzzydave wrote:
> I need to call a function stored in Postgres which does a lot of the db
> and calculation work
> all the SQL queries are hardcoded in a file called cmi.py. What i need
> to do is too to call
> my function from postgres passing in my product_code variable into it
> and returning the
> value from the query into a variable i can print to screen as part of a
> HTML page.
>
> I am sure its very easy but have never done anything in python as have
> none of the guys
> i work with making this a bit of a problem.
>
> Cheers Guys
> David
>
More information about the Python-list
mailing list