Calling a Postgres Function using CGI written in Python

Fuzzydave phillipsd at cromwell.co.uk
Wed May 3 05:30:02 EDT 2006


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