[Zope-DB] psycopg in python script

garry garry at schoolteachers.co.uk
Thu Feb 23 15:36:46 EST 2006


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


More information about the Zope-DB mailing list