Calling a Postgres Function using CGI written in Python

Fuzzydave phillipsd at
Wed May 3 11:30:02 CEST 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 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

More information about the Python-list mailing list