psycopg in python script

garry <[email protected]>
Newsgroups gmane.comp.web.zope.database
Message-ID <[email protected]>
How can I access a Psycopg_database_connection within a python script. 
So far I have this which only returns a connection instance, but I want 
to pass the connection a query string.

query1=context.Psycopg_database_connection('select * from studentdetails')
return query1


Regards
Garry
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.