December 8th, 2004, 12:28 AM
sharing python objects between cgi scripts
Hi all. I am looking for a way to share a python object between a few cgi scripts. The object is a database connection, and so obviously I'd rather just set up one connection to a MySQL database and have all scripts use that rather than each one open up a new connection to the database every time it is run. I've been playing around with a few ideas for a while, but haven't found an elegant solution. any help would be much appreciated.